Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jaxb project in eclipse indigo

When I create a jaxb project in eclipse indigo, it tells me "The currently selected JAXB library provider is invalid" which is eclipselink2.3.0-Indigo I tried the javanet download jars with no success. i can though try the examples in the demo described here: http://wiki.eclipse.org/EclipseLink/Examples/MOXy/GettingStarted with the exception of the part on MOXy customization. No error when i run, it just does not seem to be doing anything.

What am i missing. Thanks in advance. Kamal

like image 764
Kamal Avatar asked Aug 12 '11 11:08

Kamal


1 Answers

Background Info

The Eclipse Indigo release offers some new JAXB tooling from the Dali project (which is part of Web Tools Platform). You are now able to create a JAXB Project.

Configuration

A JAXB project can be configured to use the reference or EclipseLink MOXy implementation of JAXB. This can be done via:

  1. Right click your JAXB Project
  2. Select Properties
  3. Select Project Facets
  4. Check the JAXB facet (If you are using Java SE 6 set the JAXB version to 2.1, if you are using Java SE 7 then set the JAXB version to 2.2).
  5. Click the "Further configuration required" or "Further configuration available" links.

Using the JAXB RI

  • Choose Generic JAXB as your platform
  • Choose JRE as your JAXB Implementation Type

Using EclipseLink JAXB (MOXy)

  • Choose EclipseLink JAXB as your platform
  • Choose User Library as your JAXB Implementation
  • Click the Manage Libraries... icon
  • Add a new User Library for EclipseLink (the binary can be obtained from http://www.eclipse.org/eclipselink/downloads/).

like image 87
bdoughan Avatar answered Oct 21 '22 12:10

bdoughan