On 10/16/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Oleg [mailto:[EMAIL PROTECTED]
> Subject: Re: wrong StandardContext
>
> <Host autoDeploy="true" appBase="E:\Webspace\" name="localhost">

The trailing slash on the appBase declarations shouldn't cause problems,
but it's not needed.

Thank you, fixed.

> <Host reloadable="false" autoDeploy="false" name="domian2.com"

I'll assume the above name value is a typo, and not really that way in
your config.

Yes, sorry, it is.

> CATALINA_HOME\conf\Catalina\domain1.com\ROOT.xml :
> <Context override="true" path="/" docBase="domain1/ROOT" >
>
> CATALINA_HOME\conf\Catalina\localhost\ROOT.xml :
> <Context override="true" path="/" docBase="webApp">

The path attribute must not be specified when the <Context> element is
not in server.xml.

Ok, fixed as well.

Since deployOnStartup is true for each host, all apps under E:\Webspace
will be deployed to each host during Tomcat initialization; is that what
you intended?  What's actually in E:\Webspace now?

Webspace contains all applications, to domain1... domainN and webApp
are in Webspace on the same directory level

Since you still have webApp declared as existing in E:\Webspace, it may
be getting picked up by each host, even if it doesn't really exist.

That is exactly whats happening and I need to avoid that. I know
declare docBase for every application as absolute path,
docBase="E:/Webspace/domain1/ROOT" This seem to fix the problem and my
vrtual hosts do not try to load localhost webApp anymore. Is this the
right way to fix the problem?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to