By Date: <-- -->
By Thread: <-- -->

wrong StandardContext



On 10/15/06, Caldarale, Charles R <Chuck.Caldarale (at) unisys.com> wrote:
> From: Oleg [mailto:olegtim (at) gmail.com]
> Subject: wrong StandardContext
>
> I have multiple cirtual hosts setup on this machine, and one
> application running under localhost, for some reason after I removed
> the localhost application webApp, I started getting this for every
> single virtual host setup. Those virtual host applications should not
> be connected to the webApp but for some reason every one of those
> trying to load localhost's webApp web.xml ?? Where can it possible be
> crossed, Please help.

What is each virtual host's appBase set to?  What is the defaultHost
attribute set to for the <Engine> tag?  Post your server.xml to the list
if you can't figure it out.

 - Chuck


Hey Chuck, here are related from server.xml and context files

CATALINA_HOME\conf\server.xml :

<Engine defaultHost="localhost" name="Catalina">

<Host autoDeploy="true" appBase="E:\Webspace\"	name="localhost">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="customwebexpress_log." suffix=".txt" timestamp="true" />
</Host>

<Host reloadable="false"  autoDeploy="false" name="domain1.com"
appBase="E:\Webspace\">
</Host>			
<Host reloadable="false"  autoDeploy="false" name="domian2.com"
appBase="E:\Webspace\">
</Host>	
<Host reloadable="false"  autoDeploy="false" name="domain3.com"
appBase="E:\Webspace\">
</Host>	


CATALINA_HOME\conf\Catalina\domain1.com\ROOT.xml :

<?xml version='1.0' encoding='utf-8'?>
<Context override="true" path="/" docBase="domain1/ROOT" >
<ResourceLink name="jdbc/oz" global="jdbcGlobal"/></Context>

CATALINA_HOME\conf\Catalina\localhost\ROOT.xml :

<?xml version='1.0' encoding='utf-8'?>
<Context override="true" path="/" docBase="webApp">
	<ResourceLink name="jdbc/oz" global="jdbcGlobal"/>
</Context>

---------------------------------------------------------------------
To start a new topic, e-mail: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org