1 2 Previous Next 18 Replies Latest reply on Feb 6, 2015 7:08 AM by sannegrinovero

    Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found

    pawel.predki

      I'm trying to include the Hibernate Search module to my EAR project but when I start its deployment I get the following error message:

       

      ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) JBAS014613: Operation ("redeploy") failed - address: ([("deployment" => "myapp-rtc-ear.ear")]) - failure description: {
      
          "JBAS014671: Failed services" => {"jboss.persistenceunit.\"myapp-rtc-ear.ear/myapp-rtc-ejb.jar#myappdb\".__FIRST_PHASE__" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"myapp-rtc-ear.ear/myapp-rtc-ejb.jar#myappdb\".__FIRST_PHASE__: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
      
          Caused by: java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found"},
      
          "JBAS014771: Services with missing/unavailable dependencies" => [
      
              "jboss.deployment.subunit.\"myapp-rtc-ear.ear\".\"myapp-rtc-properties.jar\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"myapp-rtc-ear.ear\".\"myapp-rtc-properties.jar\".beanmanager]",
      
              "jboss.deployment.unit.\"myapp-rtc-ear.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"myapp-rtc-ear.ear\".beanmanager]",
      
              "jboss.deployment.subunit.\"myapp-rtc-ear.ear\".\"myapp-rtc-web.war\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"myapp-rtc-ear.ear\".\"myapp-rtc-web.war\".beanmanager]"
      
          ]
      
      }
      

      I followed the instructions specified in the hibernate search reference (http://docs.jboss.org/hibernate/search/4.5/reference/en-US/html_single/#d0e141 and http://docs.jboss.org/hibernate/search/4.5/reference/en-US/html_single/#search-configuration-deploy-on-wildfly). I included the hibernate search dependency in my pom.xml file of the EJB module:

       

              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-search-orm</artifactId>
                  <scope>provided</scope>
              </dependency>
      
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-search</artifactId>
                  <scope>provided</scope>
              </dependency>
      
              <dependency>
                  <groupId>org.hibernate</groupId>
                  <artifactId>hibernate-entitymanager</artifactId>
                  <scope>provided</scope>
              </dependency>
      

      In the main pom.xml file, I'm including

       

                  <dependency>
                      <groupId>org.wildfly.bom</groupId>
                      <artifactId>jboss-javaee-7.0-with-hibernate</artifactId>
                      <version>${version.jboss.bom}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
      

      and I also specify the version numbers as properties:

       

        <properties>
              <version.org.hibernate>4.3.5.Final</version.org.hibernate>
              <version.org.hibernate.search>4.5.1.Final</version.org.hibernate.search>
          </properties>
      

      although I'm not really sure this makes sense.

       

      I also added the jboss-depolyment-structure.xml file to the META-INF folder in the EAR module:

       

        <jboss-deployment-structure>
          <deployment>
            <dependencies>
              <module name="org.hibernate.search.orm" services="export" />
            </dependencies>
          </deployment>
        </jboss-deployment-structure>
      

      The error I specify doesn't appear if the jboss-depolyment-structure.xml is missing but I get NoClassDefFoundExceptions whenever I try to access any of the hibernate search classes.

       

      What could be the problem here? What am I missing? Is it better not to rely on the built-in hibernate classes and simply add them using maven, as I would other external libraries?

       

      Any help is greatly appreciated!

        • 1. Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
          gabor.miklos

          Hi! We are experiencing the exact same issue. Any help would be greatly appreciated:)

           

          Edit: Using the first alternative mentioned in Hibernate Search (adding "Dependencies: org.hibernate.search.orm services" to the manifest of the EJB jar archive) seems to work. The exception reported by the original poster only occurs when trying to add the dependency through jboss-deployment-structure.xml.

          • 3. Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
            pawel.predki

            Unfortunately, he didn't seem to notice and I'm still stuck with this.

            • 4. Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
              pjvg1990

              I am having a similar issue.

               

              Sadly, Miklos Gabor's suggestion did not work for me.. After adding "Dependencies: org.hibernate.search.orm services" to my MANIFEST.MF file, I get the following error:

               

              16:29:32,662 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."pgb.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."pgb.ear".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment "pgb.ear"
                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
                at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
              Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018741: Failed to get manifest for deployment "/C:/Program Files/wildfly-8.1.0.Final/standalone/deployments/pgb.ear"
                at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.getManifest(ManifestAttachmentProcessor.java:78) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
                at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.deploy(ManifestAttachmentProcessor.java:65) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
                ... 5 more
              Caused by: java.io.IOException: invalid manifest format
                at java.util.jar.Manifest.read(Manifest.java:225) [rt.jar:1.8.0_11]
                at java.util.jar.Manifest.<init>(Manifest.java:69) [rt.jar:1.8.0_11]
                at org.jboss.vfs.VFSUtils.readManifest(VFSUtils.java:224) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
                at org.jboss.vfs.VFSUtils.getManifest(VFSUtils.java:208) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]
                at org.jboss.as.server.deployment.module.ManifestAttachmentProcessor.getManifest(ManifestAttachmentProcessor.java:76) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
                ... 7 more
              
              16:29:32,664 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"pgb.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"pgb.ear\".STRUCTURE: JBAS018733: Failed to process phase STRUCTURE of deployment \"pgb.ear\"
                  Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018741: Failed to get manifest for deployment \"/C:/Program Files/wildfly-8.1.0.Final/standalone/deployments/pgb.ear\"
                  Caused by: java.io.IOException: invalid manifest format"}}
              

               

              Did anyone find another solution?

              • 5. Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                pawel.predki

                We upgraded to Wildfly 8.2.0.Final and the problem is still the same.

                 

                When I load the manifest file, it is simply ignored and I get the following error when trying to use the search classes:

                 

                Caused by: java.lang.NoClassDefFoundError: org/hibernate/search/jpa/Search

                        at com.tellyo.rtc.dao.UserDAO.rebuildIndex(UserDAO.java:1086) [tellyo-rtc-ejb.jar:]

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_65]

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_65]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_65]

                        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_65]

                        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

                        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

                        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

                        at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                        at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

                        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

                        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:251) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]

                        ... 166 more

                Caused by: java.lang.ClassNotFoundException: org.hibernate.search.jpa.Search from [Module "deployment.tellyo-rtc-ear.ear.tellyo-rtc-ejb.jar:main" from Service Module Loader]

                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

                        ... 202 more

                 

                I put the MANIFEST.MF file into ear/src/main/application/META-INF:

                 

                Dependencies: org.hibernate.search.orm services

                 

                When I put jboss-deployment-structure.xml there I get the the Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found error. I have no idea how to interpret this message since all the classes are in the saerch.orm.jar file...

                 

                sannegrinovero - any help is really appreciated. We managed to avoid the search feature in our system for a few months but we really need it soon

                • 6. Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                  sannegrinovero

                  I'm so sorry, I didn't notice the previous posts.

                   

                  We have plenty of integration tests for this, but I've never seen this error. We test for both the case in which you include the Hibernate Search jars into your deployment, and for the case in which you use the modules included in WildFly.

                  Both approaches should work, but I'd recommend using the one in which you don't add any dependency in your deployment.

                   

                  Could you verify that you're not adding any jar from Hibernate in your deployment?

                  • 7. Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                    pawel.predki

                    Thanks for replying. Below is the list of all the libs that are included from my pom file. There are no hibernate* jars in there.

                     

                    02/04/2015  19:36        69,409 activation.jar
                    02/04/2015  19:36         4,467 aopalliance.jar
                    02/04/2015  19:36         7,296 arquillian-config-api.jar
                    02/04/2015  19:36        41,358 arquillian-config-impl-base.jar
                    02/04/2015  19:36        52,368 arquillian-container-spi.jar
                    02/04/2015  19:36         9,536 arquillian-core-api.jar
                    02/04/2015  19:36        27,249 arquillian-core-spi.jar
                    02/04/2015  19:36       629,662 bcpkix-jdk15on.jar
                    02/04/2015  19:36     2,552,449 bcprov-ext-jdk15on.jar
                    02/04/2015  19:36       232,771 commons-codec.jar
                    02/04/2015  19:36       185,140 commons-io.jar
                    02/04/2015  19:36       412,739 commons-lang3.jar
                    02/04/2015  19:36        62,050 commons-logging.jar
                    02/04/2015  19:36        78,451 fest-assert.jar
                    02/04/2015  19:36        31,034 fest-util.jar
                    02/04/2015  19:36        36,241 geoip2.jar
                    02/04/2015  19:36       165,975 google-api-client.jar
                    02/04/2015  19:36        15,975 google-api-services-oauth2.jar
                    02/04/2015  19:36       217,285 google-api-services-youtube.jar
                    02/04/2015  19:36         6,720 google-http-client-jackson2.jar
                    02/04/2015  19:36       271,400 google-http-client.jar
                    02/04/2015  19:36        61,052 google-oauth-client.jar
                    02/04/2015  19:36       190,432 gson.jar
                    02/04/2015  19:36     2,172,168 guava.jar
                    02/04/2015  19:36        36,998 guice-assistedinject.jar
                    02/04/2015  19:36       710,492 guice.jar
                    02/04/2015  19:36       589,512 httpclient.jar
                    02/04/2015  19:36       282,269 httpcore.jar
                    02/04/2015  19:36        38,605 jackson-annotations.jar
                    02/04/2015  19:36       225,305 jackson-core.jar
                    02/04/2015  19:36     1,073,743 jackson-databind.jar
                    02/04/2015  19:36       125,549 jasypt.jar
                    02/04/2015  19:36         2,497 javax.inject.jar
                    02/04/2015  19:36        41,495 jboss-annotations-ejb3.jar
                    02/04/2015  19:36       168,902 jclouds-blobstore.jar
                    02/04/2015  19:36        10,688 jclouds-bouncycastle.jar
                    02/04/2015  19:36       504,725 jclouds-compute.jar
                    02/04/2015  19:36       785,478 jclouds-core.jar
                    02/04/2015  19:36        24,158 jclouds-loadbalancer.jar
                    02/04/2015  19:36        11,816 jclouds-okhttp.jar
                    02/04/2015  19:36       172,411 jclouds-scriptbuilder.jar
                    02/04/2015  19:36        11,632 jclouds-slf4j.jar
                    02/04/2015  19:36        37,594 jclouds-sshj.jar
                    02/04/2015  19:36       299,658 jdom2.jar
                    02/04/2015  19:36     1,008,730 jna.jar
                    02/04/2015  19:36        12,088 jsch.agentproxy.connector-factory.jar
                    02/04/2015  19:36         9,593 jsch.agentproxy.core.jar
                    02/04/2015  19:36         7,845 jsch.agentproxy.pageant.jar
                    02/04/2015  19:36         4,171 jsch.agentproxy.sshagent.jar
                    02/04/2015  19:36         3,961 jsch.agentproxy.sshj.jar
                    02/04/2015  19:36         6,598 jsch.agentproxy.usocket-jna.jar
                    02/04/2015  19:36         5,328 jsch.agentproxy.usocket-nc.jar
                    02/04/2015  19:36         5,848 jsr250-api.jar
                    02/04/2015  19:36        33,015 jsr305.jar
                    02/04/2015  19:36        46,367 jsr311-api.jar
                    02/04/2015  19:36       388,826 mail.jar
                    02/04/2015  19:36        19,066 maxmind-db.jar
                    02/04/2015  19:36        81,466 okhttp-protocols.jar
                    02/04/2015  19:36       159,811 okhttp.jar
                    02/04/2015  19:36        56,781 openstack-cinder.jar
                    02/04/2015  19:36       165,941 openstack-keystone.jar
                    02/04/2015  19:36        77,404 openstack-marconi.jar
                    02/04/2015  19:36       387,032 openstack-nova.jar
                    02/04/2015  19:36       130,841 openstack-swift.jar
                    02/04/2015  19:36        49,429 openstack-trove.jar
                    02/04/2015  19:36       916,845 picketbox.jar
                    02/04/2015  19:36       913,436 platform.jar
                    02/04/2015  19:38             0 print.txt
                    02/04/2015  19:36        13,685 rackspace-autoscale-us.jar
                    02/04/2015  19:36        81,338 rackspace-autoscale.jar
                    02/04/2015  19:36        13,217 rackspace-cloudblockstorage-uk.jar
                    02/04/2015  19:36        13,095 rackspace-clouddatabases-uk.jar
                    02/04/2015  19:36        12,154 rackspace-clouddns-uk.jar
                    02/04/2015  19:36       100,187 rackspace-clouddns.jar
                    02/04/2015  19:36        14,019 rackspace-cloudfiles-uk.jar
                    02/04/2015  19:36        36,572 rackspace-cloudfiles.jar
                    02/04/2015  19:36        24,133 rackspace-cloudidentity.jar
                    02/04/2015  19:36        12,560 rackspace-cloudloadbalancers-uk.jar
                    02/04/2015  19:36       154,820 rackspace-cloudloadbalancers.jar
                    02/04/2015  19:36        13,280 rackspace-cloudqueues-uk.jar
                    02/04/2015  19:36        14,208 rackspace-cloudservers-uk.jar
                    02/04/2015  19:36       168,631 restfb.jar
                    02/04/2015  19:36        48,178 rocoto.jar
                    02/04/2015  19:36        65,617 shrinkwrap-api.jar
                    02/04/2015  19:36        16,178 shrinkwrap-descriptors-api-base.jar
                    02/04/2015  19:36        38,129 shrinkwrap-descriptors-spi.jar
                    02/04/2015  19:36        29,257 slf4j-api.jar
                    02/04/2015  19:36       349,526 sshj.jar
                    02/04/2015  19:36         1,766 tellyo-stm-core.jar
                    02/04/2015  19:36       280,412 twitter4j-core.jar
                    • 8. Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                      sannegrinovero

                      Thanks!

                      I'm not seeing anything which would definitely trigger this, still I would suggest to try reducing that significantly.

                      For example you seem to have lots of testing dependencies which you probably don't need (Arquillian, Shrinkwrap, fest-assert & co). I would also highly recommend to remove standard APIs which are already provided by WildFly, such as the various JSR jars, mail.jar, javax.inject.

                      The file "jboss-annotations-ejb3.jar" might actually conflict with some Hibernate annotations.

                       

                      Some other dependencies are also available already in WildFly, for example you could use the jackson libraries from the module in WildFly (you'd have to explicitly enable the module, like you do with Search).

                       

                      Specifically on the Hibernate Search issue, we realised all our tests were deployed in a WAR file, while you are using an EAR. I'm pretty sure the EAR would work like the WAR file, but it's possible the metadata to enable the service should be declared in a different way; Davide from the Hibernate team is now creating a test for EAR integration so we should be able to give you specific instructions for an EAR deployment.

                      • 9. Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                        pawel.predki

                        Hey,

                         

                        Thanks for the overall tips. I will look into those dependencies. We haven't paid much attention to them and they started piling up.

                         

                        Going back to the original error, I may have found the solution. I got the Lucene indexing to work and the Exception doesn't appear anymore. All I had to do is add <sub-deployment> elements into the jboss-deployment-structure.xml file:

                         

                        <?xml version='1.0' encoding='UTF-8'?>
                        <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
                            <deployment>
                                <dependencies>
                                    <module name="org.hibernate.search.orm" services="export" />
                                </dependencies>
                            </deployment>
                        
                            <sub-deployment name="project-rtc-ejb.jar">
                                <dependencies>
                                    <module name="org.hibernate.search.orm" services="export" />
                                </dependencies>
                            </sub-deployment>
                        
                            <sub-deployment name="project-rtc-properties.jar">
                                <dependencies>
                                    <module name="org.hibernate.search.orm" services="export" />
                                </dependencies>
                            </sub-deployment>
                        
                            <sub-deployment name="project-rtc-web.war">
                                <dependencies>
                                    <module name="org.hibernate.search.orm" services="export" />
                                </dependencies>
                            </sub-deployment>
                        </jboss-deployment-structure>
                        

                         

                        I believe this is only required in the module that really use those dependencies, i.e. the ejb, but this worked for sure. Adding it only to the top <deployment> tag is not enough.

                        • 10. Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                          sannegrinovero

                          Hi Pawel, that's great to hear, thanks for the hint! We'll add a new integration test and mention this on the Hibernate Search documentation. This thread was in the right place, as it turns out it required some WildFly expertise. But in case you have more questions specifically on Hibernate Search, make sure you use this other forum: https://forum.hibernate.org/viewforum.php?f=9

                          • 11. Re: Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                            pawel.predki

                            I will head over there when I have specific Hibernate Search questions, thanks. However, sometimes it's difficult to know if it's a matter of Wildfly or HS For example, another problem I discovered today when I tried moving forward with Hibernate Search integration when implementing a simple Aalyzer+Filter.

                             

                            org.hibernate.search.SearchException: Use of @AnalyzerDef while Solr is not present in the classpath. Add apache-solr-analyzer.jar
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_65]
                                    at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
                                    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
                                    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
                            Caused by: org.hibernate.search.SearchException: Use of @AnalyzerDef while Solr is not present in the classpath. Add apache-solr-analyzer.jar
                                    at org.hibernate.search.impl.ConfigContext.buildAnalyzer(ConfigContext.java:226) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.impl.ConfigContext.initLazyAnalyzers(ConfigContext.java:204) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:389) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74) [hibernate-search-orm-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:588) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    ... 8 more
                            
                            

                             

                            I was suspecting that all the dependencies are covered in the Wildfly modules but this suggests this is not the case. I looked into the Hibernate Search package and found some optional libraries, namely:

                             

                            solr-analysis-extras-3.6.2.jar
                            solr-core-3.6.2.jar
                            solr-solrj-3.6.2.jar
                            
                            

                             

                            I created a new Wildfly module for them and I include it as Lucene's dependency:

                             

                            <module xmlns="urn:jboss:module:1.3" name="org.apache.lucene">
                                <properties>
                                    <property name="jboss.api" value="private"/>
                                </properties>
                            
                                <resources>
                                    <resource-root path="lucene-analyzers-3.6.2.jar"/>
                                    <resource-root path="lucene-core-3.6.2.jar"/>
                                    <resource-root path="lucene-facet-3.6.2.jar"/>
                                    <resource-root path="lucene-memory-3.6.2.jar"/>
                                    <resource-root path="lucene-grouping-3.6.2.jar"/>
                                    <resource-root path="lucene-highlighter-3.6.2.jar"/>
                                    <resource-root path="lucene-kuromoji-3.6.2.jar"/>
                                    <resource-root path="lucene-misc-3.6.2.jar"/>
                                    <resource-root path="lucene-phonetic-3.6.2.jar"/>
                                    <resource-root path="lucene-smartcn-3.6.2.jar"/>
                                    <resource-root path="lucene-spatial-3.6.2.jar"/>
                                    <resource-root path="lucene-spellchecker-3.6.2.jar"/>
                                    <resource-root path="lucene-stempel-3.6.2.jar"/>
                                </resources>
                            
                                <dependencies>
                                    <module name="javax.api"/>
                                    <module name="org.apache.solr"/>
                                </dependencies>
                            </module>
                            
                            

                             

                            Which didn't solve the issue.

                             

                            I found that the apache-solr-analyzer.jar is part of the following library:

                             

                            <dependency>
                            <groupId>org.hibernate.apache.lucene.solr</groupId>
                            <artifactId>apache-solr-analyzer</artifactId>
                            <version>1.2.0</version>
                            </dependency>
                            
                            

                             

                            But adding that dependency into my pom.xml file results in another error:

                             

                            java.lang.NoClassDefFoundError: org/apache/solr/common/ResourceLoader
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_65]
                                    at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
                                    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
                                    at org.jboss.threads.JBossThread.run(JBossThread.java:122)
                            Caused by: java.lang.NoClassDefFoundError: org/apache/solr/common/ResourceLoader
                                    at org.hibernate.search.impl.ConfigContext.buildAnalyzer(ConfigContext.java:236) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.impl.ConfigContext.initLazyAnalyzers(ConfigContext.java:204) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:389) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:219) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:143) [hibernate-search-engine-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:74) [hibernate-search-orm-4.5.1.Final.jar:4.5.1.Final]
                                    at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:588) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                    at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                    at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]
                                    at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                    ... 8 more
                            Caused by: java.lang.ClassNotFoundException: org.apache.solr.common.ResourceLoader from [Module "org.hibernate.search.engine:main" from local module loader @4c025303 (finder: local module finder @2c9810f1 (roots: /opt/wildfly/modules,/opt/wildfly/modules/system/layers/base/.overlays/base-8.2.0.Final-patch,/opt/wildfly/modules/system/layers/base))]
                                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
                                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
                                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
                                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
                                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
                                    ... 23 more
                            
                            

                             

                            I understand this is not completely a propos the original topic but I feel it's a continuation of the same issue, i.e. integrating Hibernate Search into Wildfly. As always, any help is very appreciated

                             

                            EDIT: We're using Hibernate Search 4.5.1.Final, which is the Wildfly module version.

                            • 12. Re: Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                              sannegrinovero

                              Hi Pawel, there is a huge amount of custom analyzers available in the Lucene community, we couldn't possibly add them all. So the most common ones are included, but all the extra Solr jars you'll need to "bring your own".


                              Regarding classloading and modules: correct, adding an additional module with more analyzers is a good idea. But ! Keep in mind the modular system is not *transitive*: so by adding as a dependency of module org.apache.lucene, the classes are not available neither to your application nor to the hibernate search engine module.

                              You probably want to edit the hibernate search module to add the dependency there as well, and enable the "export" flag on them so that your application can "see" the classes as well, when it imports the hibernate search module.


                              Adding the extension points to your deployment directly should just work, without needing to change any module's XML descriptor.


                              An alternative is you download the modules for Hibernate Search 5: we made sure that you can download a new version of Hibernate Search and "layer" it on top of any version of WildFly without having conflicts.


                              I'd highly recommend using Search 5 now since you're starting fresh, and also because it got rid of the dependency to Apache Solr: it's no longer needed to define custom analyzers, and all analyzer implementations have been moved to Apache Lucene jars. Final alternative is to try out the latest WildFly 9, which bundles Hibernate Search 5 out of the box.


                              Here is were we describe how to include Hibernate Search 5 in WildFly 8.x : http://docs.jboss.org/hibernate/search/5.0/reference/en-US/html_single/#_update_and_activate_latest_hibernate_search_version_in_wildfly

                              Essentially you just have to download the zip file, unzip it in your modules directory, and then change the jboss-deployment-structure.xml file to use the specific version, as in the examples in the link above.

                              • 13. Re: Re: Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                                pawel.predki

                                Hey Sanne,

                                 

                                Due to all the issues I read up on the Wildfly modules, dependencies, etc. and I though I configured it well but apparently I missed something. Initially I was thinking about going over to Hibernate Search 5 but the bom I have included in the pom.xml file

                                 

                                <dependency>
                                  <groupId>org.wildfly.bom</groupId>
                                  <artifactId>jboss-javaee-7.0-with-hibernate</artifactId>
                                  <version>${version.jboss.bom}</version>
                                  <type>pom</type>
                                  <scope>import</scope>
                                </dependency>
                                

                                 

                                Loads 4.x versions of Hibernate Search so I wanted to comply with those versions.

                                 

                                The solution with adding extra modules for HS 5 is the best one. We will not move to Wildfly 9 for sure, but upgrading the modules is something we can do.

                                 

                                Unfortunately, things still aren't perfect

                                 

                                java.lang.TypeNotPresentException: Type org.apache.solr.analysis.StandardTokenizerFactory not present
                                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_65]
                                        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
                                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_65]
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_65]
                                        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_65]
                                        at org.jboss.threads.JBossThread.run(JBossThread.java:122)
                                Caused by: java.lang.TypeNotPresentException: Type org.apache.solr.analysis.StandardTokenizerFactory not present
                                        at sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:46) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:75) [rt.jar:1.7.0_65]
                                        at com.sun.proxy.$Proxy208.factory(Unknown Source)
                                        at org.hibernate.search.engine.impl.SolrAnalyzerBuilder.buildAnalyzer(SolrAnalyzerBuilder.java:56) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.engine.impl.ConfigContext.buildAnalyzer(ConfigContext.java:215) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.engine.impl.ConfigContext.initLazyAnalyzers(ConfigContext.java:193) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:402) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:204) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:122) [hibernate-search-engine-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver.sessionFactoryCreated(HibernateSearchSessionFactoryObserver.java:66) [hibernate-search-orm-5.0.1.Final.jar:5.0.1.Final]
                                        at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:52) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:588) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:852) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:845) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:398) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:844) [hibernate-entitymanager-4.3.7.Final.jar:4.3.7.Final]
                                        at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]
                                        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.2.0.Final.jar:8.2.0.Final]
                                        ... 8 more
                                Caused by: java.lang.ClassNotFoundException: org.apache.solr.analysis.StandardTokenizerFactory from [Module "deployment.tellyo-rtc-ear.ear.tellyo-rtc-ejb.jar:main" from Service Module Loader]
                                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
                                        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
                                        at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_65]
                                        at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_65]
                                        at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114) [rt.jar:1.7.0_65]
                                        at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) [rt.jar:1.7.0_65]
                                        at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:390) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:371) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:300) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:303) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88) [rt.jar:1.7.0_65]
                                        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70) [rt.jar:1.7.0_65]
                                        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3217) [rt.jar:1.7.0_65]
                                        at java.lang.Class.getAnnotation(Class.java:3176) [rt.jar:1.7.0_65]
                                        at java.lang.Class.isAnnotationPresent(Class.java:3189) [rt.jar:1.7.0_65]
                                        at org.hibernate.annotations.common.reflection.java.JavaAnnotationReader.isAnnotationPresent(JavaAnnotationReader.java:50)
                                        at org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.isAnnotationPresent(JavaXAnnotatedElement.java:60)
                                        at org.hibernate.cfg.Configuration$MetadataSourceQueue.syncAnnotatedClasses(Configuration.java:3780) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1411) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1846) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]
                                        ... 14 more
                                

                                 

                                The good news is that HS 5.0.1 is being used, according to what I put in the jboss-deployment-structure-xml. The bad news is the error you can see. This is exactly the same class that I got stuck at when I was messing around with the modules with version 4.x. Do you have any idea why it's still looking at the solr package instead of the lucene classes? I found the class in lucene-analyzers-common-4.10.3.jar\org\apache\lucene\analysis\standard\ but that's not the package that is being asked for.

                                 

                                You've been very helpful so far, thank you so much. I hope we'll be able to get to the end of this matter soon

                                • 14. Re: Re: Re: Re: Re: Wildfly 8.1.0.Final with Hibernate Search - Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator not found
                                  sannegrinovero

                                  Hi, Hibernate Search v. 5 is a new major version, and therefore some APIs have changed. For one, the solr classes are gone: you don't need them anymore. You shouldn't depend on a class named "org.apache.solr.analysis.StandardTokenizerFactory" Please see the migration guide for all details: http://hibernate.org/search/documentation/migrate/5.0/ And make sure you update your application as well before compiling it! From the exception it looks like you simply changed the module but didnt' rebuild.

                                  1 2 Previous Next