It is normal to run a Tomcat project. When running two Tomcat projects, an exception will be reported.
ERROR [com.alibaba.druid.stat.DruidDataSourceStatManager] – unregister mbean error javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean………
Solution:
Modify catalina.sh
under Tomcat: add and set Java at the end_OPTS="Ddruid.registerToSysProperty=true"
This method is effective in personal test. If it is added in other places, it is not guaranteed to be effective
Read More:
- How to Solve ERROR – unregister mbean error javax.management.InstanceNotFoundException: com.alibaba.druid:type=
- [Solved] javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat
- [Solved] com.alibaba.druid.pool.DruidDataSource – create connecti
- Spring Boot Druid Error: discard long time none received connection
- com.alibaba.druid.pool.DruidDataSource error Warning: init datasource error
- error MSB8011: Failed to register output [How to Solve]
- Unknown custom element: [xxx] – did you register the component correctly…
- [Solved] bee must have one register DataBase alias named `default`
- How to Solve Error: Module did not self-register
- [How to Solve Vue warn]: Unknown custom element: did you register the component correctly?
- Failed to register bundle identifier. The app identifier “xxx” cannot be registered to your developm
- [Solved] Failed to register: Error: Failed to get admin…. run enrollAdmin.js
- Log separation using tool cronlog
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- Tencent cloud container easyexcel export excel error NoClassDefFoundError: could not initialize class sun.awt.x11fontmanager
- Tomcat startup error: Failed to start component [StandardServer[8005]] solution
- [Solved] Hadoop Mapreduce Error: GC overhead limit exceeded
- Kill Tomcat process in windows and Linux environment (solve the problem of other ports being occupied)
- The Ajax return value reports an error, and the spring boot development Ajax return value reports an error
- [Solved] Spring MVC Error: A child container failed during start