3 Replies Latest reply on Feb 13, 2013 12:40 PM by Ravi Bansal

    java.lang.SecurityException: class "org.hibernate.engine.EJB3CascadeStyle"'s

    Prashanth Karnam Newbie

      Hi All,

       

      I am using Jboss 5.1 EAP with hibernate-entitymanager-3.4 / JPA2. I am getting the following error while deploying the web application in JBoss. Can anyone help us resolve this issue please ?

       

      2012-02-01 10:22:00,156 ERROR [STDERR] (main) java.lang.NoClassDefFoundError: org/hibernate/engine/EJB3CascadeStyle

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at org.hibernate.ejb.event.EJB3PersistEventListener.<clinit>(EJB3PersistEventListener.java:19)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at org.hibernate.ejb.EventListenerConfigurator.<init>(EventListenerConfigurator.java:81)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:136)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at com.emirates.sds.workflow.mbean.WFServerStartupMBean.initWFMinaTaskServer(WFServerStartupMBean.java:79)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at com.emirates.sds.workflow.mbean.WFServerStartupMBean.<init>(WFServerStartupMBean.java:57)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at java.lang.Class.newInstance0(Class.java:355)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at java.lang.Class.newInstance(Class.java:308)

      2012-02-01 10:22:00,156 ERROR [STDERR] (main)     at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:102)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:405)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:267)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:253)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at java.lang.reflect.Method.invoke(Method.java:597)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      2012-02-01 10:22:00,157 ERROR [STDERR] (main)     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

      2012-02-01 10:22:00,158 ERROR [STDERR] (main)     at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

      2012-02-01 10:22:00,158 ERROR [STDERR] (main)     at $Proxy38.start(Unknown Source)

      2012-02-01 10:22:00,158 ERROR [STDERR] (main)     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

      2012-02-01 10:22:00,164 ERROR [STDERR] (main)     at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

      2012-02-01 10:22:00,164 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

      2012-02-01 10:22:00,164 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

      2012-02-01 10:22:00,164 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.system.ServiceController.start(ServiceController.java:460)

      2012-02-01 10:22:00,165 ERROR [STDERR] (main)     at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      2012-02-01 10:22:00,166 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

      2012-02-01 10:22:00,167 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.Main.boot(Main.java:221)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.Main$1.run(Main.java:556)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at java.lang.Thread.run(Thread.java:662)

      2012-02-01 10:22:00,168 ERROR [STDERR] (main) Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.hibernate.engine.EJB3CascadeStyle, msg=class "org.hibernate.engine.EJB3CascadeStyle"'s signer information does not match signer information of other classes in the same package

      2012-02-01 10:22:00,168 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:181)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:276)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1138)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:862)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:502)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:447)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

      2012-02-01 10:22:00,169 ERROR [STDERR] (main)     ... 88 more

       

       

      regards

      Prashanth Karnam

        • 1. Re: java.lang.SecurityException: class "org.hibernate.engine.EJB3CascadeStyle"'s
          Wolfgang Knauf Master

          Hi,

           

          is "org.hibernate.engine.EJB3CascadeStyle" an annotation used in your code? It seems that "Hibernate-entitymanager 3.4" only contains "org.hibernate.engine.CascadeStyle".  If it is not an annotation used by yourself: which hibernate related JARs do you bundle in your own application?

          And which hibernate version is included in JBoss EAP 5.1 (sorry for the question, but I just have access to the community releases)

           

          Best regards

           

          Wolfgang

          • 2. Re: java.lang.SecurityException: class "org.hibernate.engine.EJB3CascadeStyle"'s
            Prashanth Karnam Newbie

            Hi,

             

            I am using hibernate-entitymanager.3.4.0 bundled in my war.

             

            regards

            Prashanth Karnam

            • 3. Re: java.lang.SecurityException: class "org.hibernate.engine.EJB3CascadeStyle"'s
              Ravi Bansal Newbie

              Was there any resolution to this. ?

              I am consistenly getting the similiar error when using hibernate-entitymanager.3.4.0 (Jboss EAP 5.1.2)  and trying to create the entity manager

               

              java.lang.ExceptionInInitializerError

                        at org.hibernate.ejb.EventListenerConfigurator.<init>(EventListenerConfigurator.java:81)

                        at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:136)

                        at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)

                        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

                        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

               

              Caused by: java.lang.SecurityException: class "org.hibernate.engine.EJB3CascadeStyle"'s signer information does not match signer information of other classes in the same package

                        at java.lang.ClassLoader.checkCerts(ClassLoader.java:806)

                        at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)

                        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:625)

                        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

                        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

                        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

                        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

                        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

                        at java.security.AccessController.doPrivileged(Native Method)

                        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

                        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

                        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

                        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

                        at org.hibernate.ejb.event.EJB3PersistEventListener.<clinit>(EJB3PersistEventListener.java:19)

                        ... 20 more