tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53416] Two datasources with the same name in different web applications results in javax.management.InstanceAlreadyExistsException
Date Tue, 26 Jun 2012 21:05:11 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53416

Anthony Gerrard <anthonygerrard+apache.org@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from Anthony Gerrard <anthonygerrard+apache.org@gmail.com> ---
We have two services with one web application in each.  One is for our secure
site and one for our non secure.  We use Apache as the ssl endpoint and reverse
proxy using ajp connectors.  Both web applications have the root context in
their service.  This configuration works and we had no problems with the
default connection pooling.  I got the error when switching to the tomcat
connection pool.

Our server.xml looks something like

<Server>
  <Service name="Catalina">
    <Engine name="Catalina" defaultHost="${host.mainsite.name}">
      <Host name="${host.mainsite.name}" 
            appBase="webapps/${host.mainsite.name}" unpackWARs="true" 
            autoDeploy="false">
      </Host>
    </Engine>
  </Service>

  <Service name="Catalina-Secure">
    <Engine name="Catalina-Secure" defaultHost="${host.mainsite.name}">
      <Host name="${host.mainsite.name}" 
          appBase="webapps/${host.mainsite.name}-ssl" unpackWARs="true" 
          autoDeploy="false">
      </Host>
    </Engine>
  </Service>
</Server>

I've subsequently worked around this using <ResourceLink /> which I think is
more appropriate for our set-up anyway.  However I still think this is a bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message