Wikipedia

Search results

Sunday, 23 April 2017

Liberty Profile

 Liberty profile overview
The Liberty profile is a simplified, lightweight development and application runtime environment that has the following characteristics:
- Simple to configure. Configuration is read from an XML file with text-editor-friendly syntax.
- Dynamic and flexible. The run time loads only what your application needs and recomposes the run time in response to configuration changes.
- Fast. The server starts in under 5 seconds with a basic web application.
-Extensible. The Liberty profile provides support for user and product extensions, which
can use System Programming Interfaces (SPIs) to extend the run time.

 -Liberty supports a subset of the following parts of the full WebSphere®  
 Application Server programming model:
  • Web applications
  • OSGi applications
  • Enterprise JavaBeans (EJB) applications
"Liberty Profile" - IBM WebSphere Application Server V8.5

- It is a flexible and dynamic profile of WAS. Which enables WAS server to deploy only required custom features instead of all JEE components.

-WAS Liberty profile Architecture:-


The runtime environment is an OSGi framework that contains a kernel, a JVM, and any number of Liberty features.

WebSphere Application Server 8.5.5.1 Liberty Profile Installation Reference Guide(4.3)

Installation Notes

There are multiple methods to install and set up WebSphere using Liberty Profile. The following notes are meant as general tips to consider and may or may not apply in every scenario.

Where Can I Find the Installer?

Instructions

  1. Download wlp-developers-runtime-8.5.5.1.jar.
  2. Run the following command to extract the contents of the Liberty archive:
    java -jar wlp-developers-runtime-8.5.5.1.jar
  3. Press x to skip, or Enter to read the license agreement.
  4. Press 1 if you agree to the license terms and are ready to proceed.
  5. Provide the installation path for the Liberty profile, for example: /nhin/app.
  6. Press Enter.
The server is installed into a /wlp directory within the install directory that is specified in step 6 (for example, /nhin/app/wlp).

Creating a Server

The Liberty profile runtime environment does not come with a server defined. To create a server, you must run the following command from the Liberty profile bin directory (for example, /nhin/app/wlp/bin):
server create <server name>
This creates a server with the provided name in the usr/servers directory (for example, /nhin/app/wlp/usr/servers/server1 if "server1" was specified as the server name).

Creating Jvm.options

The jvm.options file can be used at runtime to specify jvm-specific start options (for example, with -X arguments like "-Xmx1024M"). The options are applied when you start, run, or debug the server: When you install the Liberty profile, this configuration file does not exist, so you must create it. Create an etc/ directory under wlp/, and within that, create the jvm.options file (for example, /nhin/app/wlp/etc/jvm.options).

Configure the httpEndPoint

By default, the WebSphere Liberty Profile server is installed on port 9080. The CONNECT team typically tests on port 8080/8181 (for HTTP/HTTPS respectively), so we change the port in server.xml as below:
<httpEndpoint id="defaultHttpEndpoint" host="localhost" httpPort="8080" httpsPort="8181" />

Starting and Stopping the Server

To start the server, run the server start <server name> command under /wlp/bin:
/nhin/app/wlp/bin$ ./server start server1
To stop the server, run the server stop <server name> command under /wlp/bin:
/nhin/app/wlp/bin$ ./server stop server1

Set Up Environment Variables

In some cases, it may be required to set the environment variables for:
  • JAVA_HOME
  • JAVA_OPTIONS
  • ANT_HOME
  • ANT_OPTS
  • MAVEN_HOME
  • MAVEN_OPTS
  • PATH

Sample Environment

# Set up environment for CONNECT + WebSphere 8.5.5.1/Liberty Profile on Linux
 
export JAVA_HOME='/path/to/jdk1.7.0_09'
export MAVEN_HOME='/path/to/apache-maven-3.0.4'
export MAVEN_OPTS='-Xmx5000m -XX:MaxPermSize=1024m'
export ANT_HOME='/path/to/apache-ant-1.7.1'
export ANT_OPTS='-Xmx1200m -XX:MaxPermSize=128m -Dcom.sun.aas.instanceName=server'
export MYSQL_HOME='/path/to/mysql-5.1.42-linux-x86_64-glibc23'
 
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$ANT_HOME/bin:$MYSQL_HOME/bin:$PATH



 Reference: 
https://connectopensource.atlassian.net/wiki/pages/viewpage.action?pageId=12681451

https://developer.ibm.com/wasdev/blog/2013/03/29/introducing_the_liberty_profile/

https://developer.ibm.com/wasdev/downloads/download-latest-stable-websphere-liberty-runtime/











Wednesday, 15 June 2016

Propogate Plugins in IHS .

* PROPGATION OF PLUGINS : -


1] go to /opt/IBM/Websphere/plugins/bin

2] copy the configurewebserver1.sh  to /opt/IBM/Websphere/Appserver/bin

3] start the Dmgr and node where you installed webserver

4]  run the ./configurewebserver1.sh Dmgr wasadmin wasadmin

5]  check in the console after starting the webserver and server in the
     particular profile

Generate Plugins in IHS

GENERATION OF PLUGINS:


1) go to /opt/IBM/Websphere/Toolbox/WCT
 
        run ./wct.sh

2] add plugins path /opt/IBM/WebSphere/Plugins then click on create

          select IBM HTTP Server 8.5 64 bit

3] give the userid and password  for admin console  and also mention the 
     user and group


4] next select the Websphere Application server path
         then give the path of configuration file of HTTP server /opt/IBM     
          /HTTPServer/conf/httpd.conf/op

IHS uninstallation (uninstallation from command line)

UNINSTALLATION : -



 1] goto plugins/uninstall
/opt/IBM/InstallationManager/eclipse/tools/imcl input uninstall.xml -acceptLicense -sVP



2] go to Toolbox/uninstall/
 /opt/IBM/InstallationManager/eclipse/tools/imcl input uninstall.xml -acceptLicense -sVP

IHS installation on linux (command line installation)



1] goto /opt/ibm/InstallationManager/eclipse/tools


2] run    ./imcl listAvailablePackages -repositories /home/user_name
               /Desktop/IHS/     (repository path)


3] /imcl install com.ibm.websphere.IHS.v85_8.5.5000.20130514_1044
        -installationDirectory /opt/IBM/HTTPServer -repositories
          /home/user_name/Desktop/IHS/ -acceptLicense -sVP -properties
            user.ihs.httpPort=80 -installFixes recommended


4] /imcl install com.ibm.websphere.PLG.v85_8.5.5000.20130514_1044 
           -installationDirectory /opt/IBM/WebSphere/Plugins -repositories
            /home/user_name/Desktop/IHS/ -acceptLicense -sVP -installFixes
              recommended


5.] /imcl install com.ibm.websphere.WCT.v85_8.5.5000.20130514_1044 
       -installationDirectory /opt/IBM/WebSphere/Toolbox -repositories
         /home/user_name/Desktop/IHS/ -acceptLicense -sVP -installFixes
         recommended

MQ (Message Queue) installation on Linux

1] Download the file mq WMQ_7.1.0.3_TRIAL_LNX_X86_64_ML.tar

2] Create mqm diretory in var and opt

    mkdir /opt/mqm
    mkdir /var/mqm

3] create mqm group

    groupadd mqm

4] create mqm user and add that user to mqm group

     useradd -g mqm mqm

5] unzip file

tar -xvf WMQ_7.1.0.3_TRIAL_LNX_X86_64_ML.tar

6] Accept the license

./mqlicense.sh

7] Install all rpm's (execute command on linux terminal)

  rpm -qa MQS*.rpm

8]  /opt/mqm/bin/setmqinst -i -p /opt/mqm

9] su  mqm (Change user as mqm)

10] run the commands

11] if you are getting the error like unable to allocate sufficient system resource then set the kernel parameters as follows: -


cd /etc

edit the sysctl.conf conf file

include these parameters in that file

    kernel.msgmni = 1024
   kernel.shmmni = 4096
    kernel.shmall = 2097152
     kernel.shmmax = 268435456
    kernel.sem = 500 256000 250 1024
    fs.file-max = 524288
    kernel.pid-max = 120000
    kernel.threads-max = 48000 

Tuesday, 14 June 2016

WebSphere Application Server(WAS) installation on linux using CLI

1] Install WAS(WebSphere Application Server) installation manager from  IBM site.

2]ha Extract file agent.installer.linux.gtk.x86_64_1.8.2001.20150409_1833.zip

3]   unzip  agent.installer.linux.gtk.x86_64_1.8.2001.20150409_1833.zip
   
4] run ./installc -acceptlicense

5] Download WAS files from IBM site. and copy in a folder which you have
     created earlier.  
6] Extract was files, in same folder.

               unzip WASND_v8.5.5_1of3.zip
               unzip WASND_v8.5.5_2of3.zip
                unzip WASND_v8.5.5_3of3.zip
7] goto /opt/ibm/InstallationManager/eclipse/tools
8] run    ./imcl listAvailablePackages -repositories /home/userName
     /Desktop/WAS/     (repository path)
9]  run  ./imcl install com.ibm.websphere.ND.v85_8.5.5000.20130514_1044 -repositories /home/UserName/Desktop/WAS/ -acceptlicense -sVP