-
1. Re: Wildfly jboss-deployment-structure.xml - commons-configuration
franco80 Mar 27, 2015 4:47 PM (in response to franco80)I found settings :
<
subsystem
xmlns
=
"urn:jboss:domain:ee:1.0"
>
<
global-modules
>
<
module
name
=
"org.javassist"
slot
=
"main"
/>
</
global-modules
>
</
subsystem
>
it's working but it is possible to use settings only from jboss-deployment-structure.xml only (without using settings 'global-modules in standalone.xml') ?
-
2. Re: Wildfly jboss-deployment-structure.xml - commons-configuration
jaikiran Mar 27, 2015 7:15 PM (in response to franco80)Emil Posmyk wrote:
Hi all
I'm trying to use the module commons-configuration.jar located in Wildfly (not from my ear/lib folder). I added to jboss.deployment-structure.xml that dependency:
<jboss-deployment-structure>
<ear-subdeployments-isolated>false</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="org.apache.commons.configuration"/>
but the application continues to show me the error:
java.lang.ClassNotFoundException: org.apache.commons.configuration.ConfigurationException from [Module "deployment.app-ear.ear.commons-security-util-1.0.4.2.jar:main"
You should able to get this working from the jboss-deployment-structure.xml by adding that dependency to the (commons-security-util-1.0.4.2.jar) *sub-deployment* section. Take a look at the documentation here and see the example for jboss-deployment-structure.xml which shows how to add a dependency for a sub-deployment Class Loading in WildFly - WildFly 8 - Project Documentation Editor. Something like this:
<jboss-deployment-structure> <sub-deployment name="commons-security-util-1.0.4.2.jar"> <dependencies> <module name="org.apache.commons.configuration"/> </dependencies> </sub-deployment> <jboss-deployment-structure>
-
3. Re: Wildfly jboss-deployment-structure.xml - commons-configuration
franco80 Mar 30, 2015 5:57 AM (in response to jaikiran)Hi jaikiran
Thanks for the answear.
I have tried in this way but it doesn't work for me (same error message). For now I'll leave with global-modules.