-
1. Re: Dependency on commons-lang module not recognized
ctomc Jun 4, 2012 4:50 PM (in response to raydecampo)Hi,
you have to expose dependancies also for submodules, that is in your case, the war.
take a look at https://docs.jboss.org/author/display/AS71/Class+Loading+in+AS7
look at the EAR class loading part and full blown example of jboss-deployment-structure.xml
as for code fragments on forum, on the right of the editor there is "use advanced editor" which has all the "extra" functions
--
tomaz
-
2. Re: Dependency on commons-lang module not recognized
jaikiran Jun 5, 2012 2:14 AM (in response to ctomc)Tomaz Cerar wrote:
as for code fragments on forum, on the right of the editor there is "use advanced editor" which has all the "extra" functions
Actually, while creating a new topic the user is already in advanced editor mode. However, I do agree that the code formatting icon isn't that recognizable. Ray, it's the >> icon/button in the editor window which you have to click, to see the options available for formatting.
-
3. Re: Dependency on commons-lang module not recognized
raydecampo Jun 5, 2012 10:51 AM (in response to ctomc)OK, so I was able resolve the dependcy by using the following:
<sub-deployment name="sc.war"> <dependencies> <module name="org.apache.commons.lang" /> </dependencies> </sub-deployment>
Although I can't say I really fully understand what is going on here. I thought I understood that the dependencies in the <deployment> section applied to the EAR class loader, i.e. that they would be in the same class loader as the jar files in my EAR /lib directory. Furthermore, I thought that if the WAR class loader failed to load a class it would fall back to the EAR class loader.
Clearly the jars in my EAR's /lib directory are being used by the WAR (otherwise my application wouldn't work at all). Furthermore there are references within those jars (in the EAR's /lib directory) to Hibernate and those are being satisfied by the <deployment> dependencies. I do not understand how to reconcile this. Am I wrong somewhere or just missing another piece?