9 Replies Latest reply on Jul 19, 2011 7:35 AM by jaikiran pai

    JBoss 7 CR1 and Hibernate Search

    Ove Ranheim Novice

      I'm trying to deploy a war in JBoss 7 CR1 using Hibernate Search 3.4.0.Final. My project is using Seam 3 (mostly all modules) and Weld 1.1.1.Final.

       

      What does this error mean? Do need to configure something in standalone configuration.

       

       

      22:36:47,606 WARN  [org.jboss.modules] (MSC service thread 1-7) Failed to define class org.hibernate.search.FullTextSession in Module "deployment.stage-web.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/hibernate/search/FullTextSession (Module "deployment.stage-web.war:main" from Service Module Loader)
           at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
           at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
           at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
           at org.jboss.modules.Module.loadModuleClass(Module.java:588)
           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
           at java.lang.Class.forName0(Native Method) [:1.6.0_26]
           at java.lang.Class.forName(Class.java:247) [:1.6.0_26]
           at org.jboss.seam.solder.reflection.Reflections.classForName(Reflections.java:363) [seam-solder-3.0.0.Final.jar:]
           at org.jboss.seam.persistence.HibernatePersistenceProvider.(HibernatePersistenceProvider.java:69) [seam-persistence-3.0.0.Final.jar:]
           at org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtensionImpl.(HibernateManagedSessionExtensionImpl.java:65) [seam-persistence-3.0.0.Final.jar:]
           at org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtension.(HibernateManagedSessionExtension.java:51) [seam-persistence-3.0.0.Final.jar:]
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_26]
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_26]
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_26]
           at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_26]
           at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadExtension(WeldPortableExtensionProcessor.java:117) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
           at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.loadAttachments(WeldPortableExtensionProcessor.java:100) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
           at org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor.deploy(WeldPortableExtensionProcessor.java:86) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
           at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           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:680) [:1.6.0_26]
      Caused by: java.lang.NoClassDefFoundError: org/hibernate/classic/Session
           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)
           ... 27 more
      Caused by: java.lang.ClassNotFoundException: org.hibernate.classic.Session from [Module "deployment.stage-web.war:main" from Service Module Loader]
           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
      
      
        • 1. Re: JBoss 7 CR1 and Hibernate Search
          Ales Justin Master

          I guess you're bundling Hibernate Search as well with your app?

          • 2. Re: JBoss 7 CR1 and Hibernate Search
            Ove Ranheim Novice

            Yes, I'm bundling Hibernate Search in lib. Should it be left out?

             

            When I deployed doing no changes to the war deployment, J7 thrown CNF for dom4J and slf4j. So, I added them to my deployment and now it seems to be Hibernate Search that's cause my deployment issue. The error messages so far looks much more logical with JBoss 7. Thanks to JBoss 7 team and all involved for making this.

             

            Here's all dependencies:

             

             

            antlr-runtime-3.1.3.jar
            commons-beanutils-1.8.3.jar
            commons-codec-1.4.jar
            commons-collections-3.1.jar
            commons-digester-2.1.jar
            commons-fileupload-1.2.2-noportlet.jar
            commons-io-2.0.jar
            commons-lang-2.5.jar
            dom4j-1.6.1.jar
            drools-api-5.1.1.jar
            drools-compiler-5.1.1.jar
            drools-core-5.1.1.jar
            ecj-3.5.1.jar
            freemarker-2.3.16.jar
            guava-r06.jar
            hibernate-search-3.4.0.Final.jar
            hibernate-search-analyzers-3.3.0.Final.jar
            hibernate-validator-4.1.0.Final.jar
            httpclient-4.0.3.jar
            httpcore-4.1.jar
            jackson-core-asl-1.7.1.jar
            jackson-mapper-asl-1.7.1.jar
            joda-time-1.6.jar
            lombok-0.9.3.jar
            lucene-analyzers-3.0.3.jar
            lucene-core-3.0.3.jar
            lucene-snowball-3.0.3.jar
            musific-core-1.0-SNAPSHOT.jar
            musific-core-data-1.0-SNAPSHOT.jar
            mvel2-2.1.beta1.jar
            ocpsoft-pretty-time-1.0.7.jar
            oro-2.0.8.jar
            parts-asset-1.0-SNAPSHOT.jar
            parts-commons-1.0-SNAPSHOT.jar
            parts-contract-1.0-SNAPSHOT.jar
            parts-mail-1.0-SNAPSHOT.jar
            parts-messenger-1.0-SNAPSHOT.jar
            parts-netshop-1.0-SNAPSHOT.jar
            parts-performance-1.0-SNAPSHOT.jar
            parts-persistence-1.0-SNAPSHOT.jar
            parts-profile-1.0-SNAPSHOT.jar
            parts-search-1.0-SNAPSHOT.jar
            parts-security-1.0-SNAPSHOT.jar
            parts-sms-1.0-SNAPSHOT.jar
            picketlink-idm-api-1.5.0.Alpha02.jar
            picketlink-idm-common-1.5.0.Alpha02.jar
            picketlink-idm-core-1.5.0.Alpha02.jar
            picketlink-idm-spi-1.5.0.Alpha02.jar
            prettyfaces-jsf2-3.2.1.jar
            primefaces-2.2.1.jar
            seam-catch-3.0.0.Final.jar
            seam-config-xml-3.0.0.Final.jar
            seam-conversation-spi-3.0.0.CR1-fixed2.jar
            seam-faces-3.0.1.Final.jar
            seam-international-3.0.0.Final.jar
            seam-jms-3.0.0.Beta1.jar
            seam-mail-core-api-3.0.0-SNAPSHOT.jar
            seam-mail-core-impl-3.0.0-SNAPSHOT.jar
            seam-mail-freemarker-impl-3.0.0-SNAPSHOT.jar
            seam-mail-render-impl-3.0.0-SNAPSHOT.jar
            seam-mail-velocity-impl-3.0.0-SNAPSHOT.jar
            seam-persistence-3.0.0.Final.jar
            seam-remoting-3.0.0.Final.jar
            seam-render-1.0.0.Alpha3.jar
            seam-security-3.0.0.Final.jar
            seam-servlet-3.0.0.Final.jar
            seam-solder-3.0.0.Final.jar
            slf4j-api-1.5.10.jar
            slf4j-jdk14-1.5.10.jar
            slf4j-log4j12-1.5.10.jar
            subethasmtp-3.1.4.jar
            velocity-1.6.4.jar
            xml-apis-1.0.b2.jar
            
            
            • 3. Re: JBoss 7 CR1 and Hibernate Search
              jaikiran pai Master

              The org.hibernate.classic.Session class belongs to Hibernate 3.x. It looks like your application is using a Seam Persistence version which is dependent on Hibernate 3.x.

               

              JBoss AS7 by default ships with Hibernate 4.x version. That class isn't present in Hibernate 4.x. To use Hibernate 3.x within your application, you just have to package the Hibernate jars within the application (like you do with the other jars currently). So add the relevant Hibernate 3.x jars (like the hibernate-core) within the .war/WEB-INF/lib of your application.

               

              Let us know how it goes

              1 of 1 people found this helpful
              • 4. Re: JBoss 7 CR1 and Hibernate Search
                Ove Ranheim Novice

                Thanks Jaikiran! The Hibernate Search errors went away But now there are some issues with missing ValidationFactory. I tried to opt in hibernate validator, and javax validation api. The same error occurs, with or without the validation apis. The exception below doesn't provide me with many leads to what may be wrong. Any ideas?

                 

                 

                14:19:44,689 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."stage-web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."stage-web.war".INSTALL: Failed to process phase INSTALL of deployment "stage-web.war"
                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                    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:680) [:1.6.0_26]
                Caused by: java.lang.IllegalArgumentException: name is null
                    at org.jboss.msc.service.ServiceTargetImpl.createServiceBuilder(ServiceTargetImpl.java:59)
                    at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.createServiceBuilder(ServiceControllerImpl.java:2198)
                    at org.jboss.msc.service.ServiceTargetImpl.addService(ServiceTargetImpl.java:69)
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:302)
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:164)
                    at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:94)
                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
                    ... 5 more
                
                14:19:44,945 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "stage-web.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"stage-web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"stage-web.war\".INSTALL: Failed to process phase INSTALL of deployment \"stage-web.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.stage-web.stage-web.stage-web.Validator","jboss.naming.context.java.comp.stage-web.stage-web.stage-web.ValidatorFactory"]}
                14:19:45,031 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) Stopped deployment stage-web.war in 86ms
                14:19:45,035 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"stage-web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"stage-web.war\".INSTALL: Failed to process phase INSTALL of deployment \"stage-web.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.stage-web.stage-web.stage-web.Validator","jboss.naming.context.java.comp.stage-web.stage-web.stage-web.ValidatorFactory"]}}}
                
                
                • 5. Re: JBoss 7 CR1 and Hibernate Search
                  Ove Ranheim Novice

                  The validation error had a different root cause. It turns out some of my Solder extensions had a persistence.xml in them, which J6 never complained about, and in which should not be there. So after a little clean up, the validation error went away.

                   

                  I am back to my logger dependency issues.

                   

                  I have tired pretty much every combaination of slf4j and log4j and added Dependencies to MANIFEST.MF as outlined in: https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7#HowdoImigratemyapplicationfromAS5orAS6toAS7-JBossLogging

                   

                  The good thing is that it *almost* deploys A long listing is appearing in console of JNDIs and CDI Beans being registered.

                   

                  It is the logger that seems prone to error now. I'm not able to understand what logger jars should be included. Which versions are used by J7 and should standalone configartion be tweaked (standalone-preview.xml)?

                   

                  • WEB-INF/lib/log4j-1.2.14.jar
                  • WEB-INF/lib/slf4j-api-1.5.10.jar
                  • WEB-INF/lib/slf4j-log4j12-1.5.10.jar

                   

                  Here's the exception listing:

                   

                   

                  15:42:06,685 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-13) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:90) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:83) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:192) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                      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:680) [:1.6.0_26]
                  Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Priority
                      at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_26]
                      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_26]
                      at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_26]
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:78) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      ... 11 more
                  Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.jboss.logging:main" from local module loader @2f3adc56 (roots: /opt/jboss7/modules)]
                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
                      ... 15 more
                  
                  15:42:06,742 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-13) Preventing class org.jboss.seam.solder.resourceLoader.ResourceProvider from being installed as bean due to @Veto annotation
                  15:42:06,773 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-13) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:90) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:83) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:192) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                      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:680) [:1.6.0_26]
                  Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/Logger;
                      at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_26]
                      at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_26]
                      at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_26]
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:81) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      ... 11 more
                  Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger from [Module "org.jboss.logging:main" from local module loader @2f3adc56 (roots: /opt/jboss7/modules)]
                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
                      ... 15 more
                  
                  15:42:06,792 DEBUG [org.jboss.weld.Bootstrap] (MSC service thread 1-13) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: Lorg/slf4j/spi/LocationAwareLogger;
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:90) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:83) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:133) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:192) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
                      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
                      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
                      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:680) [:1.6.0_26]
                  Caused by: java.lang.NoClassDefFoundError: Lorg/slf4j/spi/LocationAwareLogger;
                      at java.lang.Class.getDeclaredFields0(Native Method) [:1.6.0_26]
                      at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [:1.6.0_26]
                      at java.lang.Class.getDeclaredFields(Class.java:1743) [:1.6.0_26]
                      at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:81) [jboss-as-weld-7.0.0.CR1.jar:7.0.0.CR1]
                      ... 11 more
                  Caused by: java.lang.ClassNotFoundException: org.slf4j.spi.LocationAwareLogger from [Module "org.jboss.logging:main" from local module loader @2f3adc56 (roots: /opt/jboss7/modules)]
                      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
                      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
                      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
                      ... 15 more
                  
                  • 6. Re: JBoss 7 CR1 and Hibernate Search
                    Michael Bischof Newbie

                    Hi, I have also the problem with the ValidatoionFactory..

                    Which extensions did you remove?

                    • 7. Re: JBoss 7 CR1 and Hibernate Search
                      Ove Ranheim Novice

                      Hi Michael,

                       

                      Try out hibernate-search version 4.0.0-20110715.125417-5 (SNAPSHOT), which should be compliant with Hibernate 4 beta used in AS7.

                       

                      http://lists.jboss.org/pipermail/seam-dev/2011-July/003971.html

                       

                      http://in.relation.to/Bloggers/JBossAS7AndHibernateWhatsUp

                       

                      Let me know how it works for you.

                      • 8. Re: JBoss 7 CR1 and Hibernate Search
                        Michael Bischof Newbie

                        I'm not using hibernate-search at the moment, so this is not the problem I think.

                         

                        I have a maven2 project currently using AS6 and these hibernate files:

                        hibernate-core 3.6.0.Final.jar

                        hibernate-annotations-3.3.1.GA.jar

                        hibernate-common-annotations.3.2.0.Final.jar

                        hibernate-entitymanager-3.6.0.jar

                        hibernate-jpa-2.0-api-1.0.0.Final.jar

                        Now I want to migrate it to AS7.

                         

                        I get following error deploying my project on AS7 (copied from failed file) :

                         

                        {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"pnac.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"pnac.war\".INSTALL: Failed to process phase INSTALL of deployment \"pnac.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.pnac.pnac.pnac.Validator missing [ jboss.naming.context.java.module.pnac.pnac ]","jboss.naming.context.java.comp.pnac.pnac.pnac.ValidatorFactory missing [ jboss.naming.context.java.module.pnac.pnac ]"]}}}

                         

                        Do you have an idea?

                        • 9. Re: JBoss 7 CR1 and Hibernate Search
                          jaikiran pai Master

                          Are you using AS7.0 Final? What does your code look like? And how are you packaging your application?