1 Reply Latest reply on Jul 13, 2010 3:28 PM by me me

    Stax, JBoss5.1.0GA, JDK6.

    me me Newbie

      I deployed a war app that depends on StAX, but when I start the app I get no such method error:


      java.lang.NoSuchMethodError: javax.xml.stream.XMLInputFactory.newFactory()Ljavax/xml/stream/XMLInputFactory;


      Only changes I have made to JBoss5.1.0 is copying the 4 webservice jars from /client to /lib/endorsed like the manual says for use with java 6.


      How do I provide stax support for the app?

        • 1. Re: Stax, JBoss5.1.0GA, JDK6.
          me me Newbie

          To answer myself. The woodstox stax impl shipped with jboss5.1.0ga only supports the depricated XMLInputFactory.newInstance() but not the new XMPInpuFactory.newFactory(). I tried replacing wstx.jar with a newer v.4.0.8 but it does not add support for the new factory method either. So I changed my code to use the old newInstance(). The stax impl shipped with jdk 6 does support the new factory method.