Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jpa 为什么EclipseLink认为我的数据库模式没有';不存在?_Jpa_Schema_Persistence_Ejb_Eclipselink - Fatal编程技术网

Jpa 为什么EclipseLink认为我的数据库模式没有';不存在?

Jpa 为什么EclipseLink认为我的数据库模式没有';不存在?,jpa,schema,persistence,ejb,eclipselink,Jpa,Schema,Persistence,Ejb,Eclipselink,我正在使用EJB3.0进行一个web项目,每当EclipseLink试图与数据库交互时,它都会说我使用的模式不存在(它确实存在) 我从GlassFish 2.1中获得了一个巨大的、无用的堆栈跟踪,它从以下内容开始: EclipseLink, version: Eclipse Persistence Services - 1.1.0.r3639-SNAPSHOT file:/C:/Documents%20and%20Settings/nick/.personalDomain/personalDom

我正在使用EJB3.0进行一个web项目,每当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交互)。

明白了-我正在直接连接数据库,而我应该使用GlassFish的连接池