[jBPM] - org.jbpm.api.JbpmException: no standard-transaction in environment
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"org.jbpm.api.JbpmException: no standard-transaction in environment"
To view the discussion, visit: http://community.jboss.org/message/572412#572412
--------------------------------------------------------------
Hi,
I am trying to intgerate jBPM4.4 with Spring
When I start the server I am getting the following message:
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initialFillService' defined in class path resource [com/myComapany/resources/spring/demo/applicationContext-service.xml]: Invocation of init method failed; nested exception is org.jbpm.api.JbpmException: no standard-transaction in environment
Caused by: org.jbpm.api.JbpmException: no standard-transaction in environment
Here is my jbm.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<string name="spring.cfg" value="jbpm/jbpm-spring-config.xml" />
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService"><ref object="newTxRequiredCommandService" /></field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<!-- Here we needed to change the transaction interceptor -->
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</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>
<authentication />
<id-generator />
<types resource="jbpm.variable.types.xml" />
<address-resolver />
<business-calendar>
<monday hours="9:00-12:00 and 12:30-17:00" />
<tuesday hours="9:00-12:00 and 12:30-17:00" />
<wednesday hours="9:00-12:00 and 12:30-17:00" />
<thursday hours="9:00-12:00 and 12:30-17:00" />
<friday hours="9:00-12:00 and 12:30-17:00" />
<holiday period="01/07/2008 - 31/08/2008" />
</business-calendar>
<command-service>
<retry-interceptor/>
<environment-interceptor/>
<spring-transaction-interceptor current="true"/>
</command-service>
<mail-template name='task-notification'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hi ${task.assignee},
Task "${task.name}" has been assigned to you.
${task.description}
Sent by JBoss jBPM
]]></text>
</mail-template>
<mail-template name='task-reminder'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hey ${task.assignee},
Do not forget about task "${task.name}".
${task.description}
Sent by JBoss jBPM
]]></text>
</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>
What should I change in order to run the application?
Thanks in advance.
Hi,
I am trying to intgerate jBPM4.4 with Spring
When I start the server I am getting the following message:
*SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener*
*org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initialFillService' defined in class path resource [com/myComapany/resources/spring/demo/applicationContext-service.xml]: Invocation of init method failed; nested exception is org.jbpm.api.JbpmException: no standard-transaction in environment*
*Caused by: org.jbpm.api.JbpmException: no standard-transaction in environment*
Here is my jbm.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.jpdl.cfg.xml" />
<import resource="jbpm.identity.cfg.xml" />
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm.bpmn.cfg.xml" />
<string name="spring.cfg" value="jbpm/jbpm-spring-config.xml" />
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService"><ref object="newTxRequiredCommandService" /></field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<!-- Here we needed to change the transaction interceptor -->
<command-service>
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</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>
<authentication />
<id-generator />
<types resource="jbpm.variable.types.xml" />
<address-resolver />
<business-calendar>
<monday hours="9:00-12:00 and 12:30-17:00" />
<tuesday hours="9:00-12:00 and 12:30-17:00" />
<wednesday hours="9:00-12:00 and 12:30-17:00" />
<thursday hours="9:00-12:00 and 12:30-17:00" />
<friday hours="9:00-12:00 and 12:30-17:00" />
<holiday period="01/07/2008 - 31/08/2008" />
</business-calendar>
<command-service>
<retry-interceptor/>
<environment-interceptor/>
<spring-transaction-interceptor current="true"/>
</command-service>
<mail-template name='task-notification'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hi ${task.assignee},
Task "${task.name}" has been assigned to you.
${task.description}
Sent by JBoss jBPM
]]></text>
</mail-template>
<mail-template name='task-reminder'>
<to users="${task.assignee}" />
<subject>${task.name}</subject>
<text><![CDATA[Hey ${task.assignee},
Do not forget about task "${task.name}".
${task.description}
Sent by JBoss jBPM
]]></text>
</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>
What should I change in order to run the application?
Thanks in advance. :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/572412#572412]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[jBPM] - jbpm5 demo installer not rendering form
by Anand Prakash
Anand Prakash [http://community.jboss.org/people/anandintouch] created the discussion
"jbpm5 demo installer not rendering form"
To view the discussion, visit: http://community.jboss.org/message/571316#571316
--------------------------------------------------------------
I'm using jbpm5 demo installer and trying to run the demo project,but problem here is when I start the process using "Process Overview "in jbpm-console, screen comes up but it doesn't show the form.I'm getting following form rendering error.
Error is-> The requested URL /gwt-console-server/rs/form/process/com.sample.evaluation/render was not found on this server
I'm using jbpm-console UI to start the process .
So it seems like gwt-consle-server is called using resteasy web service which doesn't render the page.
So my question is below-
1. If I use jbpm5 from my web-app without using jbpm-console,will it work properly(task creaion and viewing/submitting task) or some issue is there in that call ?
I got same error while using jbpm4.4,i was using hello world sample web-app,and I was able to start process and create task but when i click specific person task,form was not getting rendered.
So please tell am I missing any configuration change,I've changed jboss port to 9090 instead of 8080(default one)
2. How to resolve aforesaid mentioned rendering problem in jbpm-console.
Anand
mailto:anandintouch@gmail.com anandintouch(a)gmail.com
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571316#571316]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months