6 Replies Latest reply on Jan 25, 2013 8:05 AM by Stephen Coy

    Shared libraries like Websphere

    David Castaño Newbie

      I'm migrating an application myapptest.ear from Websphere 6.1 to JBoss AS 7 and I read many discussions and the oficial documentation about shared libraries in JBoss AS 7. Now I have the modules, and the entries for global-modules in the file standalone.xml and I continue with the same error:

       

       

      09:00:57,687 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC0000

      1: Failed to start service jboss.deployment.subunit."myapptest.ear"."myapptestWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myapptest.ear"."myapptestWeb.war".

      POST_MODULE: Failed to process phase POST_MODULE of subdeployment "myapptestWeb.war" of deployment "myapptest.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

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

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

              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_09]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_09]

              at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_09]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Could not load home interface type es.bcn.doc.proxy_fwk.ejb.ProxyHome

              at org.jboss.as.ejb3.deployment.processors.EjbRefProcessor.processDescriptorEntries(EjbRefProcessor.java:91)

              at org.jboss.as.ee.component.deployers.AbstractDeploymentDescriptorBindingsProcessor.deploy(AbstractDeploymentDescriptorBindingsProcessor.java:100)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              ... 5 more

      Caused by: java.lang.ClassNotFoundException: com.bicn.doc.proxy_fwk.ejb.ProxyHomefrom [Module "deployment.myapptest.ear.myapptestWeb.war:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_09]

              at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_09]

              at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.ejb3.deployment.processors.EjbRefProcessor.processDescriptorEntries(EjbRefProcessor.java:89)

              ... 7 more

      I don't understand the exception, because the Class com.bicn.doc.proxy_fwk.ejb.ProxyHomefrom is inside the correct place in the correct .jar . I have the next directories of modules:

           JBOSS_HOME/modules:

                imi

                     myapp_fwk

                          main

                               myapp_fwk.ear

                               myapp_fwkCommon.jar

                               myapp_fwkEJBClient.jar

                               appiio-2.0.2.jar

                               module.xml

       

      And here is the module.xml:

       

      <module xmlns="urn:jboss:module:1.1" name="imi.myapp_fwk">
      
          <resources>
              <resource-root path="myapp_fwk.ear"/>
              <resource-root path="myapp_fwkCommon.jar" />
              <resource-root path="myapp_fwkEJBClient.jar" />
              <resource-root path="appiio-2.0.2.jar" />
      
              <!-- Insert resources here -->
          </resources>
      
      </module>
      

       

      In the standalone.xml I have the next entries:

       

       

      <subsystem xmlns="urn:jboss:domain:ee:1.0">
           <global-modules>
                <module name="mi.myapp_fwk" slot="main"/>
           </global-modules>
      </subsystem>
      

       

      Any help or comment is good, thanks