日期:2014-05-18  浏览次数:20659 次

struts+hibernate没问题,加入了spring报错
访问我的程序web页面总是出现这样的错误
HTTP   Status   500   -   No   action   instance   for   path   /userLogin   could   be   created
控制台出现
严重:   No   action   instance   for   path   /userLogin   could   be   created
java.lang.ClassNotFoundException:   org.springframework.web.struts.DelegatingActionProxy

org.springframework.web.struts.DelegatingActionProxy这个类应该在
spring.jar包里,我已经加上了,并且加到.classpath.xml里了,为什么还不行啊?

这个问题困扰我2天,求高手给指点一下。

------解决方案--------------------
添加到工程里面了么?
------解决方案--------------------
在struts-config.xml配置文件有加上下面这一段吗?
<plug-in className= "org.springframework.web.struts.ContextLoaderPlugIn ">
<set-property property= "contextConfigLocation " value= "/WEB-INF/applicationContext.xml " />
</plug-in>
------解决方案--------------------
先看一下你的程序到了action去了没有?
还有 <bean name= "/userLogin "这个bean的属性改为ID看一看
------解决方案--------------------
/userLogin 路径错误.你应该认真检查一下你配置访问的路径.
------解决方案--------------------
帮顶
有分拿没 ,呵呵
------解决方案--------------------
帮顶