6 Replies Latest reply on May 28, 2013 2:22 AM by sfcoy

    Jboss deployment issue

    mitvivek

      Hi Experts,

       

      I am trying to deploy an EAR file in JBoss AS7, but I am getting issues.

       

      My project structure looks like:

       

      TEST
      |_______TestEjb (Session EJB's)
      |_______TestWebService (Webservice)
      |_______TestJava (Java Project)


      TestEjb is depenedent on TESTJava
      TestWebService is depenedent on TESTJava, TestEjb
      TESTJava is depenedent on TestWebService

       

       

      Can some one please help me by providing a jboss-depoyment-structure.xml?

       

      Current jboss-depoyment-structure.xml, I have:

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-deployment-structure>

         <deployment>

           <exclusions/>

           <dependencies>

        <module name="deployment.TEST.ear.TESTEJB.jar" />

        <module name="deployment.TEST.ear.TESTWebService.war" />

      </dependencies>

         </deployment>

         <sub-deployment name="TESTEJB.jar">

           <exclusions/>

         </sub-deployment>

          <sub-deployment name="TESTWebService.war">

           <exclusions/>

         </sub-deployment>

      </jboss-deployment-structure>

       

      =======================================================================

      Output of the jar -tf TEST.ear

       

      META-INF/MANIFEST.MF

      TESTWebService.war

      Common.jar

      TESTEJB.jar

      .compatibility

      .server

      META-INF/

      META-INF/.modulemaps

      META-INF/application.xml

      META-INF/ibm-application-ext.xmi

      META-INF/jboss-deployment-structure.xml

      config/

      config/test.properties

      lib/

      lib/ThirdPartyAcknowledgments.txt

      lib/commons-beanutils.jar

      lib/commons-collections-3.1.jar

      lib/commons-lang-2.3.jar

      lib/commons-logging-1.1.1.jar

      lib/dozer-5.3.2.jar

      lib/ehcache.jar

      lib/jasonpell.jar

      lib/jaxp-api-1.4.jar

      lib/jdom.jar

      lib/jsr173_1.0_api.jar

      lib/jt400ssl.jar

      lib/log4j.jar

      lib/slf4j-api-1.6.4.jar

      lib/slf4j-log4j12-1.6.4.jar

      lib/xbean.jar

      lib/xmlbeans-2.2.0.jar

      releaseNotes/

      releaseNotes/releaseNotes.txt

       

      =========================================================================

      Also I am getting the following errors:

      18:16:00,204 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found TEST.ear in deployment directory. To trigger deployment create a file called TEST.ear.dodeploy

      18:16:53,243 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "TEST.ear"

      18:16:59,370 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry ../lib/xerces.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/lib/jdom.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,371 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry xerces.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/lib/jdom.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,372 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jasonpell.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,372 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jt400ssl.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry ehcache.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jdom.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry commons-lang-2.3.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,373 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry log4j.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry xbean.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry jsr173_1.0_api.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry commons-beanutils.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,374 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry dozer-5.3.2.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,375 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry slf4j-api-1.6.4.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,375 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015960: Class Path entry slf4j-log4j12-1.6.4.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/Common.jar  does not point to a valid jar for a Class-Path reference.

      18:16:59,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "TESTWebService.war"

      18:16:59,376 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "TESTEJB.jar"

      18:16:59,882 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry TESTJava.jar in /C:/Users/invmittal/Downloads/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/TEST.ear/TESTWebServiceWeb.war  does not point to a valid jar for a Class-Path reference.

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,912 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General' for service type 'javax.ws.rs.ext.MessageBodyReader'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromStringEnum' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeValueOf' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$TypeFromString' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$StringConstructor' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,922 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders$DateProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:16:59,922 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.jersey.server.impl.model.parameter.multivalued.JAXBStringReaderProviders$RootElementProvider' for service type 'com.sun.jersey.spi.StringReaderProvider'

      18:17:00,490 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."TEST.ear"."TESTEJB.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."TEST.ear"."TESTEJB.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "TESTEJB.jar" of deployment "TEST.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.3.GA.jar:1.0.3.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]

      Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class ws.com.catalogueejb.SearchBean with ClassLoader ModuleClassLoader for Module "deployment.TEST.ear.TESTEJB.jar:main" from Service Module Loader

      at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

      at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)

      at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

      ... 5 more

      18:17:00,708 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "TEST.ear" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {

          "jboss.deployment.subunit.\"TEST.ear\".\"TESTWebService.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"TEST.ear\".\"TESTWebService.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"TESTWebService.war\" of deployment \"TEST.ear\"

          Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class ws.com.webservices.changepassword.ChangePasswordSoapBindingImpl with ClassLoader ModuleClassLoader for Module \"deployment.TEST.ear.TESTWebService.war:main\" from Service Module Loader

          Caused by: java.lang.NoClassDefFoundError: ws/com/exception/UserManagerException

      18:17:00,747 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment TESTWebServiceWeb.war in 38ms

      18:17:00,747 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment TESTEJB.jar in 39ms

      18:17:00,973 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment TEST.ear in 265ms

       

      Please help me in getting this deployed.

        • 1. Re: Jboss deployment issue
          nickarls

          Why do you have a jboss-deployment-structure.xml in the first place?

          • 2. Re: Jboss deployment issue
            sfcoy

            You have circular dependencies:

             

                 TestEjb --> TESTJava --> TestWebService --> TestEjb --> TESTJava --> TestWebService ...

             

            You need to refactor your modules to eliminate this (possibly creating a fourth module).

             

            Also, is Common.jar really TESTJava?

             

            In any event, if Common.jar does not contain EJBs then it must be moved to the "lib" directory of your EAR in order to be accessible.

             

            What does your application.xml look like?

            • 3. Re: Jboss deployment issue
              erasmomarciano

              Hi

              You can use these tool for analyze yuoue web-aap

               

              https://github.com/windup/windup

              http://www.jboss.org/tattletale/docs

              • 4. Re: Jboss deployment issue
                mitvivek

                Thanks for the replies.

                 

                 

                 

                @Stephen: My application.xml looks like:

                 

                <?xml version="1.0" encoding="UTF-8"?>
                <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
                <application id="Application_ID">
                <display-name>TEST</display-name>
                <description>TODOVERSION</description>
                <module id="WebModule_1359693026436">
                  <web>
                   <web-uri>TESTWebService.war</web-uri>
                   <context-root>webservice</context-root>
                  </web>
                </module>
                <module id="EjbModule_1359693027621">
                  <ejb>TESTEJB.jar</ejb>
                </module>
                <security-role>
                  <role-name>Public</role-name>
                </security-role>
                </application>

                Ye, the common.jar is TESTjava project jar... I will try placing inside the lib.

                 

                @Nicklas: If I do not provide  jboss-deployment-structure.xml I get an error related to the same.

                 

                @erasmo2: I will checkout the links. thanks for the help.

                • 5. Re: Jboss deployment issue
                  nickarls

                  Most "sane" packaging solutions can be made to work with the plain standard EE deployment archive structure. And if it doesn't work, it's "not sane" by definition ;-)

                  • 6. Re: Jboss deployment issue
                    sfcoy

                    Vivek Mittal wrote:

                     

                    ...

                    @Stephen:

                    ...

                     

                    Ye, the common.jar is TESTjava project jar... I will try placing inside the lib.

                    ...

                    It's important to note that classes in common.jar will not be able to "see" any of the classes in TESTWebService.war or TESTEJB.jar.

                     

                    You need to pull the dependent classes out of the ejb jar and/or war and add them to common.jar or a new fourth jar in the EAR/lib directory.