You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Wang, Song B" <So...@financial.wellsfargo.com> on 2005/05/26 20:55:35 UTC

Velocity doesn't work with Tomcat

Hello all,

I'm using Tomcat 5. I did:

 - make a new 'webapp' : in tomcat's webapps directory, 
   make a new directory structure as follows :
   
      velexample
      velexample/WEB-INF
      velexample/WEB-INF/lib
      velexample/WEB-INF/classes

 - put the velocity.jar into the velexample/WEB-INF/lib directory
 
 - put the SampleServlet.class into the velexample/WEB-INF/classes directory

 - put the sample.vm template into the velexample directory.

But it doesn't work: 404. What am I missing here? Thx.

Song Wang
Web Developer
Wells Fargo Financial Information Services
Phone: (416) 382-5300 ext. 3367
Email: SongWang@financial.wellsfargo.com
This message may contain confidential and/or privileged information.  If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein.  If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message.
Thank you for your cooperation.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Velocity doesn't work with Tomcat

Posted by Howard Lin <xu...@gmail.com>.
Do you have a web.xml file?

Howard Lin

On 5/26/05, Wang, Song B <So...@financial.wellsfargo.com> wrote:
> Hello all,
> 
> I'm using Tomcat 5. I did:
> 
>  - make a new 'webapp' : in tomcat's webapps directory,
>    make a new directory structure as follows :
> 
>       velexample
>       velexample/WEB-INF
>       velexample/WEB-INF/lib
>       velexample/WEB-INF/classes
> 
>  - put the velocity.jar into the velexample/WEB-INF/lib directory
> 
>  - put the SampleServlet.class into the velexample/WEB-INF/classes directory
> 
>  - put the sample.vm template into the velexample directory.
> 
> But it doesn't work: 404. What am I missing here? Thx.
> 
> Song Wang
> Web Developer
> Wells Fargo Financial Information Services
> Phone: (416) 382-5300 ext. 3367
> Email: SongWang@financial.wellsfargo.com
> This message may contain confidential and/or privileged information.  If you
> are not the addressee or authorized to receive this for the addressee, you
> must not use, copy, disclose, or take any action based on this message or
> any information herein.  If you have received this message in error, please
> advise the sender immediately by reply e-mail and delete this message.
> Thank you for your cooperation.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Velocity doesn't work with Tomcat

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Song,

> I'm using Tomcat 5. I did:

## snip

> But it doesn't work: 404. What am I missing here? Thx.

I suggest taking a look at VelocityTools.  It's the now-preferred way
to use Velocity in a web application.
  http://jakarta.apache.org/velocity/tools/view/index.html

Best regards,
-- Shinobu

--
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org