Commit f4ce83248126705ca3563cd15988a72ea786a336

Authored by Mickael Boiziot
1 parent 52b43fb1
Exists in master

Fix loading with Aladin 12

src/main/java/eu/omp/irap/vespa/votable/votable/VOTableXMLParser.java
... ... @@ -67,10 +67,12 @@ public final class VOTableXMLParser {
67 67 e);
68 68 }
69 69 try {
70   - jc = JAXBContext.newInstance(VOTableXMLParser.VOTABLE_MODEL_PACKAGE);
  70 + jc = JAXBContext.newInstance(VOTableXMLParser.VOTABLE_MODEL_PACKAGE,
  71 + VOTableXMLParser.class.getClassLoader());
71 72 Unmarshaller unmarshaller = jc.createUnmarshaller();
72 73 voTable = (VOTABLE) unmarshaller.unmarshal(new File(voTablePath));
73 74 } catch (JAXBException e) {
  75 + e.printStackTrace();
74 76 throw new CantParseVOTableException("Can not get a VOTable object from the XML file.",
75 77 e);
76 78 }
... ...