title: Tapestry + JaxB conflict
body: <p>I need your help to resolve a conflict between Tapestry and JaxB.
  The error is : </p>
  
  <blockquote>
    <p>com.sun.xml.stream.ZephyrParserFactory
    cannot be cast to
    org.codehaus.stax2.XMLInputFactory2</p>
  </blockquote>
  
  <p>I find a way to resolve it, but it is for jetty : <a href="http://tynamo.org/tapestry-resteasy+guide" rel="nofollow noreferrer">http://tynamo.org/tapestry-resteasy+guide</a></p>
  
  <p>The solution seems to be to add a system properties to declare : </p>
  
  <blockquote>
    <p>javax.xml.stream.XMLInputFactory = com.ctc.wstx.stax.WstxInputFactory</p>
  </blockquote>
  
  <p>But i don't know how to do this for Tomcat. I try to do it int he web.xml like :</p>
  
  <pre><code>&lt;env-entry&gt;
       &lt;env-entry-name&gt;
        javax.xml.stream.XMLInputFactory
       &lt;/env-entry-name&gt;
       &lt;env-entry-value&gt;
        com.ctc.wstx.stax.WstxInputFactory
       &lt;/env-entry-value&gt;
       &lt;env-entry-type&gt;
        com.ctc.wstx.stax.WstxInputFactory
       &lt;/env-entry-type&gt;
      &lt;/env-entry&gt;
  </code></pre>
  
  <p>without success...</p>
  
  <p>I am also aware for another solution :)</p>
  
  <p>thx for helping me.</p>