Found the solution.

I created another resource loader that uses the context classloader that jboss 
likes then configured velocity to use my loader. I simply copied velocity's 
ClassPathResourceLoader and changed the line 

ClassLoader classLoader = this.getClass().getClassLoader();

to

ClassLoader classLoader = Thread.currentThread().getContextClassLoader()

All is fine now.. can find templates inside the EJB jar.


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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to