GlassFish
Links
Sample Application using JSF, Spring 2.0, and Java Persistence APIs
Sample
Download
spring-framework-2.0.6-with-dependencies.zip
from http://www.springframework.org/downloadSpringJPA.zip
from http://techdayscode.dev.java.net/servlets/ProjectDocumentList?folderID=7555
Setup
Install GlassFish, Install.
Unzip the Spring download and from this copy:
dist/spring.jar
lib/jakarta-commons/commons-logging.jar
lib/log4j/log4j-1.2.14.jar
…to your glassfish installation lib directory,
glassfish/lib
.Open Netbeans
In the Tools menu, select Library Manager…
Add a new Library, call it
Spring
.Add the 3 Jars you copied to
glassfish/lib
Extract
SpringJPA.zip
to a folder. I extracted to:C:\src\SpringJPA\
Open the project in Netbeans.
Resolve the missing project,
SpringJPA-war
. This can be found in theSpringJPA
project folder:SpringJPA/SpringJPA-war
.Resolve the missing server. You might need to add the GlassFish server you just installed.
Run the project in Netbeans.