• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
nav katoch
Ranch Hand
Posts: 246
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?..
 
nav katoch
Ranch Hand
Posts: 246
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 489
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you use Tables => Entity approach?..
i think you should define the User class in your persistence.xml..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic