velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Baynes" <kbay...@seagullsw.com>
Subject RNFE in Tomcat4
Date Tue, 02 Jul 2002 14:53:54 GMT

Below is my previous post about RNFE in Tomcat 4 (Win32), where my WebApp
works fine in Tomcat 3 on Win32, in Resin on Linux, in WebSphere on OS/390
and AS/400. I had hoped that maybe it was just something about my test
machine, but the error just showed up on a client's machine who has Tomcat 4
and JDK 1.3.1. I'm using velocity-1.3-rc1.

I've attached my log (Admin.log) which shows the ClassPathResourceLoader
initializing, and then shows the velocimacro initilizing Velocity but then
being unable to find any of the resources (which are there and which can be
found under the other Servlet containers).

Due to the fact that it does run in other containers, I believe the
Properties that I pass to Velocity during it's initialization are correct.
I'm including my Java code (Administrator.java) which shows me creating the
Velocity object and then initializing it. I'm using Velocity Helper class as
in a General Application (even though it is a Servlet, I do not subclass
VelocityServlet).

I'm also including the Error that I trap and send back to the browser
(Error.txt). I also print out some debug info after the error.

I appreciate any help anyone can give me. I'm pretty much stumped at this
point.

Thanks! :-)

~Kevin



> -----Original Message-----
> From: Kevin Baynes [mailto:kbaynes@seagullsw.com]
> Sent: Wednesday, June 05, 2002 1:26 PM
> To: velocity-user@jakarta.apache.org
> Subject: RNFE in Tomcat4
>
>
>
> I have a web application that uses Velocity. My .vm files are
> packed into a
> JAR which resides in WEB-INF\lib.
>
> Problem: I'm getting a ResourseNotFoundException in Velocity.getTemplate()
> in Tomcat4. The same WAR works perfectly in tomcat3.x and in
> Caucho's Resin,
> it's only in Tomcat4 that I'm getting the RNFE.
>
> The Tomcat 3.x container uses JDK1.3, (and I believe Resin is too), while
> Tomcat4 is using JDK1.4. My WAR is built using JDK1.3.
>
> I'm hoping that someone has perhaps seen this.
>
> I'm using ClassPathResourceLoader of course, so I tried placing the .vm
> files in other areas accessible to the classpath: I unjarred the
> vm.jar into
> the classes dir, but Velocity still can't find them. I even
> copied the .vm's
> into the Tomcat4\common\classes\ dir and it still can't find them.
>
> Any suggestions?
>
> Thanks! :-)
>
> -------------------------------
> Kevin Baynes
>
> "Nothing left to do but Smile, Smile, Smile!"
>
>

Mime
View raw message