Code:
<property name="jboss.as.jpa.providerModule" value="org.hibernate:5.2"/>
For normal WildFly, I have to add this to persistence.xml to make it working with hibernate 5.2 module.
But for WildFly Swam, there's no org.hibernate:5.2 module.
Then it will report error. How can I make a project to work with normal WildFly and WildFly Swarm together.
Quote:
2017-05-23 17:18:49,766 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.module.service."deployment.blueeyes-war-1.0-SNAPSHOT.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.blueeyes-war-1.0-SNAPSHOT.war".main: WFLYSRV0179: Failed to load module: deployment.blueeyes-war-1.0-SNAPSHOT.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:5.2
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