Hi,

Hopefully someone can point me in the right direction, as I've been
struggling with this for a while now.

I've build an XFire based Web Service which works on Linux under JDK
1.4.2(We are restricted to this JDK in production!) but always
generates an error
on AIX 5.2 (production OS) under a IBM JDK. The error being:

javax.xml.stream.FactoryConfigurationError: Provider null could not be
instantiated: java.lang.NullPointerException
        javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:75)
        javax.xml.stream.FactoryFinder.find(FactoryFinder.java:136)
        javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
        javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
        org.codehaus.xfire.util.STAXUtils.<clinit>(STAXUtils.java:48)
        
org.codehaus.xfire.transport.http.HtmlServiceWriter.write(HtmlServiceWriter.java:50)
        
org.codehaus.xfire.transport.http.XFireServletController.generateServices(XFireServletController.java:191)
        
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:119)
        
org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


I've seen some posts which relate to this issue, so I've tried to add an '
xml.stream.properties' file with these settings:

javax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory
javax.xml.stream.XMLOutputFactory=com.ctc.wstx.stax.WstxOutputFactory
javax.xml.stream.XMLEventFactory=com.ctc.wstx.stax.WstxEventFactory

into my web app lib directory, but I'm still getting the error.

Are these the correct settings? I would expect this properties file to be
picked up on the web app's classpath, am I wrong? Is this the correct name
for such a properties file?

I've built the Web Service under Eclipse using Xfire 1.2.6.

Any assistance would be gratefully recieved as I'm now not sure what course
of action to take other than try to switch from the STaX API to something
else, but I'm guessing this is a big task?

Thanks in advance,
Sathpal

Reply via email to