Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 21271 invoked from network); 15 Dec 2008 13:36:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2008 13:36:07 -0000 Received: (qmail 11787 invoked by uid 500); 15 Dec 2008 13:36:17 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 11756 invoked by uid 500); 15 Dec 2008 13:36:17 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 11747 invoked by uid 99); 15 Dec 2008 13:36:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 05:36:17 -0800 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; Mon, 15 Dec 2008 13:36:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 28D4A234C3D9 for ; Mon, 15 Dec 2008 05:35:44 -0800 (PST) Message-ID: <1582491554.1229348144162.JavaMail.jira@brutus> Date: Mon, 15 Dec 2008 05:35:44 -0800 (PST) From: "Janko Heilgeist (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-4468) elements are interpreted relatively to EAR root In-Reply-To: <556591642.1229345984212.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/GERONIMO-4468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Janko Heilgeist updated GERONIMO-4468: -------------------------------------- Attachment: (was: geronimo-jarfile.tar.gz) > elements are interpreted relatively to EAR root > ---------------------------------------------------------- > > Key: GERONIMO-4468 > URL: https://issues.apache.org/jira/browse/GERONIMO-4468 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Affects Versions: 2.1.3 > Reporter: Janko Heilgeist > Attachments: my-ear-1.0-SNAPSHOT.ear > > > The elements in a persistence.xml are wrongly interpreted as relative to the EAR's root. > EJB 3.0 persistence spec, section 6.2: > {quote} > [...] A persistence unit is defined by a persistence.xml file. The jar file or directory whose META-INF directory contains the persistence.xml file is termed the root of the persistence unit. [...] > {quote} > EJB 3.0 persistence spec, section 6.2: > {quote} > One or more JAR files may be specified using the jar-file elements [...] Such JAR files are specified relative to the root of the persistence unit [...]. > {quote} > The attached EAR is correctly verified by the Glassfish verifier. Deploying it on Geronimo 2.1.3 or 2.2-SNAPSHOT results in a successful deployment, while on the console OpenJPA throws exceptions because it tries to resolve the jar-file paths relative to the EAR's root: > {quote} > org.apache.openjpa.persistence.PersistenceException: $HOME/geronimo-tomcat6-javaee5-2.1.3/repository/com/heilgeist/testcase/geronimo/jarfile/my-ear/1.0-SNAPSHOT/my-ear-1.0-SNAPSHOT.ear/my-entities1-1.0-SNAPSHOT.jar (No such file or directory) > org.apache.openjpa.persistence.PersistenceException: $HOME/geronimo-tomcat6-javaee5-2.2-SNAPSHOT/repository/com/heilgeist/testcase/geronimo/jarfile/my-ear/1.0-SNAPSHOT/my-entities2-1.0-SNAPSHOT.jar (No such file or directory) > {quote} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.