Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 46697 invoked from network); 2 May 2007 20:12:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 20:12:07 -0000 Received: (qmail 82185 invoked by uid 500); 2 May 2007 20:12:13 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 82158 invoked by uid 500); 2 May 2007 20:12:13 -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 82149 invoked by uid 99); 2 May 2007 20:12:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 13:12:13 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 88.191.20.47 is neither permitted nor denied by domain of Florent.BENOIT@objectweb.org) Received: from [88.191.20.47] (HELO atlantis.warpzone.org) (88.191.20.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 13:12:06 -0700 Received: from [192.168.1.55] (voyager.warpzone.org [82.228.185.79]) by atlantis.warpzone.org (8.13.7/8.13.7/Debian-2) with ESMTP id l42KBcX6017779 for ; Wed, 2 May 2007 22:11:39 +0200 Message-ID: <4638F079.3030202@objectweb.org> Date: Wed, 02 May 2007 22:11:37 +0200 From: Florent BENOIT User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: open-jpa-dev@incubator.apache.org Subject: Re: Can openjpa scan directories for classes (such as WEB-INF/classes)? References: <6DBB752E-0041-4C79-8362-0F909EDF371F@yahoo.com> <4638E907.6060803@objectweb.org> <27AA95BE-1DC7-4FD2-9F7E-1E834AC4A0C9@yahoo.com> In-Reply-To: <27AA95BE-1DC7-4FD2-9F7E-1E834AC4A0C9@yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on atlantis.warpzone.org X-Virus-Scanned: ClamAV 0.88.3/3021/Thu Apr 5 13:05:27 2007 on atlantis.warpzone.org X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.1 David, I think I provided some tips for the solution but no attached patch. In the comments of this bug, I explained why OpenJPA take the wrong path with exploded archive. But I'm interested in any solution :) Best Regards, Florent David Jencks wrote: > I think so too :-) > > I take it you don't have a solution for this? I will see what I can > come up with. Thanks for your detailed analysis! > > david jencks > > On May 2, 2007, at 12:39 PM, Florent BENOIT wrote: > >> Hi, >> >> I reported a bug a couple of months ago. >> I think that it is the same issue: >> http://issues.apache.org/jira/browse/OPENJPA-148 >> >> Regards, >> >> Florent >> >> David Jencks wrote: >>> I'm having some trouble getting openjpa to work properly with >>> persistence units directly in unpacked wars in geronimo, and before >>> I spend a lot of time looking for dead ends I wonder if anyone knows >>> if there are some circumstances in which openjpa can scan for >>> classes in an unpacked directory such as WEB-INF/classes? Right now >>> in the geronimo integration openjpa seems to be trying to read the >>> directory as if it is an xml file, which fails with a SAX exception: >>> >>> Caused by: java.io.IOException: org.xml.sax.SAXException: >>> file:/Users/david/geronimo/svn/(.....).war/WEB-INF/classes/ >>> [Location: Line: 1, C: 1]: org.xml.sax.SAXParseException: Content is >>> not allowed in prolog. >>> at >>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parseNewResource(XMLMetaDataParser.java:376) >>> >>> at >>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:315) >>> >>> at >>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:292) >>> >>> at >>> org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:266) >>> >>> at >>> org.apache.openjpa.persistence.PersistenceMetaDataFactory.parseXML(PersistenceMetaDataFactory.java:234) >>> >>> >>> thanks >>> david jencks >>> >>> >> > > >