[JBoss jBPM] - Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
by contactnagesh
Hi Burr,
I am new to JBPM, wanted to setup Jbpm on Jboss 4.0.5. I have followed the below steps.
1. Downloaded latest Jbpm 3.1.2 kit from the net.
2. Extracted the files.
3. get the jbpm.sar and jbpm.war files from the location \jbpm-server\server\jbpm\deploy and moved <jboss-home>\server\default\deploy location.
4. start the server using run.bat
org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1418)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:235)
at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:521)
at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32)
at org.jbpm.svc.Services.getService(Services.java:136)
at org.jbpm.svc.Services.getMessageService(Services.java:172)
at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112)
at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79)
Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1408)
... 14 more
5. Enven i tried to remove the file from jbpm.war dom4j-1.6.1.jar. That gives the same problem for me.
is the above steps which I am following are correct.
Could you help me to setup the Jbpm in Jboss 4.0.5. Please also provide the comlete steps which you are following.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245092#4245092
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245092
16 years, 8 months
[JBoss jBPM] - Spring integration: No platformTransaction manager defined e
by abecevello
I'm trying to integrate jBPM into an existing Spring web application, however I have been unsuccessful in running a workflow with the Spring integrations.
Environment: Tomcat 6, Spring 2.5, jBPM 4.0, Hibernate 3.2.6.GA, Oracle 10g, running on Java 1.6 with Eclipse 3.4 (MyEclipse 7.5).
I have tried to configure jBPM with Spring according to the instructions in the developer guide (http://docs.jboss.com/jbpm/v4.0/devguide/html_single/#springIntegration), but so far it hasn't worked.
Tomcat will start successfully and the application can be used until any workflows are executed. Then I get the error:
| org.jbpm.api.JbpmException: No platformTransaction manager defined.
| at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:60)
| at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
| at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
| at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:89)
| at com.apption.jbpm.JBPMHelloWorld.doStuff(JBPMHelloWorld.java:56)
my.jbpm.cfg.xml (located on classpath):
| <?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 />
| <job-executor />
|
| <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>
|
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
| <message-session />
| <timer-session />
| <history-session />
| <transaction />
| <hibernate-session current="true" />
| </transaction-context>
| </jbpm-configuration>
|
Relevant spring application context:
| <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="my.jbpm.cfg.xml" />
| </bean>
|
| <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" />
|
I can't figure out why this error is happening. I have an appropriate Spring sessionFactory defined in Spring, as well as the usual Spring hibernateTemplate and HibernateTransactionManager:
| <tx:annotation-driven transaction-manager="txManager" />
|
| <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
| <property name="sessionFactory" ref="sessionFactory"/>
| <property name="jdbcExceptionTranslator" ref="jdbcExceptionTranslator"/>
| </bean>
|
| <bean id="txManager"
| class="org.springframework.orm.hibernate3.HibernateTransactionManager">
| <property name="sessionFactory" ref="sessionFactory" />
| <property name="prepareConnection">
| <value>false</value>
| </property>
| </bean>
|
Does anyone know why this error is happening and how to fix it?
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245086#4245086
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245086
16 years, 8 months