`

org.springframework.web.struts.DelegatingActionProxy

 
阅读更多

之前也不知道用的是哪个版本的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里面的

分享到:
评论

相关推荐

    spring-struts.jar

    org.springframework.web.struts.DelegatingActionProxy.class org.springframework.web.struts.DelegatingActionUtils.class org.springframework.web.struts.DelegatingRequestProcessor.class org.spring...

    struts spring hibernate整合

    <action path="/example" type="org.springframework.web.struts.DelegatingActionProxy"> <forward name="success" path="/success.jsp"/> ``` 这种方式使得Struts能够更好地与Spring集成,特别是在需要使用...

    hibernate struts 和spring整和配置

    2. **配置Struts**:在`struts-config.xml`文件中,你需要将所有的Action定义为Spring的代理Action `org.springframework.web.struts.DelegatingActionProxy`。这样,当请求到达Struts时,实际的处理工作将由Spring...

    struts1整合spring-通过DelegatingActionProxy实现

    <action path="/myAction" type="org.springframework.web.struts.DelegatingActionProxy" parameter="myAction"/> ``` 4. **编写Action**:在Action类中,可以专注于处理HTTP请求,将业务逻辑委托给由Spring管理...

    struts和spring整合的2种方式

    在第一种整合方式中,Struts的`struts-config.xml`配置文件中,我们将`type`属性设置为`org.springframework.web.struts.DelegatingActionProxy`,这表示Struts的Action将由Spring来创建和管理。例如: ```xml ...

    Struts1.3+Spring3.0+Hibernate3.3+DWR2.X框架集成文档v1.4

    在Struts配置文件中,通过设置`action`的`type`属性为`org.springframework.web.struts.DelegatingActionProxy`来实现集成: ```xml <action path="/login" type="org.springframework.web.struts....

    ssh架构配置文件配置

    - `type="org.springframework.web.struts.DelegatingActionProxy"`使用Spring的代理类来处理Action。 - `<forward name="index" path="/index.jsp" />`和`<forward name="upd" path="/update.jsp" />`定义了...

    整合Spring与Struts的几种方法

    <action path="/hello" type="org.springframework.web.struts.DelegatingActionProxy"> <forward name="success" path="/hello.jsp" /> ``` **Step 2**:在Spring的`config.xml`中定义与`struts-config.xml`中的...

    ssh三大框架整合

    <action path="/somepath" type="org.springframework.web.struts.DelegatingActionProxy" /> ``` - 配置监听器(可选): 如果不希望在`struts-config.xml`中配置`ContextLoaderPlugIn`插件,可以在`web.xml`...

    spring 整合 struts 文档

    <bean id="logonAction" class="org.springframework.web.struts.DelegatingActionProxy"> <bean id="logonActionBean" class="com.example.action.LogonAction"/> ``` 2. **配置Struts Action映射** 在`...

    spring 和 struts整合

    <action attribute="loginForm" input="/login.jsp" name="loginForm" path="/login" scope="request" type="org.springframework.web.struts.DelegatingActionProxy" /> ``` 这意味着当Struts接收到`/login`路径...

    ssh,ssh,ssh

    <action path="/login" input="/index.jsp" validate="true" scope="request" type="org.springframework.web.struts.DelegatingActionProxy"> <forward name="forward" path="/success.jsp"> ``` ### Spring ...

    ssh框架搭建教程

    <bean id="strutsActionProxy" class="org.springframework.web.struts.DelegatingActionProxy"/> <bean id="strutsPlugIn" class="org.springframework.web.struts.StrutsPlugIn"> ...

    Struts1说明以及整合Spring

    <action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" /> ``` - 通过这种方式,实际执行的`Action`由Spring容器决定。 4. **配置Spring的bean**: - 在`applicationContext.xml...

    Struts整合Spring

    <action path="/myAction" type="org.springframework.web.struts.DelegatingActionProxy"> <param name="beanName">myAction ``` 3. 为了让Struts能够识别Spring的bean,还需要在Struts的初始化过程中加载...

    SSH整合关键步骤

    <action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" parameter="method"> <forward name="succ" path="/succ.jsp"/> <forward name="error" path="/login.jsp" redirect="false...

    j2ee SSH 整合笔记,献于新手。。

    <action name="IndexActionForm" path="/indexAction" scope="request" type="org.springframework.web.struts.DelegatingActionProxy"> <forward name="success" path="/index.jsp"> ``` 这里将`type`属性...

    demo_Struts_Spring.rar_DEMO

    这通常通过使用Spring的`org.springframework.web.struts.DelegatingActionProxy`实现,它将Struts的Action接口代理为Spring的Bean。 2. **Spring配置**:在applicationContext.xml中,定义了业务服务层(Service)...

    spring struts2整合

    同时,Action类不需要实现任何特定接口,只需继承自Spring提供的`org.springframework.web.struts.DelegatingActionProxy`。 - **拦截器**:在Struts2的配置中,添加Spring主题拦截器,以便利用Spring的国际化支持...

Global site tag (gtag.js) - Google Analytics