Commit f4ce83248126705ca3563cd15988a72ea786a336
1 parent
52b43fb1
Exists in
master
Fix loading with Aladin 12
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
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 | } |
... | ... |