spring+struts

请教 高 人 spring + struts 时候tomcat无法启动

去掉红色的部分才能启动tomcat

下面是sturts配置文件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">







type= "com.advertisement.login.action.LoginAction"
name = "loginForm"
validate="false"
input = "/login1.jsp">


[color=red]



[/color]

下面是spring配置文件

<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">






class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">




com.advertisement.login.dao/Login.hbm.xml



<bean id="LoginDAO" class="com.advertisement.login.dao.LoginDAO">
    <property name="sessionFactory">
        <ref bean="sessionFactory"></ref>
    </property>
</bean>

<bean id = "facadeManager"  class = "com.advertisement.login.manager.FacadeManager">
<property name = "loginDAO" ref = "LoginDAO"/>
</bean>

<bean name = "/loginAction"  class = "com.advertisement.login.action.LoginAction">
<property name = "facadeManager"  ref = "facadeManager"/>
</bean>

</beans>







:lol: :wink: :oops: :oops: :oops: :oops:

你的web.xml文件写得有问题吧,web.xml文件中去掉spring的listener