Hi,all:
jbpm4 with spring Errors:

org.jbpm.api.JbpmException: No platformTransaction manager defined.
        
org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:33)
        
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
        
org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)


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: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/tx 
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
    http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd";>

        
    <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" 
destroy-method="close">
                
                
                
                
        
        
                
                
                        
                                org.hibernate.dialect.OracleDialect
                                true
                                none
                        
                
                
                
                        
                                classpath:jbpm.execution.hbm.xml
                                classpath:jbpm.repository.hbm.xml
                                classpath:jbpm.task.hbm.xml
                                classpath:jbpm.history.hbm.xml
                                classpath:jbpm.identity.hbm.xml
                        
                
        
        
         
                
        
        
        
                <constructor-arg value="jbpm.cfg.xml" />
        
        
        <bean id="processEngine" factory-bean="jbpmConfiguration" 
factory-method="buildProcessEngine" />
        <bean id="repositoryService" factory-bean="processEngine" 
factory-method="getRepositoryService" />
        <bean id="executionService" factory-bean="processEngine" 
factory-method="getExecutionService" />
    <bean id="taskService" factory-bean="processEngine" 
factory-method="getTaskService"/>   
    <bean id="historyService" factory-bean="processEngine" 
factory-method="getHistoryService"/>   
    <bean id="identityService" factory-bean="processEngine" 
factory-method="getIdentityService"/>
 


jbpm.cfg.xml

<?xml version="1.0" encoding="UTF-8"?>

<jbpm-configuration>

        
        
        
    
        <process-engine-context>
                <repository-service />
                <repository-cache />
                <execution-service />
                <history-service />
                <management-service />
                <identity-service />
                <task-service />
<command-service>
      <retry-interceptor />
      <environment-interceptor />
      <spring-transaction-interceptor current="true" />
</command-service>
                

                <!-- Added spring as read-context -->
                <script-manager default-expression-language="juel"
                        default-script-language="juel"
                        read-contexts="execution, environment, process-engine, 
spring"
                        write-context="">
                        <script-language name="juel" 
factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
                </script-manager>

                

                <id-generator />
                

                <address-resolver />

                <business-calendar>
                        
                        
                        
                        
                        
                        
                </business-calendar>

                <mail-template name='task-notification'>
                        
                        ${task.name}
                        <![CDATA[Hi ${task.assignee},Task "${task.name}" has 
been assigned to you.${task.description}Sent by JBoss jBPM]]>
                </mail-template>

                <mail-template name='task-reminder'>
                        
                        ${task.name}
                        <![CDATA[Hey ${task.assignee},Do not forget about task 
"${task.name}".${task.description}Sent by JBoss jBPM]]>
                </mail-template>
        </process-engine-context>
        <transaction-context>
                <repository-session />
                <db-session />

                <message-session />
                <timer-session />
                <history-session />
                <mail-session>
                        <mail-server>
                                <session-properties 
resource="jbpm.mail.properties" />
                        </mail-server>
                </mail-session>

                <!-- Need to set explicitly that we don't want jbpm to create 
sessions -->
                <hibernate-session current="true" />
                
        </transaction-context>
</jbpm-configuration>


my jbpm.cfg.xml have errors?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264955#4264955

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264955
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to