aries-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Ward <timothyjw...@apache.org>
Subject RE: Aries/OpenJPA strange error - A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName?
Date Tue, 22 Nov 2011 09:36:38 GMT

Hi,

That's the error Open JPA gives you when the DataSource fails. This is probably because your
JNDI lookup is failing. Is there a valid DataSource at jdbc/dupcheckcts ?

Regards,

Tim Ward
-------------------
Apache Aries PMC member & Enterprise OSGi advocate
Enterprise OSGi in Action (http://www.manning.com/cummins)
-------------------


Date: Mon, 21 Nov 2011 15:00:43 -0600
Subject: Aries/OpenJPA strange error - A JDBC Driver or DataSource class name must be specified
in the ConnectionDriverName?
From: mattmadhavan@gmail.com
To: user@aries.apache.org

Hello,I'm using Apache Aries 0.4 (from IBM WAS) and OpenJPA 2.1.1-SNAPSHOT also from IBM.
I have a data source defined in WAS: Jndi Name : jdbc/dupcheckcts

I have my persistence.xml as follows:
<?xml version="1.0" encoding="UTF-8"?><persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
	<persistence-unit name="DuCk_jpa" transaction-type="JTA">		
		<description>Persistence xxxxxxxxx</description>				<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
	

	    <jta-data-source>jdbc/dupcheckcts</jta-data-source>		
		<class>com.xxxx.entity.Clx</class>		<class>com.xxxx.entity.Clxxxxxl</class>
		<class>com.xxxx.entity.Clxxxxxt</class>		<class>com.xxxx.entity.Clxxxxxx</class>

..........		<properties>			<property name="openjpa.Log" value="DefaultLevel=TRACE,
Runtime=TRACE, Tool=TRACE, SQL=TRACE" />
			<property name="openjpa.RuntimeUnenhancedClasses" value="unsupported" />		
		    <property name="openjpa.Compatibility" value="StrictIdentityValues=false" /> 
  	</properties>

When I deploy the EBA and  start the app I'm getting the following error:
Caused by: <openjpa-2.1.1-SNAPSHOT-r422266:1141200 fatal user error> org.apache.openjpa.persistence.ArgumentException:
A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property.
	at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:76)
at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:844)
	at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:602)
at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1510)


Any ideas please?
Thanks in advance!
ThanksMatt 		 	   		  
Mime
View raw message