spring和struts集成后部署项目提示:2009-3-20 17:05:26 org.apache.catalina.core.ApplicationContext log
信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module ''谁知道是那的问题??(在spring和struts集成之前我的项目是好的,可以运行的)
信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module ''谁知道是那的问题??(在spring和struts集成之前我的项目是好的,可以运行的)
解决方案 »
- 这个网站怎么实现的?页面跳转,整个页面不刷新
- jquery @的使用
- ss2h 同一个表left join查询问题
- jsp开发中使用控件开发问题!急急急!!!
- Error loading configuration file struts-default.xml - Class: com.opensymphony.xw 这是什么错误?折磨我五天了!
- 在Eclipse+myEclipse+struts环境下做任何程序运行时都有以下相同的错误是怎么回事哦?
- 关于apache+tomcat+ssl问题
- 怎么样通过IE客户端如何接收与发送所需要的数据包?好急呀.
- 介绍几个好的jsp网站好吗要提供代码和一些入门书记的
- jsp文件访问jar文件,路径问题。
- 一个字段的值超过一段时间自动发生改变有哪些方法可以考虑?
- 推荐一款在线装修设计SaaS的应用,非常酷
<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>可以找到哪错了吗?