[ 
https://issues.apache.org/jira/browse/OPENJPA-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840187#action_12840187
 ] 

Kevin Sutter commented on OPENJPA-1546:
---------------------------------------

Thanks for debugging the problem, Dmitri.  Thanks for taking a first look at 
the patch, Donald.  Overall, the updated patch looks good.  I'd adjust the 
spelling of "parced" and format it more consistently.  But, other than that, it 
looks good.  Thanks.

> 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.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.

Reply via email to