tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pabst <>
Subject Re: Not finding my servlet ....
Date Mon, 21 Jul 2003 07:53:04 GMT
Tomcat Contexts are configured in server.xml
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
# Application jar/zip files dir

server.xml Context examples:

<Context path="/examples" docBase="examples" ... >

<Context path="/myapp" docBase="/path/to/myapp" debug="0" reloadable="true" 
crossContext="true" />


So if you want to use in your own servlet, either create a new Context and 
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 ...
>seera naveen wrote:
>>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.
>>SMS using the Yahoo! Messenger;Download latest version.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message