Ok, I get it now... But is there any way to make it so that you can add new 
www.domain.com aka virtual hosts without restarting the server?

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Digby
Sent: Thursday, June 17, 2004 12:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Can server.xml be reloaded without restart?

The context is your application so (context)/META-INF is right beside 
your (context)/WEB-INF.

Tomcat will know whch host to use because that's where you deploy it (if 
you use the deployer) or you can stick the app in the host's appbase 
folder, and it'll work it out. It did with me anyway. Once it's 
deployed, have a look in conf\Catalina and you find equivalent 
context.xml files in there too.

As Apache acknowledge, they just write software that they give away for 
free, and documentation and support are just extras when they get time. 
There are a couple of books on Tomcat that go into more detail and 
explain how things work. (Again, my experience).

Ivan Jouikov wrote:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
> 
> And some other google stuff.
> 
> What do you mean by {context}/META-INF?
> What the hell is {context} ?
> 
> And still, how would it know which <Host> to use?
> 
> -----Original Message-----
> From: QM [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 16, 2004 7:56 PM
> To: Tomcat Users List
> Subject: Re: Can server.xml be reloaded without restart?
> 
> On Wed, Jun 16, 2004 at 07:04:12PM -0700, Ivan Jouikov wrote:
> : Tomcat HOW-TO does a really bad job of explaining of how context.xml would
> : work... Google didn't yield any useful information as well...
> 
> I'm not sure where you're looking -- which howto did you read?
> 
> 
> : So, as far as I understand, you create a file called context.xml, and place
> : the <Context> tag and all its contents into it (instead of keeping them inside
> : of server.xml)...
> 
> Correct.
> 
> 
> : Now, where does that context.xml go?  Into WEB-INF?  Tried it, didn't work.
> 
> {context}/META-INF
> 
> To answer your other question: this file is associated with the webapp
> because of its location in the context dir or WAR file.  That's how the
> manager app/Tomcat/etc know what to do with it.
> 
> I don't know what's up there now, but this was described on the Tomcat
> site when I made the switch to using context.xml many moons ago. ;)
> In fact, for Tomcat5 use of context.xml is encouraged.
> 
> -QM
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to