日期:2014-05-19  浏览次数:20700 次

急!!!ssh+xfire部署正确运行错误
错误提示就是这个:
javax.servlet.ServletException: Error instantiating servlet class org.springframework.web.servlet.DispatcherServlet

控制台显示:java.lang.NoClassDefFoundError: Lorg/springframework/web/multipart/MultipartResolver;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.populateAnnotationsCache(DefaultInstanceManager.java:276)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:143)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:125)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:857)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


好像是org.springframework.web.servlet-3.0.1.RELEASE-A.jar这个包的问题,我用的事spring.jar包。和这个匹配的应该是哪个包啊??谁知道帮我看看 谢谢啊

------解决方案--------------------
spring-webmvc.jar
------解决方案--------------------
http://www.docjar.com/jar_detail/spring-webmvc.jar.html
------解决方案--------------------
少包了。
------解决方案--------------------
是少包了,就是spring-web-mvc.jar
------解决方案--------------------
探讨
引用:
是少包了,就是spring-web-mvc.jar

spring-webmvc.jar
spring-web.jar
这两个我都有呀!!

------解决方案--------------------
项目中,spring.jar包是不是有两个版本?把低版本的删掉。
http://unmi.cc/spring-mvc-no-such-field-error-application_context_id_prefix