wsadmin export application fails with IllegalArgumentException
 Technote (troubleshooting)
 
Problem(Abstract)
wsadmin $AdminApp export applicationName fails with IllegalArgumentException
 
Symptom
After deploying on WebSphere® Application Server, an application can be exported as an ear file. After deploying the application the export operation using wsadmin fails with the following exception in the wsadmin.traceout file.

[8/11/05 23:24:20:274 EDT] 784386 ExceptionSupp d class is com.ibm.websphere.management.exception.AdminException
[8/11/05 23:24:20:276 EDT] 784386 AbstractShell E WASX7120E:
Diagnostic information from exception with text "com.ibm.websphere.management.exception.AdminException javax.management.MBeanException com.ibm.websphere.management.exception.AdminException java.lang.IllegalArgumentException: java.lang.IllegalArgumentException follows: com.ibm.websphere.management.exception.AdminException at com.ibm.ws.scripting.AppManagementProxy.exportApplication(AppManagementProxy.java:354)

The application export from the adminconsole will export the application without any exception, however the size of the ear file will be zero bytes.
 
Resolving the problem
In this case the there was a jar file inside a jar file. Removing the jar file from the jar file fixed the problem.

This problem can be caused by an invalid ear file. To find the root cause of the problem, please use earExpander tool to expand the ear. The earExpander tool will fail to expand the ear file if it finds any invalid characters or if it finds the ear file is not a valid J2EE ear file.

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
Historical Number
70065
L6Q
000
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > System Management/Repository
Operating system(s): Windows
Software version: 5.1
Software edition:
Reference #: 1215906
IBM Group: Software Group
Modified date: Sep 28, 2007