当前选择的JAXB库提供程序无效

当前选择的JAXB库提供程序无效

本文介绍了当前选择的JAXB库提供程序无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Elipse Neon with JDK 1.8 and run time environment GlassFish 4.1.,我试图将其添加到项目构型配置JAXB 2.2中,但是出现错误:The currently selected JAXB library provider is invalid.

I'm using Elipse Neon with JDK 1.8 and run time environment GlassFish 4.1. I have tried to add to my project facet configuration JAXB 2.2 however I'm getting the error: The currently selected JAXB library provider is invalid.

我可以做什么,或者应该使用什么库才能使用JAXB配置.此外,我还提到我正在将JAXB用于实现Jersey实现的JAX-RS项目(本来是内置于Glassfish中的)

What I can do, or what library I should use in order to use JAXB configuration. Additionally I mention that I'm using JAXB for a JAX-RS project with Jersey implementation (natively build into Glassfish)

此致

推荐答案

JAX-RS支持通过JAXB自动创建XMLJSON.您 需要显式添加任何罐子作为JAXB配置的一部分.

JAX-RS supports the automatic creation of XML and JSON via JAXB. You are NOT require to explicitly add any jars as part of JAXB configuration.

这篇关于当前选择的JAXB库提供程序无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 18:42