You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Craig R. McClanahan" <Cr...@eng.sun.com> on 2001/03/02 21:09:09 UTC

Re: /servlet

Srinivas Kurella wrote:

>
>
> Josh,
> I am not sure if i understand your problem completely , but you DONOT
> necessarily have to follow the webapp dir structure.
>
> This is what i do to make the /servlet work(porting from jrun to
> tomcat with minimum effort :)):
> 1. create a WEB-INF directory under your app directory and add the
> web.xml file to it.
> 2. add a context "" in the server.xml file with the docBase as your
> apps' root dir.
> 3. Add all the jars/classes explicitly to the CLASSPATH variable
> before running tomcat.sh to start tomcat.
>
> This shd work.
>

Until you switch to a servlet container that ignores the CLASSPATH
variable.

If you want your application to be portable, you really really really
should do what the specification requires.

>
> Srini

Craig McClanahan