整合一下SSH框架,整合spring的时候就是报错,.....SpringObjectFactory.java:209:-1

chenyi0834 2013-01-22 12:11:58


严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)

这是报的错

下面是web。xml文件
<context-param>
<param-name>
contextConfigLocation
</param-name>
<param-value>
classpath*:**/applicationContext.xml
</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

说下整合hibernate跟struts的时候是没问题的 加入spring就出问题了, 百度查了很久 说是没加listener 或者去掉一个jar包的 我都试了没有问,菜鸟第一次发帖,有不不妥的地方请见谅
...全文
227 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
桑桑13 2015-09-02
  • 打赏
  • 举报
回复
你检查一下你导的包 另外我个人习惯先导spring
chenyi0834 2013-01-22
  • 打赏
  • 举报
回复
新人求捧场,第一次发帖

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧