在 glassfish 3.1.1 中使用 Sax Parser 进行 xml 解析
我有一个 xml 文件,用于存储应用程序配置,并可以选择离线更新。 现在,当我的 Web 应用程序启动时,SAXParser 已正常加载。当我尝试重新加载 xml 文件时出现问题。我收到以下错误:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [com.sun.org.apache.xerces.internal.parsers.SAXParser], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:49)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
会出现什么问题? 我使用jdk 6u26 Netbeans 6.9.1 和 glassfish3.1
I have an xml file that i use to store an application configuration with the option of being updated offline.
Now when my web application starts, the SAXParser is loaded fine. The problem arises when i try to reload the xml file. I get the following errors:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [com.sun.org.apache.xerces.internal.parsers.SAXParser], because it has not yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1369)
at org.xml.sax.helpers.NewInstance.newInstance(NewInstance.java:49)
at org.xml.sax.helpers.XMLReaderFactory.loadClass(XMLReaderFactory.java:187)
at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:150)
what would be the problem?
I work with jdk 6u26
netbeans 6.9.1 and glassfish3.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论