This content has been marked as final.
Show 1 reply
-
1. Re: How to write the jboss-deployment-structure.xml file for a war file which should include the third party jar files
jaysensharma Jul 4, 2012 2:17 AM (in response to hari309965)1 of 1 people found this helpfulHI Hari,
First of all you will need to create a JFreechart custom "module" as mentioned in the following link:
http://middlewaremagic.com/jboss/?p=1933 How to create custom modules in JBossAS7 to load different slots of the jars ?
It means you can create a directory "$JBOSS_HOME/com/myjars/jfreechart/main" then paste your "jfreechart.jar" & "jcommon.jar" file inside the "$JBOSS_HOME/com/myjars/jfreechart/main" directory and then create following kind of "$JBOSS_HOME/com/myjars/jfreechart/main/module.xml"
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.1" name="com.myjars.jfreechart"> <resources> <resource-root path="jfreechart.jar"/> <resource-root path="jcommon.jar"/> </resources> </module>
Restart JBossAS7, Then you can add your Custom Module inside your application using "WEB-INF/jboss-deployment-structure.xml" file as following:
<?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <dependencies> <module name="com.myjars.jfreechart" /> <module name="com.myjars.jcommon" /> </dependencies> </deployment> </jboss-deployment-structure>