Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Command Line utilities

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic