ejb « Default « JPA Q&A





1. there is no default persistence unit in this deployment    stackoverflow.com

i recieve the error below after creating a new EJB bean:

> java.lang.RuntimeException: Illegal
> @PersistenceUnit on private
> javax.persistence.EntityManager
> com.mgt.ejb.session.dao.directdebit.PWDDIDetailsDAOBean.mEntityManager
> :There is no default persistence unit
> in this deployment.   at
> org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182)
> ...