本文主要是介绍dubbo启动报错 Servlet.init() for servlet springmvc threw exception java.lang.NoSuchMethodError: org.spri,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
报错信息
javax.servlet.ServletException: Servlet.init() for servlet springmvc threw exceptionorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2522)org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2511)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)java.lang.Thread.run(Thread.java:745)
java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.getMethod(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;org.springframework.core.convert.support.GenericConversionService.<clinit>(GenericConversionService.java:81)org.springframework.core.env.AbstractPropertyResolver.<init>(AbstractPropertyResolver.java:41)org.springframework.core.env.PropertySourcesPropertyResolver.<init>(PropertySourcesPropertyResolver.java:41)org.springframework.core.env.AbstractEnvironment.<init>(AbstractEnvironment.java:113)org.springframework.core.env.StandardEnvironment.<init>(StandardEnvironment.java:54)org.springframework.web.context.support.StandardServletEnvironment.<init>(StandardServletEnvironment.java:44)org.springframework.web.servlet.HttpServletBean.createEnvironment(HttpServletBean.java:215)org.springframework.web.servlet.HttpServletBean.getEnvironment(HttpServletBean.java:205)org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)javax.servlet.GenericServlet.init(GenericServlet.java:158)org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
解决:jar冲突所致,file-Project Structure-Artifacts-选中项目,spring的版本使用的是4.3.8,删除如下图所示的选项
问题解决
这篇关于dubbo启动报错 Servlet.init() for servlet springmvc threw exception java.lang.NoSuchMethodError: org.spri的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!