You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Thomas F. Lavery" <la...@genome.wi.mit.edu> on 2001/05/18 03:56:37 UTC
getting started
Hi y'all,
I just discovered Velocity and I think it kicks ass. Unfortunately, I
can't get the examples to work. I always receive an error message saying
that either 1) the template cannnot be found or 2) the servlet is not
responding. I tried using 2 different downloads of Velocity and neither
worked for the servlet or forum examples.
I guess that I need somebody to tell me the basics. Where do I put my
velocity prooperties file and how does the servlet reference it? Is the
properties file necessary? Is there a specific directory tree needed?
I'm really excited to get going so any help will be *greatly* appreciated.
:)
Thanks!!!
Thomas Lavery
Re: getting started
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
"Thomas F. Lavery" wrote:
>
> Hi y'all,
>
> I just discovered Velocity and I think it kicks ass. Unfortunately, I
> can't get the examples to work. I always receive an error message saying
> that either 1) the template cannnot be found or 2) the servlet is not
> responding. I tried using 2 different downloads of Velocity and neither
> worked for the servlet or forum examples.
>
> I guess that I need somebody to tell me the basics. Where do I put my
> velocity prooperties file and how does the servlet reference it? Is the
> properties file necessary? Is there a specific directory tree needed?
>
> I'm really excited to get going so any help will be *greatly* appreciated.
> :)
There was a couple of responses already -
however, take a look, if you haven't already, at the
examples/servlet_example that is in CVS. It was modified to try to
alleviate some of the confusion that you are experiencing by
autoconfiguring itself.
Note that this is *not* in the 1.0.1 release, but rather in the CVS
only. It will be in the 1.1 release.
How are you running the examples, and which ones?
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."
Re: getting started
Posted by Francisco Hernandez <xy...@earthlink.net>.
ive had this problem aswell
i had to set WEB-INF/conf/velocity.properties using using the full path:
file.resource.loader.path = /home/x/Java/tomcat/webapps/forumdemo/template
and them for some servers such as Orion Server I had to set WEB-INF/web.xml
to:
<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>
<!-- original value was WEB-INF/conf/velocity.properties ( no
leading '/' )
anyone know if this is a bug in Orion Server?
-->
</init-param>
</servlet>
</web-app>
this is all with the forumdemo though, hope it helps.
----- Original Message -----
From: "Thomas F. Lavery" <la...@genome.wi.mit.edu>
To: <ve...@jakarta.apache.org>
Sent: Thursday, May 17, 2001 6:56 PM
Subject: getting started
>
> Hi y'all,
>
> I just discovered Velocity and I think it kicks ass. Unfortunately, I
> can't get the examples to work. I always receive an error message saying
> that either 1) the template cannnot be found or 2) the servlet is not
> responding. I tried using 2 different downloads of Velocity and neither
> worked for the servlet or forum examples.
>
> I guess that I need somebody to tell me the basics. Where do I put my
> velocity prooperties file and how does the servlet reference it? Is the
> properties file necessary? Is there a specific directory tree needed?
>
> I'm really excited to get going so any help will be *greatly* appreciated.
> :)
>
> Thanks!!!
> Thomas Lavery
>
>
>