title: Error unmarshalling xml in java-8 "secure-processing org.xml.sax.SAXNotRecognizedException causing java.lang.IllegalStateException"
body: <p>The following code worked fine in Java 7</p>
  
  <pre><code>import javax.xml.bind.JAXBContext;
  import javax.xml.bind.JAXBException;
  import javax.xml.bind.Unmarshaller;
  
  String xmlString = '&lt;xml ..... ';
  
  StringReader reader = new StringReader(xmlString);
  
  JAXBContext jc = JAXBContext.newInstance(MyClass.class);
  Unmarshaller unmarshaller = jc.createUnmarshaller();
  MyClass myClass = (MyClass) unmarshaller.unmarshal(reader);
  ....
  </code></pre>
  
  <p>Now we had to upgrade to Java 8 and now I get this exception when executing the code:</p>
  
  <pre><code>Sep 03, 2014 1:42:47 PM com.sun.xml.internal.bind.v2.util.XmlFactory createParserFactory
  SCHWERWIEGEND: null
  org.xml.sax.SAXNotRecognizedException: Feature: http://javax.xml.XMLConstants/feature/secure-processing
      at org.apache.xerces.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:100)
      at com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory(XmlFactory.java:114)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.getXMLReader(UnmarshallerImpl.java:139)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
      at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214)
  </code></pre>
  
  <p>I know that there is a <a href="https://stackoverflow.com/questions/23952888/solution-for-secure-processing-org-xml-sax-saxnotrecognizedexception-causing-jav">question</a> targeting a similar problem, but stepping back to java 7 is not a solution for me.</p>
  
  <p>I tried to add the following maven dependency</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.xml&lt;/groupId&gt;
      &lt;artifactId&gt;jaxp-api&lt;/artifactId&gt;
      &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>but that did not change the result, so I removed it (thanks to @BlaiseDoughan for the information, that this is included in Java 6)</p>
  
  <p>Any hints are welcome, many thanks.</p>