From dev-return-7707-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Wed Apr 02 22:11:53 2008 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 6640 invoked from network); 2 Apr 2008 22:11:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 22:11:53 -0000 Received: (qmail 86559 invoked by uid 500); 2 Apr 2008 22:11:53 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 86395 invoked by uid 500); 2 Apr 2008 22:11:53 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 86385 invoked by uid 99); 2 Apr 2008 22:11:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 15:11:53 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 22:11:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A094D234C0BD for ; Wed, 2 Apr 2008 15:09:24 -0700 (PDT) Message-ID: <188993173.1207174164656.JavaMail.jira@brutus> Date: Wed, 2 Apr 2008 15:09:24 -0700 (PDT) From: "Albert Lee (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-552) Do not recognize Connection* properties in persistence.xml in appl server container In-Reply-To: <2116123180.1207159888502.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Albert Lee updated OPENJPA-552: ------------------------------- Attachment: OPENJPA-552.11x.patch OPENJPA-552.10x.patch Patch attached. Running maven test and TCK. > Do not recognize Connection* properties in persistence.xml in appl server container > ----------------------------------------------------------------------------------- > > Key: OPENJPA-552 > URL: https://issues.apache.org/jira/browse/OPENJPA-552 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 1.0.2, 1.0.3, 1.1.0 > Reporter: Albert Lee > Assignee: Albert Lee > Fix For: 1.0.3, 1.1.0 > > Attachments: OPENJPA-552.10x.patch, OPENJPA-552.11x.patch > > > If Connection* properties are specified in a persistence unit and there is no , or default data source defined, > PU name : dweb24 > Root URL : file:/D:/dev/jdk/runtimes/base_v7_i7/profiles/AppSrv01/installedApps/kingoftownNode03Cell/dweb24Ear.ear/dweb24.war/WEB-INF/classes/ > Tx Type : JTA > desc : > Provider : com.ibm.websphere.persistence.PersistenceProviderImpl [WSJPA-1.1.0-SNAPSHOT-r1118:1345, openjpa-1.1.0-SNAPSHOT-r420667:636531] > JTA DS : <> | null > nonJTA DS : <> | null > exclude Cls : false > file URLs : [] > mappigFNm : [] > managedClasses : [entities.Department,entities.Employee] > Properties : {openjpa.ConnectionDriverName=com.ibm.db2.jcc.DB2Driver, openjpa.ConnectionPassword=db2admin, openjpa.ConnectionUserName=db2admin, openjpa.ConnectionURL=jdbc:db2://supermatrix:50000/SAMPLE:retrieveMessagesFromServerOnGetMessage=true;, openjpa.jdbc.Schema=ADMINISTRATOR} > then the following exception will be thrown from DataSourceFactory.newDataSource method: > 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:72) > at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:776) > at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:553) > at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1251) > at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:505) > at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:430) > This called path is initiated from PersistenceProviderImpl.createContainerEntityManagerFactory. Consequentially, transformer is not being registered in the appl server container and no load time entity enhancement is performed. > openjpa.Runtime: Warn: An error occurred while registering a ClassTransformer with dweb24. The error is logged along with this warning. Load-time class transformation will not be available. > Albert Lee. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.