FW: WebLogic, UNIX and Velocity Error

"Nortje, Andrew" <[email protected]> Fri, 02 Jan 2004 07:17:12 -0500
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <2D3A642CA9C8A74C9BD66C372091E7E104E3189D@GAATLITEXCH08S.atldc.nscorp.com>
Hi Webwork Developers

 

I am unable to signup with the users list and need some help with an issue.
Is the user's mailing list working, I have tried signing up twice? I would
appreciate any help.

 

Thanks

 

Andrew

 

 

-----Original Message-----
From: Nortje, Andrew 
Sent: Thursday, December 18, 2003 11:50 AM
To: '[email protected].'
Subject: WebLogic, UNIX and Velocity Error

 

I am in the process of updating an application written using Webwork (using
1 not 2), Velocity and WebLogic. The application runs fine under Windows but
fails on Unix. The velocity engine seems to be having class path issues on
UNIX and cannot find the .vm files. 

 

The person who developed the code seems to have followed the Webwork
cookbook and put the templates under WEB-INF/classes/templates

In WEB-INF/lib there is velocity-dep-1.2.jar, webwork.jar and
commons-collections.jar

 

Everything is in an .ear file which is deployed as an application in
WebLogic.

 

I read the velocity docs regarding how it finds the template files. D do I
need to be fiddling with the properties file in velocity-dep-1.2.jar?

 

TIA

 

 

The error (on UNIX) only is:


VelocityServlet : Error processing the template


org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/templates/login.vm'
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource '/templates/login.vm' at
org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceMan
ager.java:438) at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:736) at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:718) at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:337) at
org.apache.velocity.servlet.VelocityServlet.getTemplate(VelocityServlet.java
:499) at
webwork.view.velocity.WebWorkVelocityServlet.handleRequest(WebWorkVelocitySe
rvlet.java:182) at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
31) at
org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:292)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
webwork.view.velocity.WebWorkVelocityServlet.service(WebWorkVelocityServlet.
java:54) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306) at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5445) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3105) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)