2 Replies Latest reply on Jan 16, 2012 5:29 PM by alasoua

    EJB CORE Deployment Failure on JBOSS AS 7 (.ear deploy)

    alasoua Newbie

      Hi

       

      I have an ear structured as follows:

       

       

          core-1.0.ear

          +lib

          +core-jpa-1.0.jar   /*JPA 2.0 Entities */

          +core-ejb-1.0.jar   /*EJB 3.1 Lite : Only Stateless Session Beans */

          +core-web-1.0.jar   /* Servlet 3.0 based web application with XHTML/Clean-AJAX UI */

       

       

       

       

      Now the EJBs seems to be deployed correctly, but Im blocked with an exception happening once all the JNDI bindings are done ... any help or direction would be very much appreciated and Thanks a lot in advance.

       

       

      Here is the stacktrace for the exception:

       

       

          21:45:27,850 INFO  [org.jboss.jpa] (MSC service thread 1-4) starting Persistence Unit Service 'core-1.0.ear#MySQL5'

          21:45:27,942 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."core-1.0.ear"."core-ejb-1.0.jar".INSTALL: org.jboss.msc.service.Star

          tException in service jboss.deployment.subunit."core-1.0.ear"."core-ejb-1.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "core-ejb-1.0.jar" of deployment "core-1.0.ear"

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

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

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

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_02]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_02]

                  at java.lang.Thread.run(Thread.java:722) [:1.7.0_02]

          Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

                  at org.jboss.classfilewriter.ClassFile.define(ClassFile.java:280)

                  at org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:164)

                  at org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:145)

                  at org.jboss.as.ee.component.ViewConfiguration.addViewInterceptor(ViewConfiguration.java:113)

                  at org.jboss.as.jpa.processor.JPAInterceptorProcessor$2.configure(JPAInterceptorProcessor.java:83)

                  at org.jboss.as.ee.component.ComponentDescription$DefaultFirstConfigurator.configure(ComponentDescription.java:879)

                  at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:72)

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

                  ... 5 more

          Caused by: java.lang.reflect.InvocationTargetException

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_02]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_02]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_02]

                  at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_02]

                  at org.jboss.classfilewriter.ClassFile.define(ClassFile.java:275)

                  ... 12 more

          Caused by: java.lang.SecurityException: Prohibited package name: java.lang

                  at java.lang.ClassLoader.preDefineClass(ClassLoader.java:649) [:1.7.0_02]

                  at java.lang.ClassLoader.defineClass(ClassLoader.java:785) [:1.7.0_02]

                  ... 17 more