8 Replies Latest reply on Jul 6, 2012 9:04 AM by Sergiu Pienar

    Problem while Jboss migration from 4.2 to 7.1

    Bajrang Asthana Newbie

      I am getting very strange error while deploying Seam project (.ear file) in JBoss 7.1.

       

      I have mentioned some of the errors below -

       

      18:09:40,472 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."protectoria.ear"."app.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."protectoria.ear"."app.jar".INSTALL: Failed to process phase INSTALL of subdeployment "app.jar" of deployment "protectoria.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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

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

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider '

            org.hibernate.ejb.HibernatePersistence

          ' not found

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.lookupProvider(PersistenceUnitDeploymentProcessor.java:555)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleJarDeployment(PersistenceUnitDeploymentProcessor.java:145)

          at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:120)

          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

       

      18:09:40,659 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/protectoria]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NoClassDefFoundError: org/dom4j/io/SAXReader

          at org.jboss.seam.util.XML.getRootElement(XML.java:13) [jboss-seam.jar:1.2.1.GA-protectoria_JBSEAM-1323_patch]

          at org.jboss.seam.init.Initialization.initComponentsFromXmlDocuments(Initialization.java:115) [jboss-seam.jar:1.2.1.GA-protectoria_JBSEAM-1323_patch]

          at org.jboss.seam.init.Initialization.create(Initialization.java:89) [jboss-seam.jar:1.2.1.GA-protectoria_JBSEAM-1323_patch]

          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33) [jboss-seam.jar:1.2.1.GA-protectoria_JBSEAM-1323_patch]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

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

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: java.lang.ClassNotFoundException: org.dom4j.io.SAXReader from [Module "deployment.protectoria.ear: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.performLoadClassChecked(ConcurrentClassLoader.java:423)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

          ... 12 more

       

      18:09:40,690 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/protectoria]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class no.messageman.protectoria.core.contextlistener.InitializeGlobalContext: java.lang.NullPointerException

          at java.util.Properties$LineReader.readLine(Properties.java:418) [rt.jar:1.6.0_21]

          at java.util.Properties.load0(Properties.java:337) [rt.jar:1.6.0_21]

          at java.util.Properties.load(Properties.java:325) [rt.jar:1.6.0_21]

          at no.messageman.protectoria.core.contextlistener.InitializeGlobalContext.createMessages(InitializeGlobalContext.java:421) [app.jar:]

          at no.messageman.protectoria.core.contextlistener.InitializeGlobalContext.contextInitialized(InitializeGlobalContext.java:179) [app.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

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

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

       

      18:09:40,706 ERROR [no.messageman.protectoria.core.finder.ProtectoriaLookup] (MSC service thread 1-2) Lookup failed for class protectoria/RBACHandler/local: javax.naming.NameNotFoundException: protectoria/RBACHandler/local -- service jboss.naming.context.java.protectoria.RBACHandler.local

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

          at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)

          at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_21]

          at no.messageman.protectoria.core.finder.ProtectoriaLookup.getRBACHandler(ProtectoriaLookup.java:361) [app.jar:]

          at no.messageman.protectoria.core.security.CacheResourceRoleMapping.contextInitialized(CacheResourceRoleMapping.java:55) [app.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

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

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

       

      18:09:40,722 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/protectoria]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class no.messageman.protectoria.core.security.CacheResourceRoleMapping: java.lang.RuntimeException: javax.naming.NameNotFoundException: protectoria/RBACHandler/local -- service jboss.naming.context.java.protectoria.RBACHandler.local

          at no.messageman.protectoria.core.finder.ProtectoriaLookup.getRBACHandler(ProtectoriaLookup.java:366) [app.jar:]

          at no.messageman.protectoria.core.security.CacheResourceRoleMapping.contextInitialized(CacheResourceRoleMapping.java:55) [app.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

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

          at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

      Caused by: javax.naming.NameNotFoundException: protectoria/RBACHandler/local -- service jboss.naming.context.java.protectoria.RBACHandler.local

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)

          at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:113)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)

          at javax.naming.InitialContext.lookup(InitialContext.java:392) [rt.jar:1.6.0_21]

          at no.messageman.protectoria.core.finder.ProtectoriaLookup.getRBACHandler(ProtectoriaLookup.java:361) [app.jar:]

          ... 9 more

       

      If anyone has faced such exceptions/errors. Please help with your suggestions.