From open-jpa-dev-return-3933-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Wed May 02 19:40:29 2007 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 37389 invoked from network); 2 May 2007 19:40:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 19:40:28 -0000 Received: (qmail 16590 invoked by uid 500); 2 May 2007 19:40:34 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 16566 invoked by uid 500); 2 May 2007 19:40:34 -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 16557 invoked by uid 99); 2 May 2007 19:40:34 -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 12:40:34 -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 12:40:26 -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 l42Jdv5n017200 for ; Wed, 2 May 2007 21:40:01 +0200 Message-ID: <4638E907.6060803@objectweb.org> Date: Wed, 02 May 2007 21:39:51 +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> In-Reply-To: <6DBB752E-0041-4C79-8362-0F909EDF371F@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 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 > >