9

I'm trying to add mysql connector dependency to kie workbench. I added it by uploading the jar to the artifact repository and adding the dependency by going to project settings. When the service task that uses the connector executes, it's not able to load the mysql's Driver class. Here's more detail on how I'm using the service task - Service task using Hibernate

When the service task execute I get this message on the workbench - Unexpected error encountered : [com.sample.bpmn.hello:36 - GetData:3] -- Unable to build entity manager factory

When I look at wildfly's server.log, it seems the jar didn't get added properly - java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver

When I add the dependency on the workbench, I see the following warnings. I'm not able to figure out what they mean -
Verification of class com.mysql.jdbc.integration.c3p0.MysqlConnectionTester failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly.
Verification of class com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly.
Verification of class com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker failed and will not be available for authoring. Please check the necessary external dependencies for this project are configured correctly.

Please let me know if more info is needed. Much appreciated.

[PS] - I must say that I just got started with hibernate as well with no prior experience. So it could be a basic thing I'm missing there.

Community
  • 1
  • 1
exe
  • 317
  • 1
  • 10
  • How did you setup your enivironment. Did you use the demo install scripts or did you manually set it up? – Mike Aug 27 '15 at 19:07
  • The environment was setup by someone else using docker. The workbench itself is actually running off of mysql instead of h2. I added my persistence unit to the same persistence.xml(under jbpm console war). The difference is 'transaction type' for PU used for jbpm is `JTA` while I'm using `RESOURCE_LOCAL`. The one using JTA has data source defined in a separate file while I'm defining the source as properties - – exe Aug 27 '15 at 19:15

0 Answers0