How to add JDK library dependencies in jboss-deployment-structure.xml file
nnanda Jan 3, 2013 4:09 AMI am using JBoss 7.1.1.Final and I have a war file to deploy. In that WAR file, I need to refer following JDK class dependency
com/sun/org/apache/xerces/internal
I followed some discussions (links shown below)
https://community.jboss.org/thread/195182
https://community.jboss.org/message/717881#717881#717881
But, I did not get clear answer. What these discussions are not clarifying is:
How to include both module and system dependencies in the same jboss-deployment-structure.xml file; and how to do it for a WAR file. All the examples shared by Jaikiran refer EAR files and do not show both module and system dependencies.
Currently this file for my application looks like
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"> <ear-subdeployments-isolated>true</ear-subdeployments-isolated> <deployment> <dependencies> <module name="com.oracle.ojdbc6" /> <module name="javax.servlet.api" /> <module name="javax.servlet.jsp.api" /> <module name="javax.servlet.jstl.api" /> <module name="org.apache.commons.beanutils" /> <module name="org.apache.commons.codec" /> <module name="org.apache.commons.collections" /> <module name="org.apache.commons.discovery" /> <module name="org.apache.commons.fileupload" /> <module name="org.apache.commons.logging" /> <module name="org.apache.commons.io" /> <module name="org.apache.commons.lang" /> <module name="org.apache.commons.lang3" /> <module name="org.apache.commons.validator" /> <module name="org.apache.httpcomponents" /> <module name="org.apache.poi" /> <module name="org.apache.velocity" /> <module name="org.apache.xerces" /> <module name="org.codehaus.jackson.jackson-core-asl" /> <module name="org.codehaus.jackson.jackson-mapper-asl" /> <module name="org.codehaus.jettison" /> <module name="org.codehaus.woodstox" /> <module name="org.infinispan" /> <module name="org.jaxen" /> <module name="org.jboss.vfs" /> <module name="org.jboss.ironjacamar.jdbcadapters" /> <module name="org.slf4j" /> <module name="org.slf4j.jcl-over-slf4j" /> <module name="org.slf4j.jul-to-slf4j" /> </dependencies> </deployment> </jboss-deployment-structure>
Please help me to understand how can I include the mentioned xcerses internal class from JDK library.
Thanks,
Niranjan