Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-625

EnterpriseArchive deployment with EJB-JAR without descriptor will fail on WAS V8.0

    XMLWordPrintable

Details

    • Hide

      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

      Show
      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
    • Workaround Exists
    • Hide

      In some scenarios it might be possible to deploy as a JavaArchive instead.

      Show
      In some scenarios it might be possible to deploy as a JavaArchive instead.

    Description

      A deployment of an EnterpriseArchive that contains an EJB-JAR without a descriptor will fail on WAS V8.0. The errors being logged are from WTP and have message codes of IWAE0006E and IWAE0023E.

      Attachments

        Activity

          People

            gpoul_jira Gerhard Poul (Inactive)
            gpoul_jira Gerhard Poul (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: