我一直在尝试创建我的第一个RESTful execrcise using。起初我遇到错误JDBC资源不存在,我创建了JDBC资源,与glassfish-resources.xml
匹配的JDBC连接池。
现在我遇到了另一个问题:
“javax.persistence.PersistenceException:Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DatabaseException
内部异常:java.sql.SQLSyntaxErrorException:表/视图 'PLAYER'不存在。“
有人可以帮助我到底应该在哪里纠正这个问题。
以下是persitence.xml和其他服务列表的视图。
GlassFish日志:
警告:
StandardWrapperValve [com.playerentity.service.ApplicationConfig]: servlet的Servlet.service() com.playerentity.service.ApplicationConfig引发了异常错误 42X05:表/视图'PLAYER'不存在。在 org.apache.derby.client.am.ClientStatement.completeSqlca(未知 来源)at org.apache.derby.client.net.NetStatementReply.parsePrepareError(未知 来源).. 45更多
答案 0 :(得分:0)
这就是说数据库中不存在该表....如果它位于unix环境中,它可能区分大小写