This content has been marked as final.
Show 3 replies
-
1. Re: jboss 5 and ClassLoader problem
jaikiran Dec 15, 2008 1:34 AM (in response to johlon)From what i know, JBossAS5 stopped creating temp jar files for the deployed ones. AS5 now works on the files that are in the deployment folder.
Going by your code, you seem to be loading all xml files within a jar. If you know the xml file names, then there is a better way to doing this, where you don't have to worry about where the jar files are located.
By the way, there's specific forum for JBossAS5 questions here http://www.jboss.com/index.html?module=bb&op=viewforum&f=287 -
2. Re: jboss 5 and ClassLoader problem
theice Sep 16, 2009 5:48 AM (in response to johlon)hi, jaikiran, what's the better way?
I used "Thread.currentThread().getContextClassLoader().getResource("").getPath()", but there are diffent output in jboss4 and jboss5,why? -
3. Re: jboss 5 and ClassLoader problem
jaikiran Sep 17, 2009 2:50 AM (in response to johlon)"theice" wrote:
hi, jaikiran, what's the better way?
Depends on why you need the "path" of the resource. If you just need the resource, you could do something like:this.getClass().getClassLoader().getResource("...");
Let us know some more details about what you are trying to do.