[jboss-jira] [JBoss JIRA] Assigned: (EJBTHREE-1687) There is no default persistence unit in this deployment.
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Thu Jan 15 18:32:04 EST 2009
[ https://jira.jboss.org/jira/browse/EJBTHREE-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lee Rubinger reassigned EJBTHREE-1687:
---------------------------------------------
Assignee: Andrew Lee Rubinger
> 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
More information about the jboss-jira
mailing list