| 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
|
 |
 |
|
|
subject: Need help with web service + jpa combo
|
|
|