首页 新闻 会员 周边 捐助

spring+springMVC+mybatis整合出错

0
悬赏园豆:200 [已关闭问题] 关闭于 2016-07-07 17:03

如题。 tomcat 可以正常启动。

启动后 在浏览器 输入 http://localhost:8080/ssm2/insertUserinfo.spring

接着就报错。以下是报错:

016-5-22 21:21:50 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.NoSuchMethodError: org.springframework.web.context.support.WebApplicationContextUtils.initServletPropertySources(Lorg/springframework/core/env/MutablePropertySources;Ljavax/servlet/ServletContext;Ljavax/servlet/ServletConfig;)V
 at org.springframework.web.context.support.StandardServletEnvironment.initPropertySources(StandardServletEnvironment.java:95)
 at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:636)
 at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:606)
 at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:657)
 at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:525)
 at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:466)
 at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
 at javax.servlet.GenericServlet.init(GenericServlet.java:212)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)
2016-5-22 21:21:50 org.apache.catalina.core.StandardWrapperValve invoke
严重: Allocate exception for servlet springMVC
java.lang.NoSuchMethodError: org.springframework.web.context.support.WebApplicationContextUtils.initServletPropertySources(Lorg/springframework/core/env/MutablePropertySources;Ljavax/servlet/ServletContext;Ljavax/servlet/ServletConfig;)V
 at org.springframework.web.context.support.StandardServletEnvironment.initPropertySources(StandardServletEnvironment.java:95)
 at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:636)
 at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:606)
 at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:657)
 at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:525)
 at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:466)
 at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
 at javax.servlet.GenericServlet.init(GenericServlet.java:212)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)

 

 

报错完了 我在网上查资料。 发现 说jar包冲突。 可是  我实在不知道哪个jar包冲突了。找不出来

下面是我的jar包

希望有高手解惑。

情不知所起一往而深的主页 情不知所起一往而深 | 初学一级 | 园豆:87
提问于:2016-05-22 21:31
< >
分享
所有回答(3)
-1

把包换了试试

小光 | 园豆:1766 (小虾三级) | 2016-05-23 09:42

换了? 换哪些?假如全部换。用什么来替换?你有整合包的下载地址么? 

@情不知所起一往而深: http://download.csdn.net/download/jiuqiyuliang/8640621 这个项目里面有,我看过了

支持(0) 反对(0) 小光 | 园豆:1766 (小虾三级) | 2016-05-23 10:18

@小光: 换上你给的项目里面的jar 包 

还是报异常。

严重: StandardWrapper.Throwable
java.lang.NoSuchMethodError: org.springframework.web.context.support.WebApplicationContextUtils.initServletPropertySources(Lorg/springframework/core/env/MutablePropertySources;Ljavax/servlet/ServletContext;Ljavax/servlet/ServletConfig;)V

0

把jar包冲突报的错发出来啊

R_Oasis | 园豆:73 (初学一级) | 2016-05-23 13:32

啊,下面有报错,你妹看到么?

异常

严重: StandardWrapper.Throwable
java.lang.NoSuchMethodError: org.springframework.web.context.support.WebApplicationContextUtils.initServletPropertySources(Lorg/springframework/core/env/MutablePropertySources;Ljavax/servlet/ServletContext;Ljavax/servlet/ServletConfig;)V

0

算了, 基础不稳, 从头开始搭

情不知所起一往而深 | 园豆:87 (初学一级) | 2016-05-26 20:08
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册