This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1" Watch "Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1" New topic
Author

Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1

nav katoch
Ranch Hand

Joined: May 02, 2008
Posts: 246

Hi all,

I am getting the following error message while running ant script after deploying:


Please guide me to fix this error message. I will appreciate your inputs.

Thanks,

Naveen
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

The message error told that :
Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 'USERS' does not exist.


how do you configure your Entity class and persistence.xml?..


Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
nav katoch
Ranch Hand

Joined: May 02, 2008
Posts: 246

Hi Leonardo,

Thank you so much for your time and inputs. The following are the files for you to look at as I think I am missing something:-

persistence.xml

tables.sql

User.java

Thanks again for your time,

Naveen
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

Do you use Tables => Entity approach?..
i think you should define the User class in your persistence.xml..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error message - chapter 9 of ejb 3 in action using glassfish server 2.1
 
Similar Threads
Exception [TOPLINK-8006]
Can't use @SqlResultSetMapping
EJB 3.0 - Error while persisting one-one unidirectional relation
Getting error chapter 8 of Ejb 3 in action using glassfish server 2.1
deployment descriptor (ejb-jar.xml) problem