JBoss Community

Re: persistence JBPM5.3 on tomcat with mysql

created by Kehua Gao in jBPM - View the full discussion

thank you,Ted.

It is what I were confused.I try to do  according to the method you provide.it do not work.orginal code is  <jta-data-source>jdbc/testDS1</jta-data-source>,

the error is  "Could not find datasource: jdbc/jbpm-ds", remove the <jta-data-source>jdbc/jbpm-ds</jta-data-source>, the error is still "Could not find datasource: jdbc/jbpm-ds".

 

context.xml includes:

<ResourceLink name="jdbc/jbpm-ds"   type="javax.sql.DataSource"    global="jdbc/jbpm-ds"/>

 

web.xml includes:

<resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/jbpm-ds</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>

 

server.xml includes:

<Resource auth="Container" name="jdbc/jbpm-ds"    type="javax.sql.DataSource"   password="demo"    driverClassName="com.mysql.jdbc.Driver"    maxIdle="2"    maxWait="5000"    username="demo"    url="jdbc:mysql://localhost:3306/jbpm-demo"    maxActive="4"/>
 

the datasource has been set up,the error is still "Could not find datasource: jdbc/jbpm-ds".

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community