1 Reply Latest reply on Apr 30, 2006 8:02 AM by Sylvain Leray

    Classpath problem between 2 ear

    Sylvain Leray Newbie

      Hello,

      First, this thing was working :

      AtanorServer.ear/ModuleExpert.jar (containing beans)
      AtanorServer.ear/ModuleTest.jar (containing test beans)



      But now I want to isolate ModuleTest.jar in another ear, so I want :

      AtanorServer.ear/ModuleExpert.jar (containing beans)
      AtanorTest.ear/ModuleTest.jar (containing test beans)

      First ear (AtanorServer.ear) is successfully deploying, loading and working.
      Second ear (AtanorTest.ear) raise error during deployment (note that test beans inherit from main beans):


      12:20:52,747 INFO [EARDeployer] Init J2EE application: file:/C:/IDE/workspace/AtanorServerPlatform/ws/servers/JBoss-4.0.3SP1/server/default/deploy/AtanorTest.ear
      12:20:56,483 WARN [verifier] EJB spec violation:
      Bean : TestAdminFacadeSession
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found on 'com.knowesia.atanor.server.admin.deployment.TestAdminFacadeSessionBean': Unexpected error during load of: com.knowesia.atanor.server.admin.deployment.TestAdminFacadeSessionBean, msg=com/knowesia/atanor/server/admin/deployment/AdminFacadeSessionBean

      12:20:56,493 WARN [verifier] EJB spec violation:
      Bean : UnitTesterEJB
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found on 'com.knowesia.atanor.server.expert.fw.UnitTesterSessionEJBBean': No ClassLoaders found for: com.knowesia.atanor.server.expert.fw.UnitTesterSessionEJBBean

      12:20:58,205 WARN [verifier] EJB spec violation:
      Bean : TestFacadeSession
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found on 'com.knowesia.atanor.server.expert.deployment.TestFacadeSessionBean': Unexpected error during load of: com.knowesia.atanor.server.expert.deployment.TestFacadeSessionBean, msg=com/knowesia/atanor/server/expert/deployment/FacadeSessionBean

      12:20:58,215 ERROR [MainDeployer] Could not create deployment: file:/C:/AtanorServer/as/tmp/deploy/tmp44672AtanorTest.ear-contents/ModuleTest.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy22.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy10.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)


      Actually, AtanorTest.ear needs some classes from AtanorServer.ear/ModuleExpert.jar so I tried to put many classpath in AtanorTest.ear/ModuleTest.jar/META-INF/MANIFEST.MF without success :


      Class-Path: ../../AtanorServer.ear
      ../../../AtanorServer.ear
      ../../AtanorServer.ear
      ../AtanorServer.ear
      ./AtanorServer.ear
      AtanorServer.ear
      ../../AtanorServer.ear/ModuleExpert.jar
      ../../../AtanorServer.ear/ModuleExpert.jar
      ../../AtanorServer.ear/ModuleExpert.jar
      ../AtanorServer.ear/ModuleExpert.jar
      ./AtanorServer.ear/ModuleExpert.jar
      AtanorServer.ear/ModuleExpert.jar


      Can anybody help me pleeeease ???

      Thanks !

        • 1. Re: Classpath problem between 2 ear
          Sylvain Leray Newbie

          Ooops, there is an error in my Cut-Paste, error message is this one (EJB named UnitTesterEJB was a mistake) :


          13:56:27,864 WARN [verifier] EJB spec violation:
          Bean : TestAdminFacadeSession
          Section: 22.2
          Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
          Info : Class not found on 'com.knowesia.atanor.server.admin.deployment.TestAdminFacadeSessionBean': Unexpected error during load of: com.knowesia.atanor.server.admin.deployment.TestAdminFacadeSessionBean, msg=com/knowesia/atanor/server/admin/deployment/AdminFacadeSessionBean

          13:56:27,914 WARN [verifier] EJB spec violation:
          Bean : TestFacadeSession
          Section: 22.2
          Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
          Info : Class not found on 'com.knowesia.atanor.server.expert.deployment.TestFacadeSessionBean': Unexpected error during load of: com.knowesia.atanor.server.expert.deployment.TestFacadeSessionBean, msg=com/knowesia/atanor/server/expert/deployment/FacadeSessionBean

          13:56:27,924 ERROR [MainDeployer] Could not create deployment: file:/C:/AtanorServer/as/tmp/deploy/tmp48669AtanorTest.ear-contents/ModuleTest.jar
          org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
          at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:575)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy22.create(Unknown Source)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy10.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)