如题,错误如下:javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

查找了很多地方,没有找到原因,很偶然的在一个帖子里面发现了上述错误,虽然不是loadrunner的。但还是拿来试了试。居然解决了这个问题。

方法:在java vuser中的init中加上如下两句话:

System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
        System.setProperty("javax.xml.parsers.SAXParserFactory","com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");

相关文章:

  • 2021-12-31
  • 2021-06-20
  • 2022-12-23
  • 2022-01-21
  • 2021-05-15
  • 2021-08-10
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2021-05-24
  • 2021-09-02
  • 2022-12-23
  • 2021-10-07
  • 2021-12-01
  • 2022-12-23
  • 2021-04-26
相关资源
相似解决方案