This content has been marked as final.
Show 11 replies
-
1. Re: classpath in war, jboss5
jaikiran Feb 17, 2009 5:03 AM (in response to abhinav.ind)"abhinav.ind" wrote:
there is a war in that sar.
That's the first time i am hearing a war being packaged in a sar. Any specific reason you are doing that? -
2. Re: classpath in war, jboss5
abhinav.ind Feb 17, 2009 5:53 AM (in response to abhinav.ind)well it works with jboss4.0.2. also we have a common build for multiple projects hence every project ends up in a sar.
watever in temp folder i get to see the temporary war folder so it means jboss is ablt to pick it form sar. -
3. Re: classpath in war, jboss5
abhinav.ind Feb 19, 2009 6:47 AM (in response to abhinav.ind)well u can check http-invoker.sar in deploy folder there is invoker.war inside it. wat do u say abt this :)
-
4. Re: classpath in war, jboss5
jaikiran Feb 19, 2009 6:49 AM (in response to abhinav.ind)"abhinav.ind" wrote:
well u can check http-invoker.sar in deploy folder there is invoker.war inside it. wat do u say abt this :)
I would say, i did not notice that earlier ;-) -
5. Re: classpath in war, jboss5
abhinav.ind Feb 19, 2009 7:18 AM (in response to abhinav.ind)so can u help me with my problem. y doesnt jboss5 recognises classpath from WEB-INF/classes
-
6. Re: classpath in war, jboss5
jaikiran Feb 19, 2009 9:14 AM (in response to abhinav.ind)i hav to access a xsl file kept in web-inf/classes/com/portal/layout/tabColumn/file.xsl
jboss is not able to find it.
I believe it's your code which is trying to find it and not JBoss. Please post that relevant piece of code where you are trying to access this. -
7. Re: classpath in war, jboss5
abhinav.ind Feb 19, 2009 10:54 PM (in response to abhinav.ind)code for accessing both files is same. its just that classLoader finds the one kept in jar but fails to find the one kept in war packaged in sar.
public static URL getResourceAsURL(Class requestingClass, String resource) throws ResourceMissingException { URL resourceURL = requestingClass.getResource(resource); if (resourceURL == null) { throw new ResourceMissingException(resource,"Resource not found"); } return resourceURL; }
First case: File in jar
input to above function: class org.jasig.portal.UserInstance, /org/jasig/portal/layout/AL_TabColumn/AL_TabColumn.xsl
output: vfszip:/D:/jboss5/server/default/deploy/deploy.last/12uPortal.sar/uPortal.jar/org/jasig/portal/layout/AL_TabColumn/AL_TabColumn.xsl
Second case: File in war
input to above function: class org.jasig.portal.UserInstance, /com/nubridges/portal/layout/AL_TabColumn/nuBridges/nuBridges-menu.xsl
output: /com/nubridges/portal/layout/AL_TabColumn/nuBridges/nuBridges-menu.xsl
now if i package file in second case in to a jar then it works. is it related to class loading? if yes then can u give me a link where i can study new class loading fundamentals implemented in jboss5. installation guide dint help me.
earlier there was unified class loader for each webapp which were kept in one repository. now things seem different. though it says that UCL is replaced by BaseClassLoader but my webapp seems to be laoded by NoAnnotationURLClassLoader.
thanks -
8. Re: classpath in war, jboss5
alesj Feb 20, 2009 3:16 AM (in response to abhinav.ind)"abhinav.ind" wrote:
but my webapp seems to be laoded by NoAnnotationURLClassLoader.
I really doubt that's true. -
9. Re: classpath in war, jboss5
abhinav.ind Feb 20, 2009 5:55 AM (in response to abhinav.ind)ok. can u suggest me where i can find detail content of class loading, how to configure it and other documentation. there must be something regarding this.
-
-
11. Re: classpath in war, jboss5
abhinav.ind Feb 22, 2009 10:18 PM (in response to abhinav.ind)thanks alesj :)