0 Replies Latest reply on Aug 11, 2009 9:47 AM by lpiccoli.lucio.asteriski.com

    bpm hbm2ddl schema update causing problems

    lpiccoli.lucio.asteriski.com

      Seam 2.1.2
      Jboss 5.1.0



      Hi all,


      the seam BPM seams to attempting to do a schema update while it is attached to a current transaction. and the following error occurs.


      I would expect the bpm schema to be deployed a boot time not when running a bpm process.


      Q. Why is seam doing a bpm  schema update when running a bpm task?


      any help is appreciated.


      17:42:01,707 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no
       JNDI name configured
      17:42:01,713 INFO  [SchemaUpdate] Running hbm2ddl schema update
      17:42:01,715 INFO  [SchemaUpdate] fetching database metadata
      17:42:01,717 ERROR [SchemaUpdate] could not get database metadata
      java.sql.SQLException: You cannot set autocommit during a managed transaction!
              at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcA
      utoCommit(BaseWrapperManagedConnection.java:598)
              at org.jboss.resource.adapter.jdbc.WrappedConnection.setAutoCommit(Wrapp
      edConnection.java:458)
              at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper
      .prepare(SuppliedConnectionProviderConnectionHelper.java:60)
              at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168
      )