GlassFish
Links
Sample Application using JSF, Spring 2.0, and Java Persistence APIs
Sample
Download
spring-framework-2.0.6-with-dependencies.zipfrom http://www.springframework.org/downloadSpringJPA.zipfrom http://techdayscode.dev.java.net/servlets/ProjectDocumentList?folderID=7555
Setup
Install GlassFish, Install.
Unzip the Spring download and from this copy:
dist/spring.jarlib/jakarta-commons/commons-logging.jarlib/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.zipto a folder. I extracted to:C:\src\SpringJPA\
Open the project in Netbeans.
Resolve the missing project,
SpringJPA-war. This can be found in theSpringJPAproject folder:SpringJPA/SpringJPA-war.Resolve the missing server. You might need to add the GlassFish server you just installed.
Run the project in Netbeans.