You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Sara Frongillo <s....@itsys.it> on 2003/06/13 13:23:34 UTC
Velocity + Jboss +Tomcat
Hi,
I have a problem, I'm using jboss-3.2.0_tomcat-4.1.24 with velocity servlet but config.getServletContext().getRealPath() return null so I set path ="/", and property p.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, path);
After some test I understand that deploy on Jboss and tomcat integrated create virtual path and not phisical path and so getRealPath() return null.
Now problem is that velocity servlet cannot locate template because the path / for velocity is C: (Windows) and no my webapp.
Can I resolve this problem?? Help me
Sara Frongillo
Software Development Department
I.T.Sys srl
Information Technology Systems
Tel. +39 089 2580977
Email s.frongillo@itsys.it
www http://www.nexsoft.it