File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes javax.xml.parsers.Factory ConfigurationError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "javax.xml.parsers.Factory ConfigurationError" Watch "javax.xml.parsers.Factory ConfigurationError" New topic
Author

javax.xml.parsers.Factory ConfigurationError

senthilkumar manickam
Greenhorn

Joined: Jan 24, 2006
Posts: 1
I am using sun one webserver and axis . when i run the code i got the following error. How can it be corrected.

I have set the system properties in the jvm12.conf as javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImp
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

and checked these values by logging it logfile as well


failure (14099): Internal error: Unexpected error condition thrown (javax.xml.parsers.FactoryConfigurationError: The specified class "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" is not instance of "javax.xml.parsers.SAXParserFactory",The specified class "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" is not instance of "javax.xml.parsers.SAXParserFactory"), stack: javax.xml.parsers.FactoryConfigurationError: The specified class "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" is not instance of "javax.xml.parsers.SAXParserFactory"
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:168)
at org.apache.axis.utils.XMLUtils.initSAXFactory(XMLUtils.java:209)
at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:110)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:103)
at org.apache.axis.client.Service.<init>(Service.java:112)
at sokol.OUK_ENDUSER_WEB_SS_ServicesServiceLocator.<init>(OUK_ENDUSER_WEB_SS_ServicesServiceLocator.java:12)
at com.sample.code.webmethods.WebMethodsCall.getResponse(WebMethodsCall.java:144)
at com.sample.code.webmethods.WebMethodsCall.getPaygPin(WebMethodsCall.java:199)
at com.sample.code.process.Command.getJustTalkPin(Command.java:179)
at com.sample.code.process.SignInCommand.execute(SignInCommand.java:100)
at com.sample.code.process.WapProcess.handle(WapProcess.java:120)
at com.sample.code.process.WapProcess.updateContext(WapProcess.java:101)
at com.sample.code.device.DeviceType.getTemplateName(DeviceType.java:118)
at com.sample.code.servlet.LaunchPadServlet.handleRequest(LaunchPadServlet.java:119)
at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:372)
at org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:483)
 
 
subject: javax.xml.parsers.Factory ConfigurationError
 
Similar Threads
ClassCast exception with xerces.jar or xml-apis.jar
javax.xml.parsers.Factory Configuration Error
org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file
AXIS 2 - Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located
Axis Jar - No Class Found error for XMLUtils