0 Replies Latest reply on Nov 11, 2013 1:48 AM by Telmo Neves

    ejb + jpa inside ear inside jboss

    Telmo Neves Newbie

      Hi!

      I dont know if this is the right place but i hope that you can possible answer my question.


      I have a Session Bean in a EJB project that is using a object inside a another Project (in this case JPAProject). Because it is a object i just do a import to the JPa Project and get the object but this give this error.


      I hope you can help

      Thanks


       

       

       

      06:34:57,169 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."EARProject.ear"."EJB_Intern.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."EARProject.ear"."EJB_Intern.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "EJB_Intern.jar" of deployment "EARProject.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(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]

        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

      Caused by: java.lang.RuntimeException: Error getting reflective information for class sessionEntityBeans.PersonFacade with ClassLoader ModuleClassLoader for Module "deployment.EARProject.ear.EJB_Intern.jar:main" from Service Module Loader

        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

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

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

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

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

        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.NoClassDefFoundError: jpaFiles/Person

        at java.lang.Class.getDeclaredMethods0(Native Method) [rt.jar:1.7.0_25]

        at java.lang.Class.privateGetDeclaredMethods(Class.java:2521) [rt.jar:1.7.0_25]

        at java.lang.Class.getDeclaredMethods(Class.java:1845) [rt.jar:1.7.0_25]

        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        ... 10 more

      Caused by: java.lang.ClassNotFoundException: jpaFiles.Person from [Module "deployment.EARProject.ear.EJB_Intern.jar:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

        ... 15 more

       

       

      06:34:57,177 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console listening on http://127.0.0.1:9990

      06:34:57,178 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2079ms - Started 195 of 281 services (2 services failed or missing dependencies, 82 services are passive or on-demand)

      06:34:57,378 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "EARProject.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"EARProject.ear\".\"EJB_Intern.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"EARProject.ear\".\"EJB_Intern.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"EJB_Intern.jar\" of deployment \"EARProject.ear\""}}

      06:34:57,386 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment EJB_Intern.jar in 6ms

      06:34:57,387 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment EARProject.ear in 8ms

      06:34:57,388 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.subunit."EARProject.ear"."EJB_Intern.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."EARProject.ear"."EJB_Intern.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "EJB_Intern.jar" of deployment "EARProject.ear"

       

       

      06:34:57,389 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"EARProject.ear\".\"EJB_Intern.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"EARProject.ear\".\"EJB_Intern.jar\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"EJB_Intern.jar\" of deployment \"EARProject.ear\""}}}}