首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

spring - java.lang.ClassNotFoundException:org.springframework.web.servlet.Dispat

2014-01-26 
做了一个spring mvc 的登陆应用但是输入用户名和密码之后报错HTTP Status 500 ---------------------------

做了一个spring mvc 的登陆应用但是输入用户名和密码之后报错
 
  HTTP Status 500 -
 
  --------------------------------------------------------------------------------
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException: Wrapper cannot find servlet class org.springframework.web.servlet.DispatcherServlet or a class it depends on
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  java.lang.Thread.run(Unknown Source)
 
  root cause
 
  java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  java.lang.Thread.run(Unknown Source)
 
  note The full stack trace of the root cause is available in the Tomcat logs.
 
  --------------------------------------------------------------------------------
 
  Apache Tomcat/5.0.18   

------解决方法--------------------------------------------------------
检查一下你的build path
------解决方法--------------------------------------------------------
确定调用哪个类,看该类的位置是否正确。

        

热点排行