openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhakar <sudha...@co.brazos.tx.us>
Subject using OpenJPA with eclipse RCP plugin
Date Mon, 17 Sep 2007 17:25:07 GMT
I realize this is more of an eclipse related question. But was hoping
someone here has already tackled this.

I have some DAO classes that user OpenJPA. This is packaged as a jar and
I can use the jar in a regular Java application to connect and query the
database. I then created an Eclipse RCP plugin frmo this jar file. When
I launch the plugin inside an RCP application I get a

Caused by: <openjpa-1.0.0-r420667:568756 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:72)
    at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:803)
    at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:568)


Looks like OpenJPA cannot locate the persistence.xml file. Seems like
eclipse class loading issues. If someone's already figured out how to
get this to work I'd appreciate any pointers.

Thanks

Mime
View raw message