<div dir="ltr">It is not boostrapped from another location. In the meantime, I have been able to declare the objects in a different way in the spring file and the error is not longer there.<div><br></div><div style>Question : I try to configure jbpm + HumanTaskManager using OpenJPA instead of Hibernate but gets this error </div>
<div style><br></div><div style><div>Caused by: &lt;openjpa-2.2.1-r422266:1396819 fatal user error&gt; org.apache.openjpa.persistence.ArgumentException: &quot;<a href="http://org.jbpm.process.audit.VariableInstanceLog.id">org.jbpm.process.audit.VariableInstanceLog.id</a>&quot; declares generator name &quot;variableInstanceLogIdSeq&quot;, but uses the AUTO generation type.  The only valid generator names under AUTO are &quot;uuid-hex&quot; and &quot;uuid-string&quot;.</div>
<div><br></div><div style>Is there a workaround ?</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 11:01 AM, Maciej Swiderski <span dir="ltr">&lt;<a href="mailto:mswiders@redhat.com" target="_blank">mswiders@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Looks like data source is created
      twice. Do you have any other place that bootstraps data source via
      bitronix?<br>
      <br>
      Maciej<br>
      <br>
      W dniu 29.05.2013 07:23, Charles Moulliard pisze:<br>
    </div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I have created a java + spring project to run a HumanTask
          example on Apache Karaf. To instantiate the class, I use
          spring like this </div>
        <div><br>
        </div>
        <div>
          <div>&lt;beans xmlns=&quot;<a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a>&quot;</div>
          <div>       xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;</div>
          <div>       xsi:schemaLocation=&quot;</div>
          <div>       <a href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a>
            <a href="http://www.springframework.org/schema/beans/spring-beans.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans.xsd</a></div>
          <div>    &quot;&gt;</div>
          <div><br>
          </div>
          <div>  &lt;bean id=&quot;humanTaskExample&quot;
            class=&quot;org.jbpm.osgi.example.HumanTaskExample&quot;<br>
          </div>
          <div>        init-method=&quot;configure&quot;/&gt;</div>
          <div><br>
          </div>
          <div>&lt;/beans&gt;</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>public class HumanTaskExample {</div>
          <div><br>
          </div>
          <div>    public static void configure() {</div>
          <div><br>
          </div>
          <div>        RuntimeManager manager =
            getRuntimeManager(&quot;humantask/HumanTask.bpmn&quot;);</div>
        </div>
        <div><br>
        </div>
        <div>...</div>
        <div><br>
        </div>
        <div>
          <div>    private static RuntimeManager
            getRuntimeManager(String process) {</div>
          <div>        // load up the knowledge base</div>
          <div>        JBPMHelper.startUp();</div>
        </div>
        <div><br>
        </div>
        <div>...</div>
        <div><br>
        </div>
        <div>The JBPMHelper class used corresponds to : <a href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-test/src/main/java/org/jbpm/test/JBPMHelper.java" target="_blank">https://github.com/droolsjbpm/jbpm/blob/master/jbpm-test/src/main/java/org/jbpm/test/JBPMHelper.java</a></div>

        <div><br>
        </div>
        <div>But when spring creates the dataSource, I get this error :</div>
        <div><br>
        </div>
        <div>
          <div>Caused by:
            bitronix.tm.resource.ResourceConfigurationException: cannot
            create JDBC datasource named jdbc/jbpm-ds</div>
          <div><span style="white-space:pre-wrap"> </span>at
bitronix.tm.resource.jdbc.PoolingDataSource.init(PoolingDataSource.java:80)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jbpm.osgi.example.JBPMHelper.setupDataSource(JBPMHelper.java:79)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            org.jbpm.osgi.example.JBPMHelper.startUp(JBPMHelper.java:49)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jbpm.osgi.example.HumanTaskExample.getRuntimeManager(HumanTaskExample.java:88)</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.jbpm.osgi.example.HumanTaskExample.configure(HumanTaskExample.java:28)</div>
          <div><span style="white-space:pre-wrap"> </span>at
            sun.reflect.NativeMethodAccessorImpl.invoke0(Native
            Method)[:1.6.0_45]</div>
          <div><span style="white-space:pre-wrap"> </span>at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_45]</div>
          <div><span style="white-space:pre-wrap"> </span>at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_45]</div>
          <div><span style="white-space:pre-wrap"> </span>at
            java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_45]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)[91:org.springframework.beans:3.0.7.RELEASE]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)[91:org.springframework.beans:3.0.7.RELEASE]</div>
          <div><span style="white-space:pre-wrap"> </span>at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)[91:org.springframework.beans:3.0.7.RELEASE]</div>
          <div><span style="white-space:pre-wrap"> </span>... 14
            more</div>
          <div>Caused by: java.lang.IllegalArgumentException: resource
            with uniqueName &#39;jdbc/jbpm-ds&#39; has already been registered</div>
          <div><span style="white-space:pre-wrap"> </span>at
bitronix.tm.resource.ResourceRegistrar.register(ResourceRegistrar.java:74)</div>
          <div><span style="white-space:pre-wrap"> </span>at
bitronix.tm.resource.jdbc.PoolingDataSource.buildXAPool(PoolingDataSource.java:92)</div>
          <div><span style="white-space:pre-wrap"> </span>at
bitronix.tm.resource.jdbc.PoolingDataSource.init(PoolingDataSource.java:76)</div>
        </div>
        <div><br>
        </div>
        <div>Any idea is welcome</div>
        <div><br>
        </div>
        <div>Regards, <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div>Charles Moulliard</div>
          <div>Apache Committer / Sr. Enterprise Architect (RedHat)</div>
          <div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.blogspot.com" target="_blank">http://cmoulliard.blogspot.com</a></div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
rules-dev mailing list
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Charles Moulliard</div><div>Apache Committer / Sr. Enterprise Architect (RedHat)</div><div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.blogspot.com" target="_blank">http://cmoulliard.blogspot.com</a></div>
<div><br></div>
</div>