1 Reply Latest reply on Oct 5, 2011 3:16 PM by vmariusvv

    EAR Deployment Exception on JBoss AS 7.1.0.Alpha2-SNAPSHOT: IllegalAccessError

    vmariusvv Newbie

      Hi,

       

      I'm trying to deploy an EAR project (JavaEE 5, JPA 1.0) on the latest JBoss AS 7.1.0.Alpha2-SNAPSHOT server but I can't understand a cause of an error. It seems that my EJBs can't access their interfaces from the jars under lib directory.

       

      I tried settting the following in standalone.xml:

       

              <subsystem xmlns="urn:jboss:domain:ee:1.0">

                  <ear-subdeployments-isolated>

                      false

                  </ear-subdeployments-isolated>

              </subsystem>

       

      but I know that this only help to reference classes from an EJB to another or from WAR to EJBs. I know that the lib directory is visible by default to WARs and EJBs, so I don't understand what is the problem here. Do I need any jboss*.xml specific file to solve this issue ?

       

      Let me know if you need more infos to understand what is happening.

       

      Thanks,

      Marius

       

       

      14:43:13,999 WARN  [org.jboss.modules] (MSC service thread 1-6) Failed to define class com.persistence.dao.GenericJPADAOImpl in Module "deployment.ProjectEar.ear.BasePersistenceImpl.jar:main" from Service Module Loader: java.lang.IllegalAccessError: class com.persistence.dao.GenericJPADAOImpl cannot access its superinterface com.persistence.dao.IGenericDAO

        at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_26]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_26]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_26]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_26]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]

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

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

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

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

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

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

        at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_26]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_26]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_26]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_26]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]

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

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

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

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

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

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

        at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_26]

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_26]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_26]

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_26]

        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76) [jboss-modules.jar:1.0.2.GA]

        at org.jboss.modules.Module.loadModuleClass(Module.java:590) [jboss-modules.jar:1.0.2.GA]

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

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

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

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

        at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:201)

        at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:83)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

        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$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]