我创建了一个java web项目来创建一个servlet。但是,在我重新安装它之前,它曾经工作正常。 Web服务引用不会显示操作并给出以下错误:
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
at com.sun.tools.xjc.reader.internalizer.DOMForest.<init>(DOMForest.java:153)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.resetSchema(SchemaCompilerImpl.java:204)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.<init>(SchemaCompilerImpl.java:104)
at com.sun.tools.xjc.api.XJC.createSchemaCompiler(XJC.java:67)
at com.sun.tools.ws.wscompile.WsimportOptions.<init>(WsimportOptions.java:100)
at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.generateWsdlModel(WsdlModeler.java:197)
at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.generateWsdlModel(WsdlModeler.java:189)
at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.access$000(WsdlModeler.java:73)
at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler$1.run(WsdlModeler.java:98)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
答案 0 :(得分:0)
javax.xml.parsers.FactoryConfigurationError:找不到提供者org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
您需要确保Xerces的JAR文件位于运行时类路径中。