title: XSLT ClassCastException in WebSphere when Spring tries to create an AnnotationMethodHandlerAdapter
body: <p>When starting WebSphere, I get this exception:</p>
  
  <pre><code>Could not instantiate bean class [org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter]:
  Constructor threw exception; nested exception is java.lang.ClassCastException:
  com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl incompatible with
  javax.xml.transform.TransformerFactory
  Caused by: java.lang.ClassCastException: com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl
  incompatible with javax.xml.transform.TransformerFactory
      at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
      at org.springframework.http.converter.xml.AbstractXmlHttpMessageConverter.&lt;init&gt;(AbstractXmlHttpMessageConverter.java:47)
      at org.springframework.http.converter.xml.SourceHttpMessageConverter.&lt;init&gt;(SourceHttpMessageConverter.java:45)
      at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.&lt;init&gt;(AnnotationMethodHandlerAdapter.java:197)
  </code></pre>
  
  <p>This doesn't seem have any impact on any beans in my applicationContext.xml but it's still odd. For me, this looks as if IBM classes are leaking into my application.</p>
  
  <p>How can I fix this? I already set the option "Access to internal server classes" to "Restrict".</p>