[jboss-user] [EJB 3.0] - There is no default persistence unit in this deployment - Il

davestar do-not-reply at jboss.com
Wed Jan 14 17:10:56 EST 2009


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>
      
         
         
      
   </persistence-unit>




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201952#4201952

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201952



More information about the jboss-user mailing list