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

Zbyněk Roubalík (Commented) (JIRA) jira-events at lists.jboss.org
Tue Jan 10 04:27:09 EST 2012


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

Zbyněk Roubalík commented on AS7-3231:
--------------------------------------

Hi Scott,
it looks good, it is working for me now, thanks. 

I think we can submit changes.

                
> 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