tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bin.Hu...@ReadRite.com
Subject RE: how to add context element to conf/server.xml file
Date Tue, 23 Oct 2001 18:10:22 GMT
Thank you, Craig.  it works.

Bin 

-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org]
Sent: Tuesday, October 23, 2001 10:02 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: how to add context element to conf/server.xml file




On Tue, 23 Oct 2001 Bin.Huang@ReadRite.com wrote:

> Date: Tue, 23 Oct 2001 09:17:14 -0700
> From: Bin.Huang@ReadRite.com
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat-user@jakarta.apache.org
> Subject: how to add context element to conf/server.xml file
>
>
>
> I am new to tomcat.  Here is my question:
>
>
> > I just installed Tomcat 4.0 and like to place all my jsp/servlet files
to
> > D drive instead
> > of catalina_home. so I am trying to add a context element as follow:
> >
> >    <Context path="D:/exp" docBase="D:/exp" debug="0"
> >                  reloadable="true">
> >                ...........
> >   </Context>
> > saved, restart the tomcat
> >

The context path should be "/exp" instead of "D:/exp".

  <Context path="/exp" docBase="D:/exp" debug="0" reloadable="true">

The "path" attribute defines what you use in your request URL, while the
"docBase" attribute defines the location on disk for this web
application's files.

> > then I call "http://localhost:8080/exp" and it replys:
> >
> > The requested resource (/exp) is not available. But if I call
> > http://localhost:8080/manager/list, it show following:
> >
> > OK - Listed applications for virtual host localhost
> > /examples:running:0
> > /webdav:running:0
> > D:/exp:running:0
> > /tomcat-docs:running:0
> > /manager:running:0
> > /:running:0
> >
> > it looks D:/exp is running.
> >
> > What might be the problem?  Thank you very much for help.
>

Craig


Mime
View raw message