Reputation: 10595
Cannot redeploy tomcat when I am using p6spy on top of my Postgres database driver.
It works great until redeploy. When I do a redeploy, I get this error:
javax.management.InstanceAlreadyExistsException: com.p6spy.engine.logging:name=P6LogOptions
Is there a way around this?
Upvotes: 0
Views: 84
Reputation: 848
You should be able to get around that problem by disabling the JMX functionality in P6Spy. You would do this by setting the following setting in spy.properties.
jmx=false
If you are not using a DataSource (meaning that you have a JDBC URL), then you can also set 'jmx=false' as a URL parameter on the JDBC URL as well.
BTW - This looks like a bug in P6Spy. If you don't mind, please create an issue in the P6Spy GitHub project.
References:
Upvotes: 1