<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    while i intergrate the spring tomcat mysql jbpm botronix,i meet this exception
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/jiang_hoo">星兰 蒋</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/780139#780139">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p> 05/12 22:16:16,767[main] ERROR tool.hbm2ddl.SchemaExport.execute&#160; - schema export unsuccessful</p><p>java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource jdbc/jbpm-ds in state ACCESSIBLE with usage count 1 wrapping a JDBC LrcXAConnection on <a class="jive-link-external-small" href="mailto:com.mysql.jdbc.Connection@4e19b97c">com.mysql.jdbc.Connection@4e19b97c</a> on a JDBC LrcConnectionHandle on a JDBC LrcXAResource in state NO_TX</p><p> at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)</p><p> at bitronix.tm.resource.jdbc.JdbcConnectionHandle.createStatement(JdbcConnectionHandle.java:187)</p><p> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p><p> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p><p> at java.lang.reflect.Method.invoke(Unknown Source)</p><p> at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)</p><p> at $Proxy1.createStatement(Unknown Source)</p><p> at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:254)</p><p> at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)</p><p> at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:353)</p><p> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)</p><p> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)</p><p> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)</p><p> at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)</p><p> at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)</p><p> at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)</p><p> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)</p><p> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)</p><p> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)</p><p> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p><p> at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)</p><p> at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)</p><p> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)</p><p> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)</p><p> at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)</p><p> at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)</p><p> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)</p><p> at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)</p><p> at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)</p><p> at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)</p><p> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)</p><p> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)</p><p> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)</p><p> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)</p><p> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)</p><p> at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)</p><p> at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)</p><p> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)</p><p> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)</p><p> at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)</p><p> at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)</p><p> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)</p><p> at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)</p><p> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)</p><p> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)</p><p> at org.apache.catalina.core.StandardService.start(StandardService.java:525)</p><p> at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)</p><p> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)</p><p> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p><p> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p><p> at java.lang.reflect.Method.invoke(Unknown Source)</p><p> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)</p><p> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)</p><p>Caused by: bitronix.tm.internal.BitronixSystemException: resource 'jdbc/jbpm-ds' cannot be used outside XA transaction scope. Set allowLocalTransactions to true if you want to allow this and you know your resource supports this.</p><p> at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:79)</p><p> at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)</p><p> ... 54 more</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/780139#780139">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>