EclipseLink Core 2.5.2缺少Import-Package javax.xml.bind

时间:2014-12-23 13:09:03

标签: osgi eclipselink moxy

EclipseLink包(org.eclipse.persistence / org.eclipse.persistence.core / 2.5.2)在javax.xml.bind的标头条目中缺少import语句Import-Package。我得到了同样的错误: Glassfish 4 moxy eclipselink 2.5.2 oxm object graph troubles

我在OSGi中添加声明javax.xml.bind为bootdelegated,否则EclipseLink MOXy无法正常工作。

有可能解决这个问题吗?

2 个答案:

答案 0 :(得分:1)

您可以使用片段捆绑包修复缺少的导入,请参阅http://wiki.osgi.org/wiki/Fragment

如果主机包在其清单中包含以下内容:

Bundle-SymbolicName: org.eclipse.persistence.core
Bundle-Version: 2.5.2

那么你的片段清单应该有:

Bundle-SymbolicName: org.eclipse.persistence.core.myfragment
Fragment-Host: org.eclipse.persistence.core; bundle-version="2.5.2"
Import-Package: javax.xml.bind

答案 1 :(得分:0)

修复了EclipseLink 2.5.3中的这个错误。 此外,EclipseLink 2.6.0不包含此问题。

感谢您创建请求。