-
1. Re: how to set multiple jar file in jboss 7.2 classloader
jameslivingston Sep 2, 2015 2:06 AM (in response to anmk28)You can create a custom module, and then add that to the EE subsystem's <global-modules> list to make it available to all applications.
1) Create a directory modules/com/example/mymodule/main/, and put all the jars in it
2) Create a modules/com/example/mymodule/main/ file like this, you need to add all th jars, and may need some more dependencies
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.example.mymodule">
<resources>
<resource-root path="this.jar"/>
<resource-root path="that.jar"/>
<resource-root path="other.jar"/>
</resources>
<dependencies>
<module name="sun.jdk"/>
<module name="javaee.api"/>
</dependencies>
</module>
3) Add com.example.mymodule to the global modules list
-
2. Re: how to set multiple jar file in jboss 7.2 classloader
anmk28 Sep 3, 2015 3:01 AM (in response to jameslivingston)Thanks James its working for me and also i some issues in jboss-web.xml fil.
Jboss 5.x jboss-web.xml file are like
<jboss-web>
<security-domain flushOnSessionInvalidation="false" />
<context-root>/</context-root>
</jboss-web>
JBoss 7.x will changed in jboss-web.xml:
<jboss-web>
<security-domain flushOnSessionInvalidation="false">other</security-domain>
<context-root>/</context-root>
</jboss-web>
after the app are deployed successfully.
Thanks !!