Eclipselink JPARS异常“ECLIPSELINK_OXM_XML_KEY not found” [英] Eclipselink JPARS exception "ECLIPSELINK_OXM_XML_KEY not found"

查看:124
本文介绍了Eclipselink JPARS异常“ECLIPSELINK_OXM_XML_KEY not found”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Glassfish 3.1.2和Eclipselink 2.4.1(至少我认为是这样!)和derby(来自Glassfish,作为JTA资源)。

我的应用程序中的实体通过XXXX:8080 / myapp / persistence /,我得到以下错误:请注意:Eclipselink持久性服务报告为2.3.2版本,这对我来说也很陌生。看到我的配置版本2.4.1(见下文)。

有什么想法?

  INFO:JTS5014:可恢复的JTS实例,serverId = [100] 
INFO:[EL信息]:2013-04-05 17:11:09.876 - ServerSession(478107) - file:Server / glassfish3 / glassfish / domains / domain1 / eclipseApps / stats / WEB-INF / classes / _onLocal登录成功

$ b FINE:为持久性单元创建JAXBContext时引发异常[onLocal] :[javax.xml.bind.JAXBException
- 带有链接的异常:
[EclipseLink-50055](Eclipse持久性服务 - 2.3.2.v20111125-r10461):org.eclipse.persistence.exce ptions.JAXBException
异常说明:创建DynamicJAXBContext时出错:在属性图中找不到ECLIPSELINK_OXM_XML_KEY,或者map为空。]]
INFO:[EL Info]:2013-04-05 17:11:10.191- -ServerSession(478107) - File:Server / glassfish3 / glassfish / domains / domain1 / eclipseApps / tracktron_stats / WEB-INF / classes / _tracktronLocal注销成功

FINE:您正在请求类型[[* *]]来自JPA RS。
FINE:exception_marshalling_persitence_unit(此消息没有英文翻译。)


解决方案主要原因是此处使用的Glassfish版本(V3.1.2):该项目是使用eclipselink 2.4.1构建的,但Glassfish自带旧版本(请参阅日志)。这不是很容易解决,但有另一个stackoverflow解决方案,最终工作:

Glassfish 3 Classloader Sequence

I am using Glassfish 3.1.2 and Eclipselink 2.4.1 (at least I thought so!) and derby (from Glassfish as JTA resource).

When accessing the Entities in my app via "XXXX:8080/myapp/persistence/, I get the following error. Please note: the "Eclipselink Persistence Service" is reported with version 2.3.2, which looks strange to me, too. I would expect to see my configured version 2.4.1 (see below).

Any ideas?

INFO: JTS5014: Recoverable JTS instance, serverId = [100]
INFO: [EL Info]: 2013-04-05 17:11:09.876--ServerSession(478107)--file:Server/glassfish3/glassfish/domains/domain1/eclipseApps/stats/WEB-INF/classes/_onLocal login successful


FINE: An Exception was thrown while creating a JAXBContext for persistence unit [onLocal]: [javax.xml.bind.JAXBException
 - with linked exception:
[Exception [EclipseLink-50055] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.JAXBException
Exception Description: Error creating DynamicJAXBContext: ECLIPSELINK_OXM_XML_KEY not found in properties map, or map was null.]]
INFO: [EL Info]: 2013-04-05 17:11:10.191--ServerSession(478107)--file:Server/glassfish3/glassfish/domains/domain1/eclipseApps/tracktron_stats/WEB-INF/classes/_tracktronLocal logout successful

FINE: You are requesting types [[*/*]] from JPA RS.
FINE: exception_marshalling_persitence_unit (There is no English translation for this message.)

解决方案

The main reason is the Glassfish version used here (V3.1.2): The project was built with eclipselink 2.4.1, but Glassfish comes with older versions (see log). This was not so easy to fix, but there is another stackoverflow solution that finally worked:

Glassfish 3 Classloader Sequence

这篇关于Eclipselink JPARS异常“ECLIPSELINK_OXM_XML_KEY not found”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆