Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- TX Service not configured

- TX Service not configured

2007-06-11       - By wikiwack

 Back
Hello all -

I'm a new user of jbpm and am trying to execute the database tutorial in the
user's guide --> http://docs.jboss.com/jbpm/v3.2/userguide/html/tutorial.html
#databaseexample.

I've set up my example to use MySql with the following hibernate.cfg.xml
settings:


 |     <!-- hibernate dialect -->
 |     <property name="hibernate.dialect">org.hibernate.dialect
.MySQLInnoDBDialect</property>
 |
 |     <!-- JDBC connection properties (begin) === -->
 |     <property name="hibernate.connection.driver_class">com.mysql.jdbc
.Driver</property>
 |     <property name="hibernate.connection.url">jdbc:mysql://localhost:3306
/jbpm32</property>
 |     <property name="hibernate.connection.username">jbossjbpm</property>
 |     <property name="hibernate.connection.password">jbossjbpm</property>
 |     <!-- ==== JDBC connection properties (end) -->
 |    
 |     <property name="hibernate.cache.provider_class">org.hibernate.cache
.HashtableCacheProvider</property>
 |     <property name="hibernate.transaction.factory_class">org.hibernate
.transaction.JDBCTransactionFactory</property>
 |

I've configured my jbpm.cfg.xml file as follows:

 |   <jbpm-context>
 |     <service name="persistence" factory="org.jbpm.persistence.db
.DbPersistenceServiceFactory">
 |       <field name="isTransactionEnabled"><false /></field>
 |     </service>
 |   </jbpm-context>
 |  
 |   <string name="resource.hibernate.cfg.xml" value="jBPM.hibernate.cfg.xml"
/>
 |

I build the MySQL database using the following script: "http://wiki.jboss.org
/wiki/attach?page=JbpmOnTomcat%2Fjbpm.jpdl.mysql.sql"

When executing the test script I get the following error:

 | 14:41:40,138 ERROR [Services] problem closing service 'persistence'
 | org.jbpm.JbpmException: no jbpm tx service configured
 |   at org.jbpm.persistence.db.DbPersistenceService.isRollbackOnly
(DbPersistenceService.java:388)
 |   at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService
.java:210)
 |   at org.jbpm.svc.Services.close(Services.java:222)
 |   at org.jbpm.JbpmContext.close(JbpmContext.java:139)
 |   at test.example.workflow.HelloWorldDbTest.deployProcessDefinition
(HelloWorldDbTest.java:122)
 |   at test.example.workflow.HelloWorldDbTest.testSimplePersistence
(HelloWorldDbTest.java:88)
 |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
.java:39)
 |   at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
 |   at java.lang.reflect.Method Source code of java.lang.reflect.Method(Method.java:585)
 |   at junit.framework.TestCase Source code of junit.framework.TestCase(TestCase.java:154)
 |   at junit.framework.TestCase Source code of junit.framework.TestCase(TestCase.java:127)
 |   at junit.framework.TestResult Source code of junit.framework.TestResult$1.protect(TestResult.java:106)
 |   at junit.framework.TestResult Source code of junit.framework.TestResult(TestResult.java:124)
 |   at junit.framework.TestResult Source code of junit.framework.TestResult(TestResult.java:109)
 |   at junit.framework.TestCase Source code of junit.framework.TestCase(TestCase.java:118)
 |   at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run
(JUnit3TestReference.java:128)
 |   at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution
.java:38)
 |   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner Source code of org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
(RemoteTestRunner.java:460)
 |   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner Source code of org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
(RemoteTestRunner.java:673)
 |   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner Source code of org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
(RemoteTestRunner.java:386)
 |   at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner Source code of org.eclipse.jdt.internal.junit.runner.RemoteTestRunner
(RemoteTestRunner.java:196)
 |

I've tried searching for information on the TX service, but haven't found
anything.  Also, as you can see in the above jbpm.cfg.xml file - I tried
turning off transactions by setting isTransactionEnabled to false.  I still get
the same exception.

I'm using jbpm 3.2 with the following jvm:

java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

Any help would be greatly appreciated.

Thanks,

- Ryan

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4053253
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.