Deploy an ear app onto WebSphere Application Server through wsadmin

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

/wp_profile/bin/ -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/ -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/ -ear /opt/deploy/wps.ear -operationDir /opt/deploy/wps_expanded -operation collapse

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

/wp_profile/bin/ -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.




About Ishtiaque

I am IBM Certified Infrastructure Systems Architect, Linux Foundation Certified System Administrator, Oracle Certified Programmer in Java and Web Component Developer, and TOGAF 9 certified with over 10 years of support and development experience in IBM middleware software and Java. Additionally, have a sound grip in databases and OpenStack administration. I hold the following certifications: IBM Certified Infrastructure Systems Architect Linux Foundation Certified System Administrator (LFCS) TOGAF 9 Certified Oracle Certified Expert, Java EE6 Web Component Developer Oracle Certified Professional – Java 6 Programmer ITIL v3 Foundation Certified IBM Certified Solution Architect – Cloud Computing Infrastructure V1 IBM Certified System Administrator – WebSphere Portal V8, V7, V6.1, V6 IBM Certified System Administrator – WebSphere Application Server V7, V6.1 IBM Certified System Administrator – AIX V7 IBM Certified System Administrator – WebSphere MQ V7 IBM Certified Deployment Professional – Business Process Manager Advanced V7.5 IBM Certified Solution Advisor – Cloud Computing Architecture V3 IBM Certified Solution Developer – WebSphere Portal V5.1
This entry was posted in Linux, WAS, WebSphere Portal. Bookmark the permalink.

Leave a Reply

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

You are commenting using your 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