aspose file tools*
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
Author

How to deploy my own directory in Tomcat?

Li Caocao
Greenhorn

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


caocao
Amit KumarS
Ranch Hand

Joined: Oct 10, 2003
Posts: 100
hiii
i think you only need to write
docBase="/myWeb"
instead of
docBase="webapps/myWeb"

and it should work...
Thanks
Amit


****************************<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?