Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 52204 invoked from network); 2 Mar 2010 15:22:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 15:22:54 -0000 Received: (qmail 49776 invoked by uid 500); 2 Mar 2010 15:22:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 49752 invoked by uid 500); 2 Mar 2010 15:22:50 -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 49744 invoked by uid 99); 2 Mar 2010 15:22:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 15:22:50 +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; Tue, 02 Mar 2010 15:22:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54628234C1EF for ; Tue, 2 Mar 2010 15:22:27 +0000 (UTC) Message-ID: <1493437406.8521267543347326.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 15:22:27 +0000 (UTC) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1546) OpenJPA doesn't work as internal JPA inside web applicaion in JBoss AS In-Reply-To: <1885541847.6721267537047160.JavaMail.jira@brutus.apache.org> 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-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-1546: ---------------------------------- Attachment: OPENJPA-1546-13x.diff same patch for 13x > OpenJPA doesn't work as internal JPA inside web applicaion in JBoss AS > ---------------------------------------------------------------------- > > Key: OPENJPA-1546 > URL: https://issues.apache.org/jira/browse/OPENJPA-1546 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0-beta2 > Environment: JBoss AS 5.1 > Reporter: Dmitri Babaev > Attachments: OPENJPA-1546-13x.diff, OPENJPA-1546.diff, openjpa-jboss.patch, stack-trace.txt > > > OpenJPA fails to complete the initialization phase if it is used as an internal library inside web application and this application is deployed to the JBoss AS. The problem is that PersistenceMetaDataFactory tries to parse the directory as an unparsed XML file. It takes the URL to this XML file from the list of the unparsed files. But the URL that points to a directory is added to this list. This URL is added to the unparsed files in the mapPersistentTypeNames method of the PersistenceMetaDataFactory class. > I've attached the stack trace of the original error and the patch with possible fix. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.