After deploying a war in Jboss I've noticed problems with readin Velocity 
templates. Basically it appears that:


.getClass().getClassLoader().getResource("/template/xhtml/text.vm")

doesn't return anything but null, however:

.getClass().getClassLoader().getResource("template/xhtml/text.vm")

works fine, as good as

.getClass().getResource("/template/xhtml/text.vm)

I've tried java 2 classloading compliance on and off, I also tried different 
combinations ejblenient and using/not using jboss classloader in tomcat.

The resource being looked for is located in 
webapp.war/WEB-INF/lib/webwork.2.1.jar.

Environment: jboss 4.0.0 jdk 1.5.0-b64

Is this documented behaviour or known issue?


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856234#3856234

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856234


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to