Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 42808 invoked from network); 16 Oct 2009 15:23:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 15:23:54 -0000 Received: (qmail 23614 invoked by uid 500); 16 Oct 2009 15:23:54 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 23561 invoked by uid 500); 16 Oct 2009 15:23:54 -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 23549 invoked by uid 99); 16 Oct 2009 15:23:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 15:23:54 +0000 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; Fri, 16 Oct 2009 15:23:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D400234C045 for ; Fri, 16 Oct 2009 08:23:31 -0700 (PDT) Message-ID: <30419824.1255706611311.JavaMail.jira@brutus> Date: Fri, 16 Oct 2009 08:23:31 -0700 (PDT) From: "Fay Wang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Resolved: (OPENJPA-1351) java.lang.ClassCastException: javax.naming.Reference incompatible with javax.sql.DataSource In-Reply-To: <1765785220.1255563151335.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fay Wang resolved OPENJPA-1351. ------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 Assignee: Fay Wang > java.lang.ClassCastException: javax.naming.Reference incompatible with javax.sql.DataSource > ------------------------------------------------------------------------------------------- > > Key: OPENJPA-1351 > URL: https://issues.apache.org/jira/browse/OPENJPA-1351 > Project: OpenJPA > Issue Type: Bug > Reporter: Fay Wang > Assignee: Fay Wang > Fix For: 2.0.0 > > Attachments: OPENJPA-1351.patch > > > The following exception is thrown when a downlevel jcc driver is used: > java.lang.ClassCastException: javax.naming.Reference incompatible with javax.sql.DataSource > at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory2(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(Unknown Source) > at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(Unknown Source) > at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(Unknown Source) > at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(Unknown Source) > at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(Unknown Source) > at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(Unknown Source) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.