Just tried to get started with spring-jbpm (from cvs), jBPM 3.0.2 and hibernate 3.1.1.
I had problems on spring configuration of jBPM in conjunction with JbpmSchema#createSchema invocation. I always got a "No local data source" exception.
Now I tracked down the problem:
the createSchema() method tries to get a connection via org.hibernate.connection.ConnectionProviderFactory. This one instantiates a new org.springframework.orm.hibernate3.LocalDataSource ConnectionProvider instance. This instance tries to resolve the data source via LocalSessionFactoryBean.getConfigTimeDataSource().
The point is, that a DataSource configured to org.springframework.orm.hibernate3.LocalSessionFac toryBean could not be resolved for that new instance, because the configTimeDataSource property is not available anymore (reset after initialization).
Now, in order to create the jBpm schema, one has to supply database parameters in the hibernate properties and omit the data source.
Note, that accessing a created schema works with a spring configured data source.
Maybe someone has a solution for this issue?