[jboss-jira] [JBoss JIRA] (AS7-3231) Property jboss.entity.manager.factory.jndi.name not working

Zbyněk Roubalík (Created) (JIRA) jira-events at lists.jboss.org
Mon Jan 9 15:36:09 EST 2012


Property jboss.entity.manager.factory.jndi.name not working
-----------------------------------------------------------

                 Key: AS7-3231
                 URL: https://issues.jboss.org/browse/AS7-3231
             Project: Application Server 7
          Issue Type: Bug
          Components: JPA / Hibernate
    Affects Versions: 7.1.0.CR1
            Reporter: Zbyněk Roubalík
            Assignee: Scott Marlow
             Fix For: 7.1.0.Final


If there is specified property jboss.entity.manager.factory.jndi.name in persistence.xml file, it isn't possible to deploy application using this file.

I've create test for this issue:
https://github.com/zroubalik/jboss-as/blob/emfBind/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/basic/EntityManagerFactoryTestCase.java

Error on output from this tests:
21:15:38,732 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."jpa_emfactory.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."jpa_emfactory.jar".INSTALL: Failed to process phase INSTALL of deployment "jpa_emfactory.jar"
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
	at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
Caused by: java.lang.NullPointerException
	at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:329)
	at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleJarDeployment(PersistenceUnitDeploymentProcessor.java:139)
	at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:120)
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
	... 5 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list