tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Install WAR via docBase within servlet.xml
Date Tue, 06 Feb 2007 09:53:15 GMT
Detlev Beutner wrote:
> Hi there,
> 
> I have a WAR which normally should be deployed via myName.xml into
> /tomcat/conf/Catalina/localhost, with docBase="AbsolutePathToWar".
> 
> Within that xml snippet, <Context path="/myName"
> docBase="/webs/web123/tomcat/application.war" debug="0"> is used.
> 
> So I can call "www.server.com/myName" and it works.
> 
> Now I want to call "myName.server.com" instead.

This would mean that your webapp becomes the ROOT application of a 
virtual host.

> I have tried to remove myName.xml from /tomcat/conf/Catalina/localhost and
> added the following snippet within server.xml:
> 
> <Host appBase="webapps" name="myName.server.com">  <Context path=""
> docBase="/webs/web123/tomcat/application.war" debug="0"> ...
> 
> But it doesn't work, the application got undeployed (empty dirs), I even
> deleted the empty dirs and restarted tomcat, nothing (seems as if tomcat
> doesn't care about the context at all)...
> 
> I definitely want to run the application from the WAR (for upgrading
> reasons), and the WAR definitely should NOT be put into the webapps
> directory to get deployed (as it worked with the myName.xml deployment).

As you didn't specify which version of Tomcat, I'm going to assume 5.x.
Place the context here:
	
	%TOMCAT/conf/Catalina/myName.server.com/ROOT.xml

... not in server.xml.

> How to configure this?!
> 
> Thanks in advance
> Detlev
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 


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


Mime
View raw message