Friday, September 27, 2013

The persistence-context-ref-name [org.springframework.data.jpa.repository.support.QueryDslRepositorySupport/entityManager]

The persistence-context-ref-name
[org.springframework.data.jpa.repository.support.QueryDslRepositorySupport/entityManager]

I want to create an 'EJB web service'(ejb) that interacts with 'Spring
DATA JPA' and deployed it on glassfish
When i deploy the application on glassfish it throws this exception.
Could not resolve a persistence unit corresponding to the
persistence-context-ref-name
[org.springframework.data.jpa.repository.support.QueryDslRepositorySupport/entityManager]
in the scope of the module called
[dbaas-1.0-SNAPSHOT-jar-with-dependencies]. Please verify your
application.
My code
@WebService
@Stateless
@Interceptors(SpringBeanAutowiringInterceptor.class)
public class JobServiceImpl implements JobService{
@Inject
JobDaoJpa jobDaoJpa;
}
Someone could tell me, what is the workaroud to fix this problem?

No comments:

Post a Comment