I have an ear file which contains a .war
file and a number of .jar
files including Spring WS
and Hibernate 3
. This app is to be ported from another app server to Wildfly.
So far, this has been a royal pain due to all the modules that need to be created and their almost infinite dependencies.
I have created a jboss-deployment-structure.xml
file in which I've declared the war
dependencies:
<sub-deployment name="xxx.war">
<dependencies>
<module name="org.hibernate" slot="3"/>
<module name="org.spring.jdbc" />
<module name="org.spring.beans" />
<module name="org.spring.core" />
<module name="org.slf4j" />
</dependencies>
</sub-deployment>
When attempting to deploy the app, I get the following error:
Caused by: java.lang.ClassNotFoundException: org.hibernate.event.PreUpdateEventListener from [Module "deployment.xxxEAR.ear.xxp_jar.jar:main" from Service Module Loader]
The problem is, how do I update deployment.xxxEAR.ear.xxp_jar.jar to include the proper module dependencies i.e. <module name="org.hibernate" slot="3"/>
?