wood burning stoves 2.0*
The moose likes Web Services and the fly likes Need help with implementing PUT annotation in my REST service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply locked New topic
Author

Need help with implementing PUT annotation in my REST service

Jack Rooney
Greenhorn

Joined: Dec 04, 2012
Posts: 14
Hello,

I am using MAven,Hibernate 3/JPA ,Eclipse to implement a PUT method for populating a Mysql db.

Here is my POJO


Here is my main class.


Here is my Hibernate.Util.


Here is my SessionFactory Context Listener class


When I try to run this using Tomcat Server, i get the following error.


I am very new to this. Kindly let me know what I am doing wrong. I trying to insert a
record into a mysql db using the above values. Kindly help me out.

Thanks,
Jack
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Let's continue the discussion in your first post on this issue.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need help with implementing PUT annotation in my REST service
 
Similar Threads
DBCP could not obtain an idle db connection, pool exhausted
Spring primer: application context won't initialize my beans
Best way to setup / configure Tomcat 7 web app with Hibernate 3 / JPA
Session creation falied - error
Problem using Annotations in hibernate