WebSphere Issues

31/08/2010

Deploy a web module onto WebSphere Application Server through wsadmin

Filed under: Linux, WAS — Ishtiaque @ 8:54 am

1. Run the following command to export app.war application from the App Server:

/wp_profile/bin/wsadmin.sh -user wpsadmin -password wpsadmin -c “$AdminApp export app /opt/deploy/app.war

2. Run the following command to extract the app.war web module.

tar -xvf /opt/deploy/app.war

3. Deploy your changes and run the following commands to package application the files into war file:

cd /opt/deploy/app_expanded
tar -cvf /opt/deploy/app/app.war *

5. Finally update or deploy the app.war using the following command:

  • /wp_profile/wsadmin.sh -c “$AdminApp install /opt/deploy/app.war {-update -appname app_war -contextroot /app}”
  • ./wsadmin.sh -lang jython -c “AdminApp.install(‘/tmp/HelloWorld.ear’,'[-cell Cell01 -node Node01 -cluster Cluster01]’)”

6. Restart the application server.

Deploy an ear app onto WebSphere Application Server through wsadmin

Filed under: Linux, WAS, WebSphere Portal — Ishtiaque @ 8:03 am

1. Run the following command to export wps.ear application from the server:

/wp_profile/bin/wsadmin.sh -user wpsadmin -password wpsadmin -c “$AdminApp export wps /opt/deploy/wps.ear

2. Run the following command to expand the wps.ear file:

/wp_profile/bin/EARExpander.sh -ear /opt/work/deploy/wps.ear -operationDir /opt/work/deploy/wps_expanded -operation expand

3. Deploy your changes in the expanded directory of the application.

4. Collapse the expanded directory back into wps.ear or app.war file:

/wp_profile/EARExpander.sh -ear /opt/deploy/wps.ear -operationDir /opt/deploy/wps_expanded -operation collapse

5. Deploy the wps.ear using the following command:

/wp_profile/bin/wsadmin.sh -user wpsadmin -password wpsadmin -c “$AdminApp install /opt/deploy/wps.ear {-update -appname wps -nodeployejb}”

6. Restart your application server in this example it would WebSphere_Portal.

References:

1. http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.zos.doc/wps/dgn_dpycst.html

30/08/2010

Install and configure Rational Focal Point server

Filed under: Linux, Rational — Ishtiaque @ 11:37 am

1. Install and configure JRE by following the URL  http://wplinux.wordpress.com/2010/08/28/install-and-configure-java-in-linux/

2. Install and configure the tomcat by following the URL http://wplinux.wordpress.com/2010/08/30/configure-tomcat-in-linux/

3. Install and configure Rational License Server by following the URL http://wplinux.wordpress.com/2010/08/30/install-and-configure-rational-license-server/

4. Run the GUI setup file /opt/backup/disk1/InstallerImage_linux/install

5. Select for IBM Rational Focal Point Application Server -> Apache Tomcat and browse for server home directory. For Application Default Language Selection -> English.

6. Select for Database Type Selection and Configuration -> POSTGRE

a. For Host Name -> 127.0.0.1

b. Database Port ->5432

c. Database Name -> focalpoint

d. Database User name -> postgres and Password -> passw0rd.

7. Under Focal Point License Info select A Rational License server and type 19353@127.0.0.1.

8. You can access the Focal Point app at the URL http://localhost:8080/fp/servlet/Login

7. In order to successfully login to the focal point application the License Server must be running.

References:

1. http://publib.boulder.ibm.com/infocenter/rsdp/v1r0m0/topic/com.ibm.help.download.focalpoint.doc/helpindex_focalpoint.html

Install and configure PostgreSQL database

Filed under: DB2, Linux — Ishtiaque @ 11:13 am

1. Run the installation file ./postgresql-8.4.4-1-linux.bin –mode text

2.Accept default values for installation / data directory and port number. While for Options type “176” i.e En_GB_utf8.

3. Type “y” for pl/pgsql template db.

4. After installation is completed, then edit the file /opt/PostgreSQL/8.4/data/pg_hba.conf and replace md5 with password under IPv6.

5. You can start or stop the database by typing

/opt/PostgreSQL/8.4/bin/pg_ctl start | stop -D /opt/PostgreSQL/8.4/data/

Install and configure Rational License Server

Filed under: Linux, Rational — Ishtiaque @ 11:06 am

1. Extract Rational License Server files into the desired directory say /usr/local/flexlm

2. Generate license keys from IBM Rational License Key Center by navigating through My license keys > Get keys.

3. Select Ethernet Address for Host Type and enter your MAC address of the configured network adapter useually it’s eth0 in Host ID field but without “:“. You can view your machine MAC address by ifconfig and locating the string HWaddr.

4. Edit the license.dat file enter replace the line VENDOR telelogic with the following line:

VENDOR telelogic “/usr/local/flexlm/telelogic”

5. Add the following two lines inside /etc/profile file.

TELELOGIC_LICENSE_FILE=/usr/local/flexlm/licenses/license.dat

export TELELOGIC_LICENSE_FILE

6. You can  start the server by running the following command:

/usr/local/flexlm/lmgrd -local -c /usr/local/flexlm/licenses/license.dat -l /usr/local/flexlm/licenses/license.log

7. You can view the server status by using the following command:

/usr/local/flexlm/lmutil lmstat -a -c /usr/local/flexlm/licenses/license.dat

8. You can shutdown it by running the command:

/usr/local/flexlm/lmutil lmdown -c /usr/local/flexlm/licenses/license.dat

References:

1. https://licensing.subscribenet.com/control/ibmr/manualsupport

2. http://publib.boulder.ibm.com/infocenter/rsdp/v1r0m0/topic/com.ibm.help.download.tls.doc/helpindex_Rational_license_server_TL.html

Configure Tomcat in linux

Filed under: Linux — Ishtiaque @ 10:32 am

1. Extra tomcat directory into particular folder

2. Add following two lines inside /etc/profile file:

JAVA_HOME=/usr/java/jre1.6.0_17

export JAVA_HOME

PATH=$JAVA_HOME/bin:$PATH

3. Either restart the server or run the command “source /etc/profile”.

4. Verify the variable defined by typing “echo $JAVA_HOME“. It should show the value.

29/08/2010

Define environment for all users in linux

Filed under: Linux — Ishtiaque @ 1:44 pm

Add the variable inside /etc/profile such as

JAVA_HOME=/usr/java/default

export JAVA_HOME

PATH=$PATH:$JAVA_HOME

Run the following command to update the changes to the file:

source /etc/profile

28/08/2010

Install and configure Java in linux

Filed under: Linux — Ishtiaque @ 7:43 am

1. Change the directory by running the cmd “cd /usr/java

2. Change the user as root by running the cmd “su – root

3. Chagne the permission of the downloaded JRE file as “chmod a+x jre-6u<version>-linux-i586-rpm.bin"

4. Run the file as “./jre1.6.0_16-linux-i586-rpm.bin"

5. update-alternatives –install /usr/bin/java java /usr/java/jre1.6.0_16/bin/java 500

6. update-alternatives –config java

7. Type the desired jre option and enter.

8. Edit the file /etc/profile and append the line:

PATH=/usr/java/jre1.6.0_17/bin:$PATH

9. Restart the machine and verify it by typing java -version.

References:

1. http://ubuntuforums.org/showthread.php?t=297770

2. http://php.ptagis.org/wiki/index.php/Define_java_in_Redhat_linux_using_alternatives

3. http://news.softpedia.com/news/How-to-Install-Java-in-Fedora-Core-6-39724.shtml

14/08/2010

SQL1015N: The database is inconsistent state SQLSTATE=55025

Filed under: DB2, Linux, WebSphere Portal — Ishtiaque @ 7:24 am

When you start the HADR database after power failure or abnormal termination of the database instance at primary node you might get the following error:

SQL1015N: The database is inconsistent state SQLSTATE=55025

1. Make sure HADR is started on standby machine,  if it’s not started then run the following command to start it:

db2 start hadr on db sample as standby

2. Run the following command to successfully activate and start the database at primary instance:

db2 restart db sample

References:

1. http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.msg.doc/doc/sql1015.htm

09/08/2010

Error code -1 from function: SQLConnect ldapdb2b

Filed under: DB2, TDS — Ishtiaque @ 12:28 pm

In/home/idsinst/idsslapd-idsinst/logs/db2cli.log file following errors logged:

SQL1652N File I/O error occured.

SQL1031N The database directory can’t be found on the indicated file system. SQLSTATE=58031

You get this kind of error when there are more than one database instances created on your machine and TDS database instance is not default  one.

You can view the list of database instances by running the command db2ilist with db2 admin user.

If your TDS instance is not listed at top you will get above errors while running the TDS instance or modifying any config changes in it’s database.

Usually we start the TDS instance with root not with idsinst user which is admin of TDS and it’s db2 instance. So when you will start the TDS instance usually with root it tries to locate it’s database i.e IDSDB in default instance say db2inst1.  So we need to define a variable DB2INSTANCE in either root profile or /etc/profile file so that TDS instance can locate correct db2 profile.

Add following line in /etc/profile and then run the command source /etc/profile to update the changes.

DB2INSTANCE=idsinst; export DB2INSTANCE

OR

export DB2INSTANCE=idsinst

/opt/ibm/ldap/V6.1/sbin/ibmslapd

References:

1. http://www-01.ibm.com/support/docview.wss?uid=swg21431185

2. http://www-01.ibm.com/support/docview.wss?rs=767&uid=swg21314966

Older Posts »

Create a free website or blog at WordPress.com.