2 Replies Latest reply: Mar 28, 2012 11:22 AM by Darrell Burgan RSS

    Hibernate-Infinispan not found?

    Darrell Burgan Newbie

      Hello, I have a web app that seeks to use the provided Hibernate-Infinispan package that JBoss AS 7.1.1 provides. This code worked great in 7.1.0, but now fails.

       

      The manifest file has the following dependencies:

       

      org.infinispan export, org.hibernate export, org.hibernate.envers export, javax.api export, javax.persistence.api export, org.hibernate.cache.infinispan export

       

      But when I deploy my app I get the following:

       

      22:13:45,084 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC00001: Failed to start service jboss.module.service."deployment.pa-testing-web.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.pa-testing-web.war".main: Failed to load module: deployment.pa-testing-web.war:main

                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [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.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_02]

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

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

      Caused by: org.jboss.modules.ModuleNotFoundException: Module org.hibernate.cache.infinispan:main is not found in local module loader @1757322 (roots: /home/dburgan/bin/jboss-as-7.1.1.Final/modules)

                at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.Module.addPaths(Module.java:841) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.Module.link(Module.java:1181) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208) [jboss-modules.jar:1.1.1.GA]

                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                ... 5 more

       

      One thing I noticed is that in 7.1.0, the $JBOSS_HOME/modules folder had an org/hibernate/infinispan/main folder in it with the following contents:

       

      hibernate-infinispan-4.0.1.Final.jar

      hibernate-infinispan-4.0.1.Final.jar.index

      module.xml

       

      But in 7.1.0 the hibernate-infinispan-4.0.1.Final.jar file is moved to $JBOSS_HOME/modules/org/hibernate/main. Could this be why I'm getting this exception?

       

      Thanks,

      Darrell