spring和struts集成后部署项目提示:2009-3-20 17:05:26 org.apache.catalina.core.ApplicationContext log
信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module ''谁知道是那的问题??(在spring和struts集成之前我的项目是好的,可以运行的)

解决方案 »

  1.   

    struts-config.xml的一部分
    <action-mappings >
        <action
          attribute="petInfoForm"
          name="petInfoForm"
          path="/pet"
          scope="request"
          parameter="operate"
          type="org.springframework.web.struts.DelegatingActionProxy">
          <forward name="to" path="to" />
        </action>
        <action
          attribute="petDiaryForm"
          name="petDiaryForm"
          path="/diary"
          scope="request"
          parameter="operate"
          type="org.springframework.web.struts.DelegatingActionProxy" >
          <forward name="pet" path="/WEB-INF/jsp/pet.jsp"></forward>
        </action>
        <action path="/index" type="org.springframework.web.struts.DelegatingActionProxy">
          <forward name="index" path="/WEB-INF/jsp/index.jsp" />
        </action>  </action-mappings>  <message-resources parameter="com.ApplicationResources" />
      
      <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
       <set-property property="contextConfigLocation" value="classpath:applicationContext.xml"/>
      </plug-in>applicationContext.xml<beans
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    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.0.xsd
    http://www.springframework.org/schema/aop
    http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schema/tx/spring-tx-2.0.xsd">
    <!-- sessionFactory -->
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="configLocation">
    <value>classpath:hibernate.cfg.xml</value>
    </property>
    </bean>

    <!-- dao -->
    <bean id="petInfoDao" class="epet.dao.impl.PetInfoDaoImpl">
    <property name="sessionFactory" ref="sessionFactory"></property>
    </bean>

    <bean id="petDiaryDao" class="epet.dao.impl.PetDiaryDaoImpl">
    <property name="sessionFactory" ref="sessionFactory"></property>
    </bean>

    <!-- biz -->
    <bean id="petInfoBiz" class="epet.biz.impl.PetInfoBizImpl">
    <property name="petInfoDao" ref="petInfoDao"></property>
    </bean>

    <bean id="petDiaryBiz" class="epet.biz.impl.PetDiaryBizImpl">
    <property name="petDiaryDao" ref="petDiaryDao"></property>
    </bean>

    <!-- action -->
    <bean name="/pet" class="epet.web.action.PetInfoAction">
    <property name="petInfoBiz" ref="petInfoBiz"></property>
    </bean>

    <bean name="/diary" class="epet.web.action.PetDiaryAction">
    <property name="petDiaryBiz" ref="petDiaryBiz"></property>
    </bean>

    <bean name="/index" class="epet.web.action.IndexAction">
    <property name="petDiaryBiz" ref="petDiaryBiz"></property>
    <property name="petInfoBiz" ref="petInfoBiz"></property>
    </bean>
    </beans>
    hibernate.cfg.xml<hibernate-configuration> <session-factory>
    <property name="connection.username">sa</property>
    <property name="connection.url">
    jdbc:sqlserver://localhost:1433;databaseName=ReportServer
    </property>
    <property name="dialect">
    org.hibernate.dialect.SQLServerDialect
    </property>
    <property name="myeclipse.connection.profile">epet</property>
    <property name="connection.password">sa</property>
    <property name="connection.driver_class">
    com.microsoft.sqlserver.jdbc.SQLServerDriver
    </property>
    <mapping resource="epet/entity/PetInfo.hbm.xml" />
    <mapping resource="epet/entity/PetDiary.hbm.xml" /> </session-factory></hibernate-configuration>可以找到哪错了吗?