Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 82606 invoked from network); 6 Feb 2007 03:04:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2007 03:04:28 -0000 Received: (qmail 57869 invoked by uid 500); 6 Feb 2007 03:04:34 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 57706 invoked by uid 500); 6 Feb 2007 03:04:33 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 57504 invoked by uid 99); 6 Feb 2007 03:04:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 19:04:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Feb 2007 19:04:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CC13C7142E2 for ; Mon, 5 Feb 2007 19:04:05 -0800 (PST) Message-ID: <4191812.1170731045833.JavaMail.jira@brutus> Date: Mon, 5 Feb 2007 19:04:05 -0800 (PST) From: "Patrick Linskey (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Resolved: (OPENJPA-60) Specifying the wrong persistence implementation in persistence.xml leads to misleading error message In-Reply-To: <14512223.1159382990020.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-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey resolved OPENJPA-60. ------------------------------------ Resolution: Fixed > Specifying the wrong persistence implementation in persistence.xml leads to misleading error message > ---------------------------------------------------------------------------------------------------- > > Key: OPENJPA-60 > URL: https://issues.apache.org/jira/browse/OPENJPA-60 > Project: OpenJPA > Issue Type: Bug > Reporter: David Ezzio > Priority: Minor > > If "kodo.persistence.PersistenceProviderImpl" is specified instead of "org.apache.openjpa.persistence.PersistenceProviderImpl", a misleading error message results that suggests that the persistence.xml file is missing or cannot be found. > enhance: > [java] Exception in thread "main" java.util.MissingResourceException: org.apache.openjpa.persistence.PersistenceProductDerivation:java.util.MissingResourceException: The specified XML resource "META-INF/persistence.xml" for persistence unit "null" can't be found in your class path. > [java] at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(ProductDerivations.java:217) > [java] at org.apache.openjpa.lib.conf.ProductDerivations.load(ProductDerivations.java:135) > [java] at org.apache.openjpa.lib.conf.Configurations.populateConfiguration(Configurations.java:198) > [java] at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:3468) > [java] at org.apache.openjpa.enhance.PCEnhancer.main(PCEnhancer.java:3441) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.