openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1764) Automatically enable connection pooling in unmanaged environments
Date Fri, 15 Oct 2010 02:37:32 GMT


Albert Lee commented on OPENJPA-1764:

Hitting the following exception in 3 tests in TestSwitchConnection after fixing the derby
check condition:

r422266:1022612 fatal user error> org.apache.openjpa.util.UserException: A JDBC Driver
or DataSource class name must be specified in the ConnectionDriverName property.
    at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(
    at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(
    at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(
    at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(
    at org.apache.openjpa.lib.conf.Configurations.configureInstance(
    at org.apache.openjpa.lib.conf.Configurations.configureInstance(
    at org.apache.openjpa.lib.conf.PluginValue.instantiate(
    at org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(
    at org.apache.openjpa.lib.conf.ObjectValue.instantiate(
    at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(
    at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(
    at org.apache.openjpa.persistence.test.AbstractPersistenceTestCase.clear(
    at org.apache.openjpa.persistence.test.AbstractPersistenceTestCase.closeEMF(
    at org.apache.openjpa.persistence.conf.TestSwitchConnection.testDataCache(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Looks like the closeEMF(emf1) in the finally clause of the failing tests still require the
ConnectionDriverName to be available.

> Automatically enable connection pooling in unmanaged environments
> -----------------------------------------------------------------
>                 Key: OPENJPA-1764
>                 URL:
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: jdbc, performance
>    Affects Versions: 2.1.0
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.1.0
>         Attachments: OPENJPA-1764-20100927.diff, OPENJPA-1764-20100928.diff
> When commons-dbcp is present on the classpath and we are running in a JSE or unmanaged
environment, we should automatically configure DriverClassName=org.apache.commons.dbcp.BasicDataSource
and apply some DBCP args (this might be the tricky part, based on the different dbcp args
we have to use today for different databases...)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message