求助:tomcat启动时报错
本来代码单独运行时没有问题,但部署成服务会报这样的错误。
---------------
Catalina:type=ServerClassLoader,name=common
javax.management.InstanceAlreadyExistsException: Catalina:type=ServerClassLoader
,name=common
at com.sun.jmx.mbeanserver.Repository.addMBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObj
ect(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamic
MBean(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(
Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(U
nknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(Unknown Source)
at htf.services.http.server.utils.Bootstrap.createClassLoader(Bootstrap.
java:174)
at htf.services.http.server.utils.Bootstrap.initClassLoaders(Bootstrap.j
ava:97)
------解决方案-------------------- at htf.services.http.server.utils.Bootstrap.createClassLoader(Bootstrap.
java:174)
at htf.services.http.server.utils.Bootstrap.initClassLoaders(Bootstrap.j
ava:97)
------解决方案--------------------cmd运行一下 :
javac -version
java -version
看看jdk的配置是否正常,如果正常的话 ,建议重新去官网上下一个,重新解压缩。
------解决方案--------------------tomcat有问题?
------解决方案--------------------你看看web.xml 看看是否配置了两个connector,导致port重复。