[
https://issues.apache.org/jira/browse/OPENJPA-1764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921203#action_12921203
]
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(DataSourceFactory.java:76)
at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:842)
at
org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:600)
at
org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1486)
at
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:518)
at
org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:443)
at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:104)
at
org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)
at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:949)
at
org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:940)
at
org.apache.openjpa.persistence.test.AbstractPersistenceTestCase.clear(AbstractPersistenceTestCase.java:301)
at
org.apache.openjpa.persistence.test.AbstractPersistenceTestCase.closeEMF(AbstractPersistenceTestCase.java:233)
at
org.apache.openjpa.persistence.conf.TestSwitchConnection.testDataCache(TestSwitchConnection.java:195)
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: https://issues.apache.org/jira/browse/OPENJPA-1764
> 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.