This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
The annotation PersistenceContext will not be recognized by WebSphere Application Server v7.0
posted 4 years ago
I am using JPA 2.0 and Hibernate (version 3.5) as persistence provider. Have all the required jar files in classpath.
I am trying to use @PersistenceContext annotation in my Service class and getting below error.
Problem description: The annotation PersistenceContext will not be recognized by WebSphere Application Server v7.0 runtimes. Set the UseEJB61FEPScanPolicy custom property to true in the MANIFEST.MF file for this module.
As I am digging deep into this issue found that the deployment descriptor (application.xml) has J2EE(1.4) not JavaEE (1.5) version but changing this didn't help either . What is the reason for this error?