[英]XmlPullParser exception when creating new instance in Java on Tomcat7 server
I am working on a dynamic web app using Eclipse with Tomcat 7 and jre 7. I receive the following exception when attempting to parse an xml string: 我正在使用带有Tomcat 7和jre 7的Eclipse开发动态Web应用程序。尝试解析xml字符串时收到以下异常:
could not load any factory class (even small or full default implementation); 无法加载任何工厂类(即使是小型或完整的默认实现); nested exception is: org.kxml2.io.XmlReader
嵌套的异常是:org.kxml2.io.XmlReader
XmlPullParserFactory factory = XmlPullParserFactory.newInstance(); XmlPullParserFactory工厂= XmlPullParserFactory.newInstance();
which is part of the org.xmlpull.v1.XmlPullParserFactory namespace. 它是org.xmlpull.v1.XmlPullParserFactory命名空间的一部分。
I have put the xmlpull_1_0_5.jar into the Tomcat lib folder and restart it. 我已将xmlpull_1_0_5.jar放入Tomcat lib文件夹并重新启动它。 I have also put the file in the WEB-INF lib folder.
我还将该文件放在WEB-INF lib文件夹中。
Any help would be appreciated! 任何帮助,将不胜感激! Thanks!
谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.