EclipseLink Core 2.5.2 missing Import-Package javax.xml.bind

自闭症网瘾萝莉.ら 提交于 2019-12-12 06:14:04

问题


The EclipseLink bundle (org.eclipse.persistence/org.eclipse.persistence.core/2.5.2) is missing the import statement javax.xml.bind in its header entry of Import-Package. I get the same error described here: Glassfish 4 moxy eclipselink 2.5.2 oxm object graph troubles

I add to declare javax.xml.bind as bootdelegated in OSGi, otherwise EclipseLink MOXy is not working properly.

Is it possible to fix this?


回答1:


Fixed this bug in EclipseLink 2.5.3. Also, EclipseLink 2.6.0 does not contain this issue.

Thanks for creating the request.




回答2:


You can fix missing import with fragment bundles, see http://wiki.osgi.org/wiki/Fragment

If the host bundle has the following in its manifest:

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

then your fragment manifest should have:

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


来源:https://stackoverflow.com/questions/27621064/eclipselink-core-2-5-2-missing-import-package-javax-xml-bind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!