Update ear file with wsadmin in WAS 6.1 with Jython

Posted on 2007-10-09
Last Modified: 2013-12-11
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?
Question by:alescere
    1 Comment
    LVL 41

    Accepted Solution

    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:

    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

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now