You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by RADEMAKERS Tanguy <ta...@swift.com> on 2004/01/27 18:17:46 UTC
newbie: problems running forumdemo on tomcat 5
Hello,
I am experiencing problems running the forumsdemo app from the
velocity-1.3.1 -download on Tomcat5:
The war file deploys just fine to http://localhost:8080/forumdemo, i can
access the static html pages, but any link to
/forumdemo/servlet/forum?action=list (or whatever action) returns a 404
error from tomcat.
When building the script tells me that i will have to "Remember to set
the PATH in Velocity.properties once you move the WAR to your Servlet
engine." - i tried putting in PATH = /forumdemo but no change so i took
it out.
I checked the controllerservlet for calls to getProperty() and all i
found were lines to load file.resource.loader.path and runtime.log -
both of which are already set in the props file.
My setup:
java 1.4.2
Tomcat 5
Windows 2000
--- web.xml---
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>forum</servlet-name>
<servlet-class>org.apache.velocity.demo.ControllerServlet</servlet-class>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/velocity.properties</param-value>
</init-param>
</servlet>
</web-app>
--velocity.properties--
#
# the following are specified relative to the
# root of the webapp because the
# ControllerServlet will setup these
# properties with the right real path
# prepended
#
file.resource.loader.path = /template
runtime.log = /forumdemo_velocity.log
I'm pretty new to Tomcat (even to java in general) so any help would be
much appreciated,
Regs,
Tanguy
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org