更新到 Spring 2.5.5 会导致 javax.servlet.UnavailableException: org.springframework.web.struts.DelegatingTilesRequestProcessor
我被告知将一些应用程序从 Spring 2.0.8 更新到 Spring 2.5.5。该应用程序使用Struts 1.2.7。一旦我更改了 Spring.jar,在 JBoss 4.0.5 中加载时会出现以下异常:
10:14:57,579 ERROR [[/PortalRRHH]] Servlet /PortalRRHH threw load() exception
javax.servlet.UnavailableException: org.springframework.web.struts.DelegatingTilesRequestProcessor
这是在 struts-config.xml 中这样定义的:
<controller locale="true">
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingTilesRequestProcessor"/>
</controller>
我不知道发生了什么,因为它适用于旧版本的 Spring DelegatingTilesRequestProcessor
在 Spring 2.5.5 中仍然可用。我以前没有使用 Struts 的经验,因此如果您需要其他任何信息来找出问题所在,请询问,我将更新问题。
谢谢。
I have been told to update some application from Spring 2.0.8 to Spring 2.5.5. This application is using Struts 1.2.7. Once I change the Spring.jar I get the following exception while loading in JBoss 4.0.5:
10:14:57,579 ERROR [[/PortalRRHH]] Servlet /PortalRRHH threw load() exception
javax.servlet.UnavailableException: org.springframework.web.struts.DelegatingTilesRequestProcessor
This is defined in the struts-config.xml this way:
<controller locale="true">
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingTilesRequestProcessor"/>
</controller>
I have no clue of what is happening since it works with the old version of Spring and the DelegatingTilesRequestProcessor
is still available in Spring 2.5.5. I have no previous experience with Struts so if you need anything else to figure what the problem is please ask and I will update the question.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决办法。 Spring 2.5.5 库似乎没有这个包:
org.springframework.web.struts
。该项目使用的旧版本 Spring 确实有该包。我已经下载了 spring-struts.jar 并添加它到我的项目中并且现在可以工作了。I have found a solution. It seems that the Spring 2.5.5 library doesn't have this package:
org.springframework.web.struts
. The older version of Spring that the project was using did have that package. I have downloaded spring-struts.jar and added it to my project and it works now.