• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5327
  • Last Modified:

Update ear file with wsadmin in WAS 6.1 with Jython

WebSphere Application Server Version 6.1 using wsadmin scripting tool with jython.

I connect to wsadming in Windows as:
wsadmin.bat -lang jython -conntype SOAP -user username -password password

AdminApp.update('app', 'Name.ear', [-operation update -contents C:\Name.ear -usedefaultbindings -nodeployejb -BindJndiForEJBNonMessageBinding [["Increment EJB module" Increment Increment.jar,META-INF/ejb-jar.xml Inc]]]')

I receive this error: WASX7412E: Invalid content type value: Name.ear how is the name of the app specified with wsadmin.bat for WebSphere 6.1 using jython?

What is wrong with the syntax above. How do you use the update feature of wsadmin to update an installed ear?
0
alescere
Asked:
alescere
1 Solution
 
HonorGodCommented:
It looks as though you are trying to use the string form of parameter passing to the update method.
An example for which is available here:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/txml_updatingapp.html

You appear to be missing an opening single quote for this string.  I think you need something like:

AdminApp.update( 'app', 'Name.ear', '[ -operation update -contents C:/Name.ear -usedefaultbindings -nodeployejb -BindJndiForEJBNonMessageBinding [ [ "Increment EJB module" Increment Increment.jar,META-INF/ejb-jar.xml Inc ] ] ]' )

Good Luck
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now