OR --
Just make a directory in tomcat's WebApps directory and include a
WEB-INF/web.xml file.

like this:
d:/tomcat/WebApps/myNewContext/WEB-INF/web.xml

Restart Tomcat.  No need to touch Server.xml at all!

Tomcat is real smart that way.

-----Original Message-----
From: Vikram Naik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 10:00 PM
To: [EMAIL PROTECTED]
Subject: Re: CONTEXTS


Hello Jason ,
                    For configuring a context in Tomcat u need to do
following things .

1 .  Make a folder with the name of  context  anywhere inside tomcat Dir.
2 .  Define it by describing your context in Server.xml with the use of the
      tag
      <Context path=" the url ext u want after http://yourhost:yourport/ "
                 docBase=" path of your context under tomcat dir "
                 crossContext="true"
                 debug="0"
                 reloadable="true"
                 trusted="false" >
        </Context>

After going all this Start your server

And Congratulations Your Context is Up!!! :-)


If  any  comments pls feel free to express yourself .

Vikram Naik




----- Original Message -----
From: "teh j" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 29, 2001 10:15 AM
Subject: CONTEXTS


> Hello all
>
> I am currently trying to create a new context to run
> under Tomcat
>
> I have created a new folder underneath webapps called
> 'onsale' and have defined it in server.xml
>
> However, when I restart Tomcat, it does not appear to
> be picked up.
>
> Is there anything else that needs to be done to define
> a context?
>
> Do I explicitly need a .war file to create the
> 'onsale' context?
>
> any help is appreciated
>
> Jason
>
>
>
____________________________________________________________________________
_
> http://messenger.yahoo.com.au - Yahoo! Messenger
> - Voice chat, mail alerts, stock quotes and favourite news and lots more!

Reply via email to