If docBase is a relative path it points to a sub-directory of tomcat/webapps
If you want to have your application directory somewhere else you need to use an absolute pathname for docBase.
The docBase directory should contain the following subdirectories:
# Application java classes dir WEB-INF/classes # Application jar/zip files dir WEB-INF/lib
server.xml Context examples:
<Context path="/examples" docBase="examples" ... > ... </Context>
<Context path="/myapp" docBase="/path/to/myapp" debug="0" reloadable="true" crossContext="true" />
See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
So if you want to use in your own servlet, either create a new Context and Directory
or put it somewhere in tomcat/webapps/examples/
At 21:28 20.07.2003 -0400, you wrote:
Hi All,
I have Tomcat installed and running. I'm trying to get it to "see" a test sevlet but it can't seem to find it. I started looking at the example code that comes with the 4.1.24 release. I can call the HelloWorldExample servlet from my html code and it executes fine. I went through all of the configuration (.xml) files to see how this works and couldn't find "HelloWorldExample" anywhere. I assumed I entered my servlet in my web.xml incorrectly but now I'm confused since I can't find the example servlet in a .xml file. Can anyone shed some light?
Thanks much ...
Jeff
seera naveen wrote:
Hi,
Where can I find information about Context? Currently I am using Sun ONE studio to assign context to a web application. But, how to assign a context to a web application manually? From the list, I found that by using <Context> element we can achieve that, but I am using Tomcat4.1.24 bundled with Jboss3.2.1.
Please help me!! Thanks in advance.
Naveen
SMS using the Yahoo! Messenger;Download latest version.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]