On Oct 27, 2010, at 8:02 AM, Matthias Wessendorf wrote:

> Hi,
> 
> I am seeing this error, when running OpenEJB 3.1.3 + OpenWebBeans +
> OpenJPA (2.x and 1.x) in Tomcat 6.x:
> 
> org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
> DataSource class name must be specified in the ConnectionDriverName
> property.
> 
> 
> the persistence.xml is like:
>  <persistence-unit name="foobar" >
>    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
>    <jta-data-source>java:openejb/Resource/My DataSource</jta-data-source>
>    <non-jta-data-source>java:openejb/Resource/My
> UnmanagedDataSource</non-jta-data-source>
> 
>    <class>net.wessendorf.User</class>
> 
>   <properties>
>      <property name="openjpa.Log" value="DefaultLevel=TRACE" />
>      <property name="openjpa.jdbc.SynchronizeMappings"
> value="buildSchema(ForeignKeys=true)" />
>    </properties>
>  </persistence-unit>
> </persistence>
> 
> 
> With an older version, like OpenEJB 3.1.2 I was never seeing that
> error above.. and no, I never specified the
> ConnectionDriverName with the above (non-)jta-data-source settings.
> 
> Am I missing some configuration, or is there an issue regarding this ?

Not familiar with that error.  If you can post some log output and the 
stacktrace that might shed some light.


-David

Reply via email to