JBoss Community

Re: Problem with hibernate configuration for JBPM

created by jbpm_4_user in JBoss Tools - View the full discussion

Sry, the configuration and error message wasn't added with previous post:

 

<property name="hibernate.connection.url">${database.url}</property>
<property name="hibernate.connection.username">${database.username}</property>
<property name="hibernate.connection.password">${database.password}</property>

 

And the error message:

[WARN ] 23.08.11 16:00:40 - org.hibernate.connection.UserSuppliedConnectionProvider - No connection properties specified - the user must supply JDBC connections

[ERROR] 23.08.11 16:00:41 - org.jbpm.pvm.internal.tx.HibernateSessionResource - hibernate transaction begin failed.  closing hibernate session

java.lang.UnsupportedOperationException: The user must supply a JDBC connection

    at org.hibernate.connection.UserSuppliedConnectionProvider.getConnection(UserSuppliedConnectionProvider.java:54)

    at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

    at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

    at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)

    at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)

    at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)

    at org.jbpm.pvm.internal.tx.HibernateSessionResource.<init>(HibernateSessionResource.java:44)

    at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:87)

    at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)

    at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)

    at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455)

    at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429)

    at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339)

    at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704)

    at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132)

    at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123)

    at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207)

    at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196)

    at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:44)

    at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

    at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)

    at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community