-
1. Re: module reference in jboss-deployment-structure.xml not working
simkam Jan 31, 2019 4:31 AM (in response to tisaksen)Hi,
your j-d-s.xml looks correct, you can try to recent schema version 1.3.
I'm confused from
"""
Dependencies: org.javassist import
"""
import isn't valid parameter, valid parameters are export, optional, services, annotations, meta-inf. Check Developer Guide. If you try to import services, you should use <module name="org.javassist" services="import"/> in j-d-s.xml
-
2. Re: module reference in jboss-deployment-structure.xml not working
tisaksen Jan 31, 2019 3:27 PM (in response to simkam)Hi Martin,
I don't really know where I got the "import" part from in the Manifest but I removed it and it's working fine. However, when I remove the Dependencies listing in the manifest and put the updated j-d-s.xml in either one of WEB-INF in the WAR file or META-INF of the EAR file, it does not work and I get a ClassNotFoundException
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<deployment>
<dependencies>
<module name="org.javassist" services="import"/>
</dependencies>
</deployment>
</jboss-deployment-structure> -
3. Re: module reference in jboss-deployment-structure.xml not working
simkam Feb 1, 2019 3:21 AM (in response to tisaksen)1 of 1 people found this helpfulSo is it WAR inside EAR? If that is the case I think you need to put j-d-s.xml to META-INF of EAR and specify dependencies for subdeployments.
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.3">
<sub-deployment name="name.war">
<dependencies>
<module name="org.javassist" />
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
-
4. Re: module reference in jboss-deployment-structure.xml not working
tisaksen Feb 1, 2019 3:31 AM (in response to simkam)That was it. Thank you so much!