1 Reply Latest reply on Jan 7, 2013 11:07 AM by Wolf-Dieter Fink

    Insert data to table, "NoClassDefFoundError"

    wojtek_pl Newbie

      Hi everyone,

      I have a problem with my EAP. In my EJB prject i have a classes which schould insert data to "Gosc" table. "Gosc" is imported table in JPA project. So, i have:

       

      01:05:07,760 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."virtual.trainer.ear"."virtual.trainer.bean.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."virtual.trainer.ear"."virtual.trainer.bean.jar".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "virtual.trainer.bean.jar" of deployment "virtual.trainer.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_01]

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

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

      Caused by: java.lang.RuntimeException: Error getting reflective information for class virtual.trainer.bean.UserService with ClassLoader ModuleClassLoader for Module "deployment.virtual.trainer.ear.virtual.trainer.bean.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: virtual/trainer/entities/Gosc

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

                at java.lang.Class.privateGetDeclaredMethods(Unknown Source) [rt.jar:1.7.0_01]

                at java.lang.Class.getDeclaredMethods(Unknown Source) [rt.jar:1.7.0_01]

                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: virtual.trainer.entities.Gosc from [Module "deployment.virtual.trainer.ear.virtual.trainer.bean.jar: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)

                ... 15 more