You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Antti Ollilainen <an...@gmail.com> on 2006/02/21 16:23:56 UTC

Multiple services in single Tomcat instance

Hello,

I'm configuring a single Tomcat instance to serve two separate web
applications. The applications are on separate ports and one is accessed
over HTTP while the other one over HTTPS. I managed to get the webapps
configured so that each is its own Service in the server.xml. Actually there
was a discussion about this in last April with the same subject and I got
the tip to use the same name for Engine and Host inside the Service.

However, I have another problem now: When I start the server, both web
applications seem to start twice. It seems that all application threads
which are initially started are duplicated because both applications log
twice their startup info. I'm using log4j for logging and it seems that the
log lines are not simply duplicated but they originate from separate
threads.

Has anyone experience from this kind of configuration or encountered the
same problem?