Skip to content

Commit

Permalink
Fixed problem with e-ark validator
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosjepard authored and hmiguim committed Mar 13, 2024
1 parent 0f65cd9 commit 98b3647
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public InstatiateMets(final InputStream stream) {
* if some parse error occurs.
*/
public Mets instatiateMetsFile() throws JAXBException, SAXException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Mets.class);
org.glassfish.jaxb.runtime.v2.JAXBContextFactory contextFactory = new org.glassfish.jaxb.runtime.v2.JAXBContextFactory();
JAXBContext jaxbContext = contextFactory.createContext(new Class[]{Mets.class}, null);
final Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
factory.setResourceResolver(new ResourceResolver());
Expand Down

0 comments on commit 98b3647

Please sign in to comment.