openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (Created) (JIRA)" <>
Subject [jira] [Created] (OPENJPA-2073) MappingTools requires live connection to DB2 server to retrieve default schema name
Date Fri, 11 Nov 2011 07:36:51 GMT
MappingTools requires live connection to DB2 server to retrieve default schema name

                 Key: OPENJPA-2073
             Project: OpenJPA
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.2.0
            Reporter: Albert Lee
            Assignee: Albert Lee
             Fix For: 2.2.0

OPENJPA-1975 deferred extraction of default schema name for DB2 from connectedConfiguration()
to getDefaultSchemaName(). This change requires a live connection to the DB2 server. As a
result, the following exception will be observed if no connection is available and failed
the MappingTool -sa action:

517  TestJPA  TRACE  [main] openjpa.MetaData - Clearing metadata repository "org.apache.openjpa.jdbc.meta.MappingRepository@f00301e1".
Exception in thread "main" <openjpa-2.2.0-SNAPSHOT-r422266:1183674 fatal user error>
org.apache.openjpa.util.UserException: A JDBC Driver or
 DataSource class name must be specified in the ConnectionDriverName property. Available properties
in configuration are "org.apache.openjpa
        at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(
        at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(
        at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(
        at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDataSource(
        at org.apache.openjpa.jdbc.sql.DB2Dictionary.getConnection(
        at org.apache.openjpa.jdbc.sql.DB2Dictionary.getDefaultSchemaName(
        at org.apache.openjpa.jdbc.schema.SchemaTool.add(
        at org.apache.openjpa.jdbc.meta.MappingTool.record(
        at org.apache.openjpa.jdbc.meta.MappingTool$
        at org.apache.openjpa.lib.conf.Configurations.launchRunnable(
        at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(
        at org.apache.openjpa.jdbc.meta.MappingTool.main(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message