之前也不知道用的是哪个版本的spring jar 包,后来换了之后发现问题出来了,
- 00:08:00,364 ERROR RequestProcessor:296 - No action instance for path /login could be created
- java.lang.ClassNotFoundException: org.springframework.web.struts.DelegatingActionProxy
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
- at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
- at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
- at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
- at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:292)
- at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
- at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
- at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at cn.edu.hbmy.oa.web.PageFilter.doFilter(PageFilter.java:32)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
- 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:293)
- at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
- at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
- at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
- at java.lang.Thread.run(Thread.java:619)
tomact 启动没有问题,但是登录就是报错了,
仔细看一下才知道是找不到类了,一看真的没有了,加一个包就可以 了,
就是:org.springframework.web.struts-3.0.0.RELEASE.jar
这个包是在spring-framework-3.0.0.RELEASE里面的