4 Replies Latest reply on Jan 13, 2014 8:01 PM by sviluppatorefico

    ACLImpl and HibernateProxy NoClassDefFoundError

    bwallis42

      I'm porting an app from jboss AS 6.1 (open source) to EAP 6.1 (ie: 7.2 open source based) and am having an issue that I think is class loader related.

       

      The app is using ACLs and has the following persistence.xml file:

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
      
          <persistence-unit name="ACL" transaction-type="RESOURCE_LOCAL">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <non-jta-data-source>java:jboss/datasources/HarveyLocalTxDS</non-jta-data-source>
              <class>org.jboss.security.acl.ACLImpl</class>
              <class>org.jboss.security.acl.ACLEntryImpl</class>
              <exclude-unlisted-classes>true</exclude-unlisted-classes>
              <properties>
                  <property name="hibernate.hbm2ddl.auto" value="create" />
              </properties>
          </persistence-unit>
      </persistence>
      
      

       

      which is located in the EJB jar file's META-INF directory. The EJB jar MANIFEST.MF file has the following in it

       

      Manifest-Version: 1.0
      Built-By: bwallis
      Build-Jdk: 1.7.0_17
      Created-By: Maven Integration for Eclipse
      Dependencies: org.hibernate export, org.hibernate.validator export, or
      g.javassist export, org.picketbox export
      
      

       

      (I've tried with and without the "export" flags and with and without the dependencies line)

       

      When the jar is deployed I get the error and warning shown below 2 times.

       

      I have tried all sort of variations and searched for similar problems but I cannot work out what the problem with the deployment is. NoClassDefFoundError suggests that this is some sort of class loader issue.

       

      Any suggestions as to what I am doing wrong here??

       

      thanks.

       

       

      15:36:14,655 ERROR [org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer] (ServerService Thread Pool -- 74) HHH000142: Javassist Enhancement failed: org.jboss.security.acl.ACLEntryImpl: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:510) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:487) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:423) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:395) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:163) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:221) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:341) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:507) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:146) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
        at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:385) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:92) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:502) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        ... 36 more
      Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_17]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_17]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
        at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        ... 37 more
      Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy from [Module "org.picketbox:main" from local module loader @60515a25 (finder: local module finder @7cf56489 (roots: /Users/bwallis/InfoMedix/Harvey/jboss-eap-6.1/modules,/Users/bwallis/InfoMedix/Harvey/jboss-eap-6.1/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1]
        ... 45 more
      
      15:36:14,659 WARN  [org.hibernate.tuple.entity.PojoEntityTuplizer] (ServerService Thread Pool -- 74) HHH000305: Could not create proxy factory for:org.jboss.security.acl.ACLEntryImpl: org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: org.jboss.security.acl.ACLEntryImpl
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:167) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:221) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:341) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:507) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:146) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
        at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:385) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:920) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:92) [hibernate-entitymanager-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99) [jboss-as-jpa-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:510) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:487) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:423) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:395) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:163) [hibernate-core-4.2.0.Final-redhat-1.jar:4.2.0.Final-redhat-1]
        ... 32 more
      Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:170) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:502) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        ... 36 more
      Caused by: java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy
        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_17]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_17]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
        at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
        at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:182) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164) [javassist-3.15.0-GA-redhat-2.jar:3.15.0-GA-redhat-2]
        ... 37 more
      Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy from [Module "org.picketbox:main" from local module loader @60515a25 (finder: local module finder @7cf56489 (roots: /Users/bwallis/InfoMedix/Harvey/jboss-eap-6.1/modules,/Users/bwallis/InfoMedix/Harvey/jboss-eap-6.1/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1]
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1]
        ... 45 more
      
      
      
        • 1. Re: ACLImpl and HibernateProxy NoClassDefFoundError
          bwallis42

          I found this reference [HHH-3826] Hibernate 3.3.1.GA + Javassist issue 3.9.0.GA : java.lang.RuntimeException: by java.lang.NoClassDefFoundError… to a similar problem.

           

          If I read it correctly what might be happening is that the entity class ACLImpl is loaded by the module class loader that loads picketbox but javaassist is trying to add the HibernateProxy interface to that entity class using the class loader that loaded ACLImpl. I'm guessing that HibernateProxy is not visible to it.

           

          Not sure I got that right. Does each module have its own class loader? I think it is somewhat more complicated than that.

          • 2. Re: ACLImpl and HibernateProxy NoClassDefFoundError
            bwallis42

            For the moment I think I might be able to continue on by making copies of ACLImpl and ACLEntryImpl into my own ejb jar file. Seems to eliminate the class loader error so I will see if I can get it to work that way.

             

            Would like to know how this is supposed to work though, are the versions of the ACL*Impl classes in the picketbox module usable?

            • 3. Re: ACLImpl and HibernateProxy NoClassDefFoundError
              bwallis42

              For the moment I think I might be able to continue on by making copies of ACLImpl and ACLEntryImpl into my own ejb jar file. Seems to eliminate the class loader error so I will see if I can get it to work that way.

               

              Despite the fact that this seems to be the way to get around this problem (and is working for me so far), I cannot use it. The two files in question are LGPL licensed which I think probably prohibits me from including the source in my project (which isn't GPL or LGPL licensed).

               

              Is anyone using Picketbox ACLs in an EJB project deployed into a JBoss 7.1 or EAP 6.1 server? How did you get it to work?


              • 4. Re: ACLImpl and HibernateProxy NoClassDefFoundError
                sviluppatorefico

                Hi Brian... I have the same problem. I think the ACL in jboss 7 doesn't work. I've found an ACL configuration to add in the standalone.xml:

                 

                             <security-domain name......

                                     ....

                                     <acl>

                                        <acl-module code="org.jboss.security.acl.ACLProviderImpl" flag="required">

                                            <module-option name="checkParentACL" value="true"/>

                                            <module-option name="persistenceStrategy" value="org.jboss.security.acl.JPAPersistenceStrategy"/>

                                        </acl-module>

                                    </acl>

                 

                But no ACLImpl or ACLEntryImpl are mapped in the db. So this configuration is unuseless