Where can I find the “custom library” for Eclipse JPA Facet for GlassFish 3.1.2?

I have Eclipse (Indigo) and GlassFish 3.1.2

The "New JPA project" wizard has the error "At least one user library must be selected." But there is nothing on the list.

Is there already a JPA implementation in the GlassFish directory, and should I create a custom library that points to it? Or should I use the download option and get the latest version of Eclipse Link from the Internet?

Just wondering what the “right” way to fix the error is.

Thanks Rob

+7
source share
2 answers

You should have many cans for the JSF2.0 Project.

You can use a library of two types to implement JSF2.0:

1) Mojarra

2) MyFaces

Read this wonderful tutorial:

http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Ftutorial%2FJSFTools_tutorial_JSF20.html

In this tutorial, you'll understand why you need a custom librabry with a specific JSF library.

Good reading.

+4
source

Glassfish contains the necessary JPA implementation files. Adding the following files to the user library should solve the problem.

  • glassfish_dir / Glassfish / modules / javax.persistence.jar
  • glassfish_dir / GlassFish / modules / org.eclipse.persistence.core.jar
  • glassfish_dir / Glassfish / modules / org.eclipse.persistence.jpa.jar
0
source

All Articles