This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Command Line utilities

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Team,
Is there a command line utility to deploy ear or war (preferrable) files on WAS 4.0.
Thanks
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can $APP_ROOT/bin/EARExpander.sh shell script to deploy your ear and war file.You need to supply all the neccessary parameters to this script to expand the ear file.
 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This works for expanding the Ear file into a directory, but it does not update the server-cfg.xml file for me.
I was hoping that there was something like seappinstall that works with war files.
Ideas?
 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried to zip the contents of the application.ear file into an ear file. I then deleted the application from WebSphere and tried to reinstall it using the seappinstall script
I get the following error:
Exception: Exception occurred loading deployment descriptor for module sapplciation.war in ear file C:\xxx\application.ear
Thanks
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SeAppInstall works with both EAR and WAR files on WebSphere 4.0.X AEs. It will update the servlet-cfg.xml file appropriately. Take a look at My workbook for an example of deploying an EAR file with SEappInstall.
Kyle
 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kyle,
Thanks... that works!
However, I have to type in values for the context-root, the display name and the default-host. I was hoping to automate this in an ant build-file and I didn't see any -options for these values.
How do WAS developers who use Ant automate this?
Thanks
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
AFAIK, basically ANT won't do this part. That's one of the things that's being fixed in WAS 5.0 by the way. You could do it entirely at the command line if you were using WAS 4.0 AE (which includes the WSCP and XMLConfig tools) but it's not as easy in WAS AEs.
Kyle
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic