javax.management.InstanceNotFoundException: tomcat.jdbc:name="jdbc/reportsDataSource",context=/test##0.0.1-SNAPSHOT,engine=Catalina,type=ConnectionPool,host=localhost,class=org.apache.tomcat.jdbc.pool.DataSource

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check whether the name you're using for lookup is correct.

Solutions on the web

via GitHub by hdeadman
, 1 year ago
tomcat.jdbc:name="jdbc/reportsDataSource",context=/test##0.0.1-SNAPSHOT,engine=Catalina,type=ConnectionPool,host=localhost,class=org.apache.tomcat.jdbc.pool.DataSource
via Stack Overflow by nichu09
, 2 years ago
via GitHub by hantsy
, 1 year ago
org.apache.commons.dbcp2:name=dataSource,type=BasicDataSource
via Google Groups by Unknown author, 1 year ago
com.netflix.servo:name=eurekaClient.registration.lastHeartbeatSec_00480,class=com.netflix.discovery.DiscoveryClient,type=GAUGE
via Stack Overflow by Alex Pi
, 9 months ago
com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean^M
via Stack Overflow by user2689655
, 1 year ago
org.apache.commons.dbcp2:name=dataSource,type=BasicDataSource
javax.management.InstanceNotFoundException: tomcat.jdbc:name="jdbc/reportsDataSource",context=/test##0.0.1-SNAPSHOT,engine=Catalina,type=ConnectionPool,host=localhost,class=org.apache.tomcat.jdbc.pool.DataSource
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1444)
at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.unregisterMBeans(ClassLoaderLeakPreventor.java:993)
at se.jiderhamn.classloader.leak.prevention.ClassLoaderLeakPreventor.contextDestroyed(ClassLoaderLeakPreventor.java:831)
at org.test.memleak.ClassloaderMemoryLeakAvoidanceListener.contextDestroyed(ClassloaderMemoryLeakAvoidanceListener.java:21)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4859)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:827)
at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1404)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1330)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1552)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:285)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1141)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1377)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1381)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 17 hours ago
Once, 3 months ago
Once, 7 months ago
Once, 8 months ago
Once, 11 months ago
22 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.