• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

ear deployment

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends
I am deploying the application ear many times in a day and it is time consuming to deploy each time.Can anyone please suggest if there is any script/automated process using which I can deploy very quickly and avoid restarting the server each time.

Thanks
 
Sheriff
Posts: 24635
56
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, first of all you don't need to restart the server if you're just installing a new version of the EAR. But if you want something a little bit more automated than opening the web-based admin application and clicking, here's the install script I use:Put that in a file called (e.g.) install.script and open a command window on the server where Websphere is running. Change the current directory to Websphere's "bin" directory. (For me that would be
c:/websphere/appserver/bin but maybe something else for you.) Type this command:Note that you need to put the EAR file in a predetermined location on the server (I used the installableapps directory) and that location must be specified in the script.
 
kalyan mohan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for that...
Iam getting the following error when I try this ..any suggestions please

WASX7023E: Error creating "SOAP" connection to host "localhost"; exception infor
mation: com.ibm.websphere.management.exception.ConnectorNotAvailableException
WASX7213I: This scripting client is not connected to a server process; please re
fer to the log file C:\websphere\Dev\logs\wsadmin.traceout for additional informat
ion.
WASX7029I: For help, enter: "$Help help"
wsadmin>WASX7015E: Exception running command: "set asn [$AdminControl queryNames
type=ApplicationManager,process=server1,*]"; exception information:
com.ibm.ws.scripting.ScriptingException: AdminControl service not available

wsadmin>WASX7015E: Exception running command: "$AdminControl invoke $asn stopApp
lication myapp"; exception information:
com.ibm.bsf.BSFException: error while eval'ing Jacl expression: can't read "asn
": no such variable
wsadmin>WASX7015E: Exception running command: "$AdminApp uninstall WCG - Catalys
t 4.5"; exception information:
com.ibm.bsf.BSFException: error while eval'ing Jacl expression: can't find meth
od "uninstall" with 4 argument(s) for class "com.ibm.ws.scripting.AdminAppClient
"
wsadmin>WASX7015E: Exception running command: "$AdminConfig save"; exception inf
ormation:
com.ibm.ws.scripting.ScriptingException: WASX7070E: The configuration service i
s not available.

wsadmin>WASX7015E: Exception running command: "$AdminApp install C:/websphere/Dev/
installableApps/app.ear {-preCompileJSPs true}"; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7206W: The application management
service is not running. Application management commands will not run.

wsadmin>WASX7015E: Exception running command: "$AdminConfig save"; exception inf
ormation:
com.ibm.ws.scripting.ScriptingException: WASX7070E: The configuration service i
s not available.

wsadmin>WASX7015E: Exception running command: "$AdminControl invoke $asn startAp
plication myapp"; exception information:
com.ibm.bsf.BSFException: error while eval'ing Jacl expression: can't read "asn
": no such variable
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like none of your servers are up when your calling wsadmin. Just a note, you will quickly learn that jacl script errors are cryptic and often times tell you nothing. It takes a while of working with them to understand the error messages.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem should be with the \AppServer\profiles\AppSrv01\properties\wsadmin.properties. If you have changed the port information during creation of your profile that should be reflected in wsadmin.properties.

Application servers > server1 > Ports

Check the SOAP_CONNECTOR_ADDRESS port number this should be set to com.ibm.ws.scripting.port in wsadmin.properties

PS. this is wrt Websphere 6
 
We don't have time for this. We've gotta save the moon! Or check this out:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!