wood burning stoves 2.0*
The moose likes Web Services and the fly likes Need help with web service + jpa combo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Need help with web service + jpa combo" Watch "Need help with web service + jpa combo" New topic
Author

Need help with web service + jpa combo

John Semler
Greenhorn

Joined: Dec 11, 2010
Posts: 13
I was putting the finishing touch on my logic, but something happen and I was never able to recover - getting the following error mostly now. Been racking my brains for 6 hours.

The class in question below does have the @Entity annotation so I don't know where to go with this. I'm relatively new at this so I appreciate any help!

I'm developing under Linux using NetBeans 7.2 and GlassFish 3.1.2.



ZIPCode.java (blows up at line 31):

ZIPCodes.java (auto-generated):


persistence.xml:

glassfish-resources.xml:
John Semler
Greenhorn

Joined: Dec 11, 2010
Posts: 13
I'm also getting a lot of these errors. Keeps adding to the server log when I'm not doing anything. Probably a significant clue.



No error with another JPA module running in an EJB (it uses mysql_ephemeris_db_rootPool).
John Semler
Greenhorn

Joined: Dec 11, 2010
Posts: 13
Made the following changes:

1) Switched to Container Managed Persistence (see code below).
2) Copied "mysql-connector-java-5.1.18-bin.jar" to "/home/glassfish/glassfish/domains/domain1/lib/ext"

Works perfectly!

ZIPCode.java

persistence.xml

glassfish-resources.xml
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with web service + jpa combo
 
Similar Threads
One To One Mapping not working, plz help me out
SQLGrammarException
Hibernate example error message
Exception while running hibernate - nubie
Problem retrieving data from relational databse using persistence