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.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: