Alejandro Reyero wrote:
> 
> Hi all.
> 
> I'm trying to configure velocity to work with Iplanet Web Server 4.1 SP6
> (NES with new name ;-) ), but i have a serious problem with the properties

NES == Nintendo Entertainment System ? ;)

> file: I don't know how to set my IWS to get that properties file, and it
> doesn't seem to work with init(...) (maybe i'm doing it in the wrong way, i
> do:  Velocity.init("/export/home/ifema/velocity.properties"); ).
> 
> I always get this with my servlets:
> 
> VelocityServlet : Error processing the template
> java.lang.Exception: Cannot find the template!
> java.lang.Exception: Cannot find the template! at
> java.lang.Throwable.fillInStackTrace(Native Method) at
> java.lang.Throwable.fillInStackTrace(Compiled Code) at
> java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code)
> at
> org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
> 32) at
> org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:285)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:701) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:826) at
> com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
> a:504)
> 

First, can you turn of what I assume is JIT to get a better stack trace?

Second, where are you doing the init(file)?  There is an init() in the
VelocityServlet base class, so any follwing inits don't do anything....

Have you overridden the servlets init()?

> In the "documentation" of velocity you can find how to configure it to work
> with Apache, but there is nothing about other servers. Isn't it intended to
> work with other servers ???

Of course.  Tomcat is just closest to home, and the one you *should* be
using :)

geir

-- 
Geir Magnusson Jr.                               [EMAIL PROTECTED]
Developing for the web?  See http://jakarta.apache.org/velocity/

Reply via email to