I use EJB3 and the same sample work well with an data source repository with
SQL Server driver, but with mysql no

this is my persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0"
        xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";>
    <persistence-unit name="TeamPU">
        <description>Team</description>
       
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
        <jta-data-source>plancPool</jta-data-source>
    </persistence-unit>
</persistence>


Do you know if Mysql works well with apache geronimo?









Jacek Laskowski wrote:
> 
> On 11/7/07, ivanrc <[EMAIL PROTECTED]> wrote:
> 
>>  I´m using pache Geronimo 2.0.2 and I´ve created a MySQL database pool
>> with
>> driver mysql-connector-java/3.1.13 and also I´ve tryied with driver
>> mysql-connector-java/5.1.5
>>
>> When I try to use in ejbs, I obtain an exception like this:
> ...
>> Caused by: java.lang.NullPointerException
>>         at
>> org.tranql.connector.jdbc.ManagedJDBCConnection.localTransactionStart(ManagedJDBCConnection.java:81)
> 
> Hi,
> 
> Is it a EJB 2.1 or EJB 3.0 application? How did you create the pool?
> Do you use any geronimo-*.xml descriptors? What do they look like?
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apache-Geronimo-2.0.2-and-Mysql-data-base-pool-tf4763948s134.html#a13629143
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to