1) Deploy the test.ear on WAS through the adminconsole.
2) Start test app on WAS through the adminconsole.
3) Execute the following jython script with wsadmin:
webModule = AdminControl.queryNames('WebSphere:type=WebModule,name=test.war,*')
print AdminControl.getAttribute(webModule, 'deploymentDescriptor')
4) The wsadmin will show the following result:
WASX7015E: Exception running command: "AdminControl.getAttribute(webModule, 'deploymentDescriptor')"; exception information: javax.management.MBeanException
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: dd_in_ear_load_EXC_
5) The SystemOut.log will contain the following error:
[07.10.11 11:50:09:035 CEST] 00000017 wtp W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl openNestedArchive - module An error occurred while opening a nested archive: IWAE0006E Archive is not a valid EJB JAR File because the deployment descriptor can not be found (case sensitive): META-INF/ejb-jar.xml
IWAE0006E Archive is not a valid EJB JAR File because the deployment descriptor can not be found (case sensitive): META-INF/ejb-jar.xml
[07.10.11 11:50:09:036 CEST] 00000017 wtp E org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategyImpl openNestedArchive(String) An error occurred while opening a nested archive: IWAE0023E Unable to open module file "test.jar" in EAR file "C:\IBM\WebSphere\AppServer80\profiles\AppSrv01\config\cells\gpoul-T410sNode02Cell\applications\test.ear\deployments\test"
[07.10.11 11:50:09:049 CEST] 00000017 wtp W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl initModuleFileFromEAR Ignoring ClassCastException [ org.eclipse.jst.j2ee.commonarchivecore.internal.impl.FileImpl incompatible with org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile ]
[07.10.11 11:50:09:049 CEST] 00000017 wtp E org.eclipse.jst.j2ee.commonarchivecore.internal.impl.EARFileImpl rollUpRoles An error occurred while processing the roles in module
EJB Module [ org.eclipse.jst.j2ee.application.internal.impl.EjbModuleImpl@3c49858 ]
URI [ test.jar ]
Alt DD [ null ]
for application C:\IBM\WebSphere\AppServer80\profiles\AppSrv01\config\cells\gpoul-T410sNode02Cell\applications\test.ear\deployments\test, error message=A file does not exist for module element having uri: test.jar