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 20:32:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53416

--- Comment #1 from Filip Hanik <fhanik@apache.org> ---
Created attachment 29000
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29000&action=edit
JMX Registration of two pools

The name of the JMX bean that gets registered is unique to the web application,
so your example must have something else wrong

I've attached an image of what JMX registration looks like when two web
applications define an identical data source

If we examine your object name:

tomcat.jdbc:name="jdbc/soscvuk",context=/,type=ConnectionPool,host=localhost,class=org.apache.tomcat.jdbc.pool

you can see that it contains the 'context' and the 'host' as part of the name.
Two web applications can not have the same context.

There must be something misconfigured in your application.

-- 
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