struts2与spring整合报错,求救啊!
部署好启动tomcat时一直出这个错:
严重: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/D:/tomcat-6.0.20/webapps/OA/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
一堆错误都由上面那个引起。。。。
严重: Error filterStart
2010-6-28 16:14:39 org.apache.catalina.core.StandardContext start
严重: Context [/OA] startup failed due to previous errors
配置文件没问题啊,包引入也没问题,都在lib下。
弄一下午崩溃了……
--------------------------------------------------------------------------------------------------------
web.xml----------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
---------------------------------------------------------------------------------------
struts.xml----
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
<package name="struts2" extends="struts-default">
<action name="Login" class="loginAction">
<result name="success">/result.jsp</result>
<result name="input">/login.jsp</result>
</action>
</package>
</struts>
--------------------------------------------------------------------------------
applicationContext.xml----
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<bean id="loginService" class="com.struts2.service.impl.LoginServiceImpl"></bean>
<bean id="loginAction" class="com.struts2.action.LoginAction" scope="prototype">
<property name="loginServeci" ref="loginService"></property>
</bean>
</beans>