读书人

将jbpm 整合到spring2+ibatis + strut

发布时间: 2012-11-04 10:42:41 作者: rapoo

将jbpm 整合到spring2+ibatis + struts2中的问题

<?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:tx="http://www.springframework.org/schema/tx"xmlns:aop="http://www.springframework.org/schema/aop"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-2.0.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-2.0.xsd"><!--<bean id="conn" value="oracle.jdbc.driver.OracleDriver"></property><property name="url" value="jdbc:oracle:thin:@localhost:1521:Bear"></property><property name="username" value="scott"></property><property name="password" value="tiger"></property></bean><bean id="conn" value="com.microsoft.jdbc.sqlserver.SQLServerDriver"></property><property name="url" value="jdbc:microsoft:sqlserver://localhost:1433"></property><property name="username" value="sa"></property><property name="password" value=""></property></bean> --><bean id="dataSource"  ><property name="driverClassName" value="com.mysql.jdbc.Driver"></property><property name="url" value="jdbc:mysql://localhost:3306/test?characterEncoding=GBK"></property><property name="username" value="root"></property><property name="password" value="test"></property></bean><!-- <bean id="sqlMapClient" ref="dataSource" /></bean> --> <bean id="sqlMapClientTemplate" ref="dataSource" /><property name="configLocation" value="classpath:sqlMapConfig.xml" /></bean></property></bean><bean id="sBookDAO"   ref="sqlMapClientTemplate" />      </bean>          <bean id="sBookServices"   ref="sbookDAO" />          <property name="createProService" ref="createProService" />      </bean>          <bean id="sessionFactory" name="sessionFactory" /></property><property name="configLocation"value="classpath:hibernate.cfg.xml" />        <property name="hibernateProperties"><props><prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop><prop key="hibernate.show_sql">true</prop></props></property></bean><bean id="jbpmConfiguration"       ref="sessionFactory" />          <property name="configuration" value="classpath:org/jbpm/default.jbpm.cfg.xml" />         <property name="createSchema" value="false" />       </bean>      <bean id="jbpmTemplate"ref="jbpmConfiguration" /></bean><bean id="createProService" ref="jbpmTemplate"></property></bean> <!--定义事务管理器 --><bean id="transactionManager"ref="dataSource" /></bean><!-- 定义事务通知--><tx:advice transaction-manager="transactionManager" id="txAdvice"><tx:attributes><tx:method name="save*" propagation="REQUIRED"></tx:method></tx:attributes></tx:advice><!--定义一个切面及切面和事务关联--><aop:config><aop:pointcut id="myPoint" expression="execution(* service..*.*(..))" /><aop:advisor advice-ref="txAdvice" pointcut-ref="myPoint" /></aop:config>  </beans>

在启动tomcat的时候报了以下错误:

读书人网 >软件架构设计

热点推荐