Re: Unable to locate a single EntityManager. You must provide the persistence unit name as defined in the persistence.xml using the @PersistenceContext annotation.

2015-03-18 Thread Andreas Ernst
fine, but if i persist the entity, it got this error: Unable to locate a single EntityManager. You must provide the persistence unit name as defined in the persistence.xml using the @PersistenceContext annotation. @Inject @PersistenceContext(unitName = "de.aeits_ERDA-CCIS-EJB_

Re: Unable to locate a single EntityManager. You must provide the persistence unit name as defined in the persistence.xml using the @PersistenceContext annotation.

2015-03-17 Thread Felix Scheffer
) and in EntityManagerManagerImpl) Hope that helps. Felix 2015-03-17 11:16 GMT+01:00 Andreas Ernst : > Hi, > > i got a ejb with two entities. > > All is working fine, but if i persist the entity, it got this error: > > Unable to locate a single EntityManager. You must prov

Unable to locate a single EntityManager. You must provide the persistence unit name as defined in the persistence.xml using the @PersistenceContext annotation.

2015-03-17 Thread Andreas Ernst
Hi, i got a ejb with two entities. All is working fine, but if i persist the entity, it got this error: Unable to locate a single EntityManager. You must provide the persistence unit name as defined in the persistence.xml using the @PersistenceContext annotation. @Inject