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(ResourceManager.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.java:337) at org.apache.velocity.servlet.VelocityServlet.getTemplate(VelocityServlet.java:499) at webwork.view.velocity.WebWorkVelocityServlet.handleRequest(WebWorkVelocityServlet.java:182) at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:331) 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(ServletStubImpl.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(WebAppServletContext.java:5445) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.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)

 

Reply via email to