This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Fridah Kamau

Greenhorn
+ Follow
since Apr 17, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fridah Kamau

@Ron McLeod,
Thanks for offering your help. I have managed to correct the problem by creating a GlassFish object and having the correct configurations.
I'm trying to save a record to the database, no success.

My Entity Class


My Auto generated model classes: StudentFacade


Interface: StudentFacadeLocal


AbstractFacade


On Save, i get this error:

Warning:   StandardWrapperValve[StudentServlet]: Servlet.service() for servlet StudentServlet threw exception
javax.ejb.EJBException
at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:752)
at com.sun.ejb.containers.EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:702)
.......
t com.sun.proxy.$Proxy461.create(Unknown Source)
at controller.StudentServlet.processRequest(StudentServlet.java:63)
at controller.StudentServlet.doPost(StudentServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:706)
.........
Caused by: java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface javax.validation.constraints.NotNull: @javax.validation.constraints.NotNull(message={javax.validation.constraints.NotNull.message}, groups=[], payload=[])
at sun.reflect.annotation.TypeAnnotationParser.mapTypeAnnotations(TypeAnnotationParser.java:360)