[jboss-jira] [JBoss JIRA] Commented: (JBAS-9298) Error parsing persistence.xml

Scott Marlow (JIRA) jira-events at lists.jboss.org
Wed Apr 13 10:14:33 EDT 2011


    [ https://issues.jboss.org/browse/JBAS-9298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595279#comment-12595279 ] 

Scott Marlow commented on JBAS-9298:
------------------------------------

The above quote from the spec is correct, I'm searching to understand better what is meant by the 1.0 note.  My goal is still make sure we handle persistence unit deployment correctly.  I need to better understand what they mean by their comment about 1.0.

> Error parsing persistence.xml
> -----------------------------
>
>                 Key: JBAS-9298
>                 URL: https://issues.jboss.org/browse/JBAS-9298
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JPA / Hibernate
>    Affects Versions: 7.0.0.Beta2
>         Environment: JDK 1.6_22, Jboss 7.0.0 Beta2. windows xp sp3
>            Reporter: Prasad Deshpande
>            Assignee: Scott Marlow
>         Attachments: efp.ear, Hello.java, HelloBean.java
>
>
> There are 2 problems if I try to deploy EE5 confirming ear to 7.0.0 Beta2, standalone configuration.
> 1. If I put persistence.xml if ejb.jar, it throws following exception:
> 15:04:36,000 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."efp.ear"."ejb.jar".PARSE: org.jboss.msc.service.StartException in service jbo
> ss.deployment.unit."efp.ear"."ejb.jar".PARSE: Failed to process phase PARSE of subdeployment "ejb.jar" of deployment "efp.ear"
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:108)
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1344)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
>         at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
> Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/D:/jboss-7.0.0.Beta2/bin/content/efp.ear/ejb.jar/META-INF/persistence.xml"
>         at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:190)
>         at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.handleJarDeployment(PersistenceUnitParseProcessor.java:99)
>         at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.deploy(PersistenceUnitParseProcessor.java:79)
>         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:102)
>         ... 4 more
> Caused by: java.lang.NullPointerException
>         at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parsePU(PersistenceUnitXmlParser.java:151)
>         at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parse(PersistenceUnitXmlParser.java:116)
>         at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:186)
>         ... 7 more
> 2. If I put persistence.xml in any of jar in lib directory of application, that persistence.xml can not be found.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list