JBoss Community

Re: MySQL database connection error

created by Zoltan Papp in jBPM - View the full discussion

Okay, let's speak english.

 

My persistance.xml in a JPA/CDI project:

 

<datasources xmlns="http://www.jboss.org/ironjacamar/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">

    <!-- The datasource is bound into JNDI at this location. We reference

       this in META-INF/persistence.xml -->

   <datasource jndi-name="java:jboss/datasources/sample-multi-tierDS"

      pool-name="{artifactId}" enabled="true"

      use-java-context="true">

        <connection-url>jdbc:mysql://localhost:3306/bigfilesystem?useUnicode=true&amp;autoReconnect=true&amp;characterEncoding=UTF-8</connection-url>

        <driver>com.mysql</driver>

        <security>

            <user-name>username</user-name>

            <password>password</password>

        </security>

   </datasource>

</datasources>

 

Did you install mysql driver to JBoss modules/com/mysql subdirectory?

Reply to this message by going to Community

Start a new discussion in jBPM at Community