On Wed, 16 Jul 2003, neil wrote:

> Hi, I'm trying to set up a new 'Context' in Apache Tomcat(so that I can
> use java beans), but I am a bit confused as to the difference between
> 'path' and 'docbase' , can someone help me please?

path is what you see in the url, docbase is what you see on the
filesystem.

So one example would be for a file called 'juglist-1.0.3.war'. I could put
this in webapps/ and setup a Context with a path of '/juglist' and a
docbase of '/tmp/tomcat/webapps/juglist-1.0.3.war'.

eg)
<Context path="/jira" 
docBase="/home/java/jakarta-tomcat-4.1.24/webapps/atlassian-jira-2.3.war">

This is an extreme example though, usually they say the same thing because
the same name is given to the url directory as the webapps directory.

eg)
<Context path="/jira" docBase="jira" debug="0"/>

I'm unsure about the absolute filename in the docBase and need to test it
someday to see if I really need it for .war's or not.

>
> I am trying to set up the context for a folder called 'classic', which
> is found at 'C:\Program Files\Apache Group\Tomcat 4.1\webapps\Classic'

Should just be the second type of example.

<Context path="/classic" docBase="Classic"/>

[Note that I lowercased the url. It'll be case sensitive]

Hen


_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to