Spring异常之版本错误
Posted 李昭
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring异常之版本错误相关的知识,希望对你有一定的参考价值。
今天开始一个新项目的开发,结果使用maven刚刚部署完环境,一启动立马报错
1 java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava/lang/String;Ljava/lang/ClassLoader;)Z 2 at org.springframework.web.servlet.config.AnnotationDrivenBeanDefinitionParser.<clinit>(AnnotationDrivenBeanDefinitionParser.java:166) 3 at org.springframework.web.servlet.config.MvcNamespaceHandler.init(MvcNamespaceHandler.java:34) 4 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123) 5 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) 6 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) 7 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) 8 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) 9 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) 10 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) 11 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) 12 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 13 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) 14 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 15 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) 16 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) 17 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) 18 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) 19 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) 20 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) 21 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) 22 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) 23 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602) 24 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066) 25 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 26 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742) 27 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718) 28 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) 29 at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736) 30 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 31 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 32 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 33 at java.lang.reflect.Method.invoke(Method.java:483) 34 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 35 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 36 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 37 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456) 38 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) 39 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 40 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 41 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 42 at java.lang.reflect.Method.invoke(Method.java:483) 43 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 44 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 45 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 46 at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) 47 at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) 48 at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) 49 at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) 50 at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828) 51 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 52 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 53 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 54 at java.lang.reflect.Method.invoke(Method.java:483) 55 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) 56 at sun.rmi.transport.Transport$1.run(Transport.java:178) 57 at sun.rmi.transport.Transport$1.run(Transport.java:175) 58 at java.security.AccessController.doPrivileged(Native Method) 59 at sun.rmi.transport.Transport.serviceCall(Transport.java:174) 60 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557) 61 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812) 62 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671) 63 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 64 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 65 at java.lang.Thread.run(Thread.java:745) 66 2018-05-01 10:50:09,934 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Ignoring handler [org.springframework.web.socket.config.WebSocketNamespaceHandler]: problem with class file or dependent class 67 java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava/lang/String;Ljava/lang/ClassLoader;)Z 68 at org.springframework.web.socket.config.WebSocketNamespaceHandler.<clinit>(WebSocketNamespaceHandler.java:31) 69 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 70 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 71 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 72 at java.lang.reflect.Constructor.newInstance(Constructor.java:408) 73 at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82) 74 at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:59) 75 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:122) 76 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) 77 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) 78 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) 79 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) 80 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) 81 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) 82 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) 83 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 84 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) 85 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 86 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) 87 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) 88 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) 89 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) 90 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) 91 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) 92 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) 93 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) 94 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602) 95 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066) 96 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 97 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742) 98 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718) 99 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) 100 at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736) 101 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 102 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 103 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 104 at java.lang.reflect.Method.invoke(Method.java:483) 105 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 106 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 107 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 108 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456) 109 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) 110 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 111 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 112 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 113 at java.lang.reflect.Method.invoke(Method.java:483) 114 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 115 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 116 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 117 at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) 118 at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) 119 at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) 120 at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) 121 at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828) 122 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 123 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 124 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 125 at java.lang.reflect.Method.invoke(Method.java:483) 126 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) 127 at sun.rmi.transport.Transport$1.run(Transport.java:178) 128 at sun.rmi.transport.Transport$1.run(Transport.java:175) 129 at java.security.AccessController.doPrivileged(Native Method) 130 at sun.rmi.transport.Transport.serviceCall(Transport.java:174) 131 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557) 132 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812) 133 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671) 134 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 135 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 136 at java.lang.Thread.run(Thread.java:745) 137 2018-05-01 10:50:09,949 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Ignoring handler [org.springframework.cache.config.CacheNamespaceHandler]: problem with class file or dependent class 138 java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava/lang/String;Ljava/lang/ClassLoader;)Z 139 at org.springframework.cache.config.AnnotationDrivenCacheBeanDefinitionParser.<clinit>(AnnotationDrivenCacheBeanDefinitionParser.java:64) 140 at org.springframework.cache.config.CacheNamespaceHandler.init(CacheNamespaceHandler.java:60) 141 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123) 142 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) 143 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) 144 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) 145 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) 146 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) 147 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) 148 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) 149 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 150 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) 151 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 152 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) 153 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) 154 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) 155 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) 156 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) 157 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) 158 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) 159 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) 160 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602) 161 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066) 162 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 163 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742) 164 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718) 165 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) 166 at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736) 167 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 168 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 169 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 170 at java.lang.reflect.Method.invoke(Method.java:483) 171 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 172 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 173 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 174 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456) 175 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) 176 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 177 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 178 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 179 at java.lang.reflect.Method.invoke(Method.java:483) 180 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 181 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 182 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 183 at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) 184 at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) 185 at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) 186 at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) 187 at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828) 188 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 189 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 190 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 191 at java.lang.reflect.Method.invoke(Method.java:483) 192 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) 193 at sun.rmi.transport.Transport$1.run(Transport.java:178) 194 at sun.rmi.transport.Transport$1.run(Transport.java:175) 195 at java.security.AccessController.doPrivileged(Native Method) 196 at sun.rmi.transport.Transport.serviceCall(Transport.java:174) 197 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557) 198 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812) 199 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671) 200 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 201 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 202 at java.lang.Thread.run(Thread.java:745) 203 2018-05-01 10:50:10,018 DEBUG [org.springframework.util.ClassUtils] - Class [groovy.lang.GroovyObject] or one of its dependencies is not present: java.lang.ClassNotFoundException: groovy.lang.GroovyObject 204 2018-05-01 10:50:10,018 DEBUG [org.springframework.util.ClassUtils] - Class [org.jruby.IRuby] or one of its dependencies is not present: java.lang.ClassNotFoundException: org.jruby.IRuby 205 2018-05-01 10:50:10,018 DEBUG [org.springframework.util.ClassUtils] - Class [bsh.Interpreter] or one of its dependencies is not present: java.lang.ClassNotFoundException: bsh.Interpreter 206 2018-05-01 10:50:10,103 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Ignoring handler [org.springframework.context.config.ContextNamespaceHandler]: problem with class file or dependent class 207 java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.isPresent(Ljava/lang/String;Ljava/lang/ClassLoader;)Z 208 at org.springframework.context.config.MBeanServerBeanDefinitionParser.<clinit>(MBeanServerBeanDefinitionParser.java:52) 209 at org.springframework.context.config.ContextNamespaceHandler.init(ContextNamespaceHandler.java:42) 210 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123) 211 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) 212 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) 213 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) 214 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) 215 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) 216 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) 217 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) 218 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 219 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) 220 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 221 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) 222 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) 223 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) 224 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) 225 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) 226 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) 227 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) 228 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) 229 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602) 230 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066) 231 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) 232 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742) 233 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718) 234 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) 235 at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736) 236 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 237 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 238 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 239 at java.lang.reflect.Method.invoke(Method.java:483) 240 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 241 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 242 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 243 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:456) 244 at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:405) 245 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 246 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 247 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 248 at java.lang.reflect.Method.invoke(Method.java:483) 249 at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:287) 250 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) 251 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) 252 at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466) 253 at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) 254 at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) 255 at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) 256 at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:828) 257 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 258 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 259 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 260 at java.lang.reflect.Method.invoke(Method.java:483) 261 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) 262 at sun.rmi.transport.Transport$1.run(Transport.java:178) 263 at sun.rmi.transport.Transport$1.run(Transport.java:175) 264 at java.security.AccessController.doPrivileged(Native Method) 265 at sun.rmi.transport.Transport.serviceCall(Transport.java:174) 266 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557) 267 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812) 268 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671) 269 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 270 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 271 at java.lang.Thread.run(Thread.java:745) 272 2018-05-01 10:50:10,134 DEBUG [org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader] - Loading bean definitions 273 2018-05-01 10:50:10,172 DEBUG [org.springframework.beans.factory.xml.BeanDefinitionParserDelegate] - Neither XML \'id\' nor \'name\' specified - using generated bean name [java.awt.Font#727ff007] 274 2018-05-01 10:50:10,172 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [spring/applicationContext-dao.xml] 275 2018-05-01 10:50:10,172 DEBUG [org.springframework.beans.factory.xml.DefaultDocumentLoader] - Using JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl] 276 2018-05-01 10:50:10,172 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] - Attempting to resolve XML Schema [http://www.springframework.org/schema/beans/spring-beans.xsd] using [org.springframework.beans.factory.xml.PluggableSchemaResolver] 277 2018-05-01 10:50:10,219 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] - Attempting to resolve XML Schema [http://www.springframework.org/schema/context/spring-context.xsd] using [org.springframework.beans.factory.xml.PluggableSchemaResolver] 278 2018-05-01 10:50:10,219 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] - Attempting to resolve XML Schema [http://www.springframework.org/schema/tool/spring-tool.xsd] using [org.springframework.beans.factory.xml.PluggableSchemaResolver] 279 2018-05-01 10:50:10,250 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] - Attempting to resolve XML Schema [http://www.springframework.org/schema/tx/spring-tx.xsd] using [org.springframework.beans.factory.xml.PluggableSchemaResolver] 280 2018-05-01 10:50:10,250 DEBUG [org.springframework.beans.factory.xml.ResourceEntityResolver] - Attempting to resolve XML Schema [http://www.springframework.org/schema/aop/spring-aop.xsd] using [org.springframework.beans.factory.xml.PluggableSchemaResolver] 281 2018-05-01 10:50:10,288 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Loaded mappings [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler, http://www.springframework.org/schema/mvc=org.springframework.web.servlet.config.MvcNamespaceHandler, http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler, http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler, http://www.springframework.org/schema/websocket=org.springframework.web.socket.config.WebSocketNamespaceHandler, http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler, http://www.springframework.org/schema/jdbc=org.springframework.jdbc.config.JdbcNamespaceHandler, http://www.springframework.org/schema/cache=org.springframework.cache.config.CacheNamespaceHandler, http://www.springframework.org/schema/c=org.springframework.beans.factory.xml.SimpleConstructorNamespaceHandler, http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler, http://www.springframework.org/schema/jms=org.springframework.jms.config.JmsNamespaceHandler, http://www.springframework.org/schema/task=org.springframework.scheduling.config.TaskNamespaceHandler, http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.ContextNamespaceHandler}] 282 2018-05-01 10:50:10,288 DEBUG [org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] - Ignoring handler [org.springframework.web.servlet.config.MvcNamespaceHandler]: problem with class file or dependent class 283 java.lang.NoClassDefFoundError: Could not initialize class org.springframework.web.servlet.config.AnnotationDrivenBeanDefinitionParser 284 at org.springframework.web.servlet.config.MvcNamespaceHandler.init(MvcNamespaceHandler.java:34) 285 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:123) 286 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96) 287 at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82) 288 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) 289 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:519) 290 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:499) 291 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:407) 292 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357) 293 at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 294 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) 295 at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) 296 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) 297 at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) 298 at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) 299 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) 300 at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) 301 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) 302 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) 303 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) 304 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4602) 305 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066以上是关于Spring异常之版本错误的主要内容,如果未能解决你的问题,请参考以下文章spring+mybatis启动NoClassDefFoundError异常分析三部曲之二:定位错误
sentinal spring-cloud-gateway adapter(1.6)异常错误之@EnableCircuitBreaker
mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段
mvn命令异常:An error has occurred in Javadoc report generation: Unable to find javadoc command异常已解决(代码片段