之前也不知道用的是哪个版本的spring jar 包,后来换了之后发现问题出来了,

  1. 00:08:00,364 ERROR RequestProcessor:296 - No action instance for path /login could be created
  2. java.lang.ClassNotFoundException: org.springframework.web.struts.DelegatingActionProxy
  3. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
  4. at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
  5. at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
  6. at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
  7. at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:292)
  8. at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
  9. at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  10. at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  11. at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  12. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  13. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  14. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  15. at cn.edu.hbmy.oa.web.PageFilter.doFilter(PageFilter.java:32)
  16. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  17. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  18. at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
  19. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  20. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  21. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  22. at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
  23. at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  24. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  25. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  26. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  27. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  28. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  29. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  30. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  31. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  32. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  33. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  34. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  35. at java.lang.Thread.run(Thread.java:619)

tomact 启动没有问题,但是登录就是报错了,

仔细看一下才知道是找不到类了,一看真的没有了,加一个包就可以 了,

就是:org.springframework.web.struts-3.0.0.RELEASE.jar

这个包是在spring-framework-3.0.0.RELEASE里面的

05-28 22:20