I’ve been using JPA with myeclipse 7.5 for some time now and for whatever reason my project got messed up so blew away the project directory, created a new project and added my existing code and pages.
Each time I run I get an error:
java.lang.ClassNotFoundException: javax.persistence.Persistence
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Which doesn’t make any sense because I am using J2EE 5 so the class should be included.
Anyway when I try to add use Add Capabilities JPA is greyed out. I also can’t seem to find where I define the persistence unit, I guess that would be my first starting point.
Thanks for any advice.
Chris