File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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:
subject: How to deploy my own directory in Tomcat?
Similar Threads
Configure tomcat resource factory
Different ways for Contex
Using both struts html:link and bean:write error
help, my jsp can not display outside Root
Struts Portlet in Weblogic Portal...Anybody who can help??