tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Janner <Jeffrey.Jan...@PolyDyne.com>
Subject RE: Tomcat with multiple domains
Date Mon, 03 Dec 2012 16:38:09 GMT
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com]
> Sent: Friday, November 30, 2012 9:11 AM
> To: Tomcat Users List
> Subject: Re: Tomcat with multiple domains
> 
> Jeffrey Janner wrote:
> >> -----Original Message-----
> >> From: Paul van Hoven [mailto:paul.van.hoven@googlemail.com]
> >> Sent: Wednesday, November 28, 2012 5:29 PM
> >> To: Tomcat Users List
> >> Subject: Re: Tomcat with multiple domains
> >>
> >> Hi!
> >>
> >> Thanks for your quick and detailed answers. Actually I think I did
> >> all the things you mentioned but it still does not work. So here are
> >> the changes I made:
> >>
> >> 1. I checked that the following entries are in the engine tag:
> >> <Server port="8005" shutdown="SHUTDOWN"> ...
> >> <Service name="Catalina">
> >> ...
> >> <Engine name="Catalina" defaultHost="localhost"> <Host
> name="localhost"
> >> appBase="webapps"
> >>             unpackWARs="true" autoDeploy="true">
> >
> >  [Jeff Janner] You need a "</Host>" here.  All elements must have a
> begin tag and an end tag!
> >                If there are no sub-elements, you can combine the
> begin and end tags as <tagname ... />.
> >                Please find a good introductory reference on XML
> markup language before continuing.
> >
> >> <Host
> >> name="www.my2nddomain.com"
> >> appBase="/opt/apache-tomcat-7.0.32/my2nddomain" unpackWARs="true"
> >> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
> >> 	</Host>
> 
> Haaa. Good catch, Jeffrey. Everyone else missed that.
> So it probably "swallowed" the second Host's tags in the first, with
> who knows which results.
> Surprising that Tomcat still starts.

You wouldn't believe how any times I've had to correct something like this for customer self-installs,
even with what I think is proper documentation to guide them.
It really does come down to understanding the structure of XML.
Jeff


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


Mime
View raw message