4 Replies Latest reply on Feb 14, 2017 10:53 AM by fpezzati

    Deploy a war with hibernate-ogm

    fpezzati Newbie

      Hello,

      I got a small sandbox where I am studying some stuff I like, two of these are Wildfly and hibernate-ogm. I build up a .war that ship all the jars my dummy app needs, but when I deploy it on my Wildfly 10 I got this back:

       

      jboss.msc.service.StartException in service jboss.module.service."deployment.YoOffer.war".main: WFLYSRV0179: Failed to load module: deployment.YoOffer.war:main

              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)

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

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

              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

              at java.lang.Thread.run(Unknown Source)

      Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.ogm:main

              at org.jboss.modules.Module.addPaths(Module.java:1093)

              at org.jboss.modules.Module.link(Module.java:1449)

              at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477)

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)

              at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)

              ... 5 more

       

      Do I have to add hibernate-ogm modules to Wildfly if .war already had them in WEB-INF/lib? Is there a way to obtain a "self contained" .war with hibernate-ogm?