wood burning stoves 2.0*
The moose likes Tomcat and the fly likes How to deploy my own directory in Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to deploy my own directory in Tomcat?" Watch "How to deploy my own directory in Tomcat?" New topic

How to deploy my own directory in Tomcat?

Li Caocao

Joined: Jul 17, 2003
Posts: 7
I did deployment as below:
and modified server.xml in conf,
<Context path="/examples".....>
<Context path="/myWeb" docBase="webapps/myWeb" debug="0"
reloadable="true" crossContext="true">
However I still cannot run my own directory "myWeb".

Amit KumarS
Ranch Hand

Joined: Oct 10, 2003
Posts: 100
i think you only need to write
instead of

and it should work...

****************************<br />In 24 hrs Earth rotates once on its Axis.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Actually, drop the leading slash.

<Context path="/myWeb" docBase="myWeb" debug="0" ...>

Also, your WEB-INF directory must contain a web.xml file.

It can be virtually empty, containing only the following:

<web-app />

But the file must be there.
I agree. Here's the link: http://aspose.com/file-tools
subject: How to deploy my own directory in Tomcat?
Similar Threads
Struts Portlet in Weblogic Portal...Anybody who can help??
Configure tomcat resource factory
Using both struts html:link and bean:write error
Different ways for Contex
help, my jsp can not display outside Root