Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2049

hbm2ddl.auto doesn't work within AS

XMLWordPrintable

      The enterprise tests fail against hypersonic because the tables cannot generated:

      2009-02-18 20:53:38,181 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (http-127.0.0.1-8080-1) Running hbm2ddl schema expo
      rt
      2009-02-18 20:53:38,213 DEBUG [org.hibernate.tool.hbm2ddl.SchemaExport] (http-127.0.0.1-8080-1) import file not found: /imp
      ort.sql
      2009-02-18 20:53:38,213 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (http-127.0.0.1-8080-1) exporting generated schema
      to database
      2009-02-18 20:53:38,215 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (http-127.0.0.1-8080-1) schema export unsuccessful
      java.sql.SQLException: You cannot set autocommit during a managed transaction!
      at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java
      :598)
      at org.jboss.resource.adapter.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:458)
      at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnecti
      onHelper.java:60)
      at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:252)
      at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)
      at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:343)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)

              rhn-support-hbraun Heiko Braun
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: