• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

The annotation PersistenceContext will not be recognized by WebSphere Application Server v7.0

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Greenhorn
Posts: 20
Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have installed the OSGi 1.0 and JPA 2.0 Feature Pack?
http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/
 
The knights of nee want a shrubbery. And a tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!