[
https://issues.jboss.org/browse/JBAS-9298?page=com.atlassian.jira.plugin....
]
Scott Marlow commented on JBAS-9298:
------------------------------------
The NPE fix should help you get further (will be in beta3). I just deployed your test app
again to see how it looks. It didn't completely deploy since
"jboss.data-source.java:jdbc/eFpDataSource" was not resolved. To learn that:
1. I started jconsole
2. clicked on mbeans tab
3. Opened jboss.msc/container/jboss-as/operations/dumpServicesToString
4. Pressed dumpServicesToString button in right hand pane
5. Selected all in resulting dialog and pasted same into a text editor.
6. In text editor, searched for "mode ACTIVE state DOWN". which found the
service "jboss.persistenceunit."efp.ear/ejb.jar#efp".
7. Looked at the three dependences of
"jboss.persistenceunit."efp.ear/ejb.jar#efp", they are
{jboss.data-source.java:jdbc/eFpDataSource, jboss.txn.TransactionManager,
jboss.txn.TransactionSynchronizationRegistry}.
I changed your persistence.xml to refer to java:/H2DS and that resolved that missing
dependency.
I also removed the hibernate jars from your ear/lib folder. I'm interested in support
packaging the Hibernate jars with the app but don't at the moment. After making these
two changes, efp.ear deployed correctly.
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
Fix For: 7.0.0.Beta3
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