[
https://jira.jboss.org/jira/browse/EJBTHREE-1687?page=com.atlassian.jira....
]
Andrew Lee Rubinger commented on EJBTHREE-1687:
-----------------------------------------------
To reproduce, I'll either need a isolated test (ie. no dependency on java:/cdwDB), or
including a datasource ds.xml that works out-of-the-box.
Also note that community support/development for AS 4.2.2 is no longer taking place; so
I'll be running the test (once isolated) against AS 5.0.0GA or later.
There is no default persistence unit in this deployment.
---------------------------------------------------------
Key: EJBTHREE-1687
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1687
Project: EJB 3.0
Issue Type: Bug
Components: jpa-deployers
Environment: JBoss 4.2.2
Reporter: David Jitendranath
Assignee: Andrew Lee Rubinger
Attachments: MXIntegrationEAR.ear
I get the following exception when my JBoss server starts up.
java.lang.RuntimeException: Illegal @PersistenceUnit on private
javax.persistence.EntityManager gov.usbr.data.cdw.BurdenRateHome.entityManager :There is
no default persistence unit in this deployment.
at
org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182)
Here's my persistence.xml file. Is there any idea what I'm missing?
<persistence
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="integrations">
<jta-data-source>java:/cdwDB</jta-data-source>
<properties>
<property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
</properties>
</persistence-unit>
</persistence>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira