0 Replies Latest reply on Nov 28, 2018 7:54 AM by alfredo pacino

    how to add a module in wildfly 14

    alfredo pacino Newbie

      Hi, I'm new to the whole Java ee environment.

      I'm trying to make an Hibernate OGM sample project run on Wildfly 14 (I'm using Eclipse).

       

      I get this error:

       

      11:57:12,788 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.module.service."deployment.nosql-with-hibernate-ogm-101-part-3-1.0-SNAPSHOT.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.nosql-with-hibernate-ogm-101-part-3-1.0-SNAPSHOT.war".main: WFLYSRV0179: Failed to load module: deployment.nosql-with-hibernate-ogm-101-part-3-1.0-SNAPSHOT.war
      at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:89)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
      at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.search.orm:5.10.4.Final
      at org.jboss.modules.Module.addPaths(Module.java:1266)
      at org.jboss.modules.Module.link(Module.java:1622)
      at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
      at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296)
      at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:280)
      at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:66)
      ... 8 more
      
      
      11:57:12,798 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."hibernateogm-mongo.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."hibernateogm-mongo.war".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment "hibernateogm-mongo.war"
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
      at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0027: Persistence provider module load error org.hibernate.ogm (class org.hibernate.ogm.jpa.HibernateOgmPersistence)
      at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:991)
      at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:266)
      at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:206)
      at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:134)
      at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
      ... 8 more
      Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.ogm
      at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:294)
      at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:280)
      at org.jboss.as.jpa.persistenceprovider.PersistenceProviderLoader.loadProviderModuleByName(PersistenceProviderLoader.java:65)
      at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:987)
      ... 13 more

       

       

      How can I add this org.hibernate.ogm module in Wildfly?