2
我正在使用EJB 3.0開發Web項目,每當EclipseLink嘗試與數據庫進行交互時,它說我正在使用的模式不存在(它是確實是)。爲什麼EclipseLink認爲我的數據庫模式不存在?
我得到一個巨大的,無益的堆棧跟蹤從GlassFish的2.1,這與開始的:
EclipseLink, version: Eclipse Persistence Services - 1.1.0.r3639-SNAPSHOT
file:/C:/Documents%20and%20Settings/nick/.personalDomain/personalDomain/applications/j2ee-apps/ScienceEar/lib/ScienceJpa-1.0-SNAPSHOT.jar-SciencePU login successful
Local Exception Stack:
Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.1.0.r3639-SNAPSHOT): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Schema 'BEAMLINE' does not exist
Error Code: -1
Call: SELECT exp_id, fac_family, public_viewable, group_name, created_ts, status, exp_num, date_received, exp_type, title, updated_ts, text_only_title, experiment_url, proposed_eec, start_of_prep FROM beamline.eec_exp_toc
Query: ReadAllQuery(name="Experiment.findAll" referenceClass=Experiment sql="SELECT exp_id, fac_family, public_viewable, group_name, created_ts, status, exp_num, date_received, exp_type, title, updated_ts, text_only_title, experiment_url, proposed_eec, start_of_prep FROM beamline.eec_exp_toc")
我會發布更多的堆棧跟蹤,但它確實無聊。爲什麼EclipseLink無法查看架構?
更多信息:「束線」是我使用的唯一模式。堆棧跟蹤中的SQL是由NamedQuery生成的,這是我的程序中與該數據庫的第一次交互(以及所有第一次JPA交互)。