Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-172

Error parsing persistence.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta3
    • 7.0.0.Beta2
    • JPA / Hibernate
    • None

      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.

        1. efp.ear
          2.66 MB
          Prasad Deshpande
        2. Hello.java
          0.1 kB
          Prasad Deshpande
        3. HelloBean.java
          0.2 kB
          Prasad Deshpande

              smarlow1@redhat.com Scott Marlow
              prasad.deshpande Prasad Deshpande (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: