java.net.MalformedURLException: unknown protocol: dummy异常
来源:百度文库 编辑:神马文学网 时间:2024/04/29 17:21:48
查找您系统下是否有一个gnujaxp.jar文件,并删除它。
The gnujaxp.jar file is most easily installed in $JAVA_HOME/jre/lib/ext; otherwise you may prefer to modify your CLASSPATH. If you have other JAXP parsers installed you may also wish to set up $JAVA_HOME/jre/lib/jaxp.properties so the GNU JAXP drivers are used by default:
# make JAXP clients prefer the GNU implementations
javax.xml.parsers.SAXParserFactory=gnu.xml.aelfred2.JAXPFactory
javax.xml.parsers.DocumentBuilderFactory=gnu.xml.dom.DomDocumentBuilderFactory
javax.xml.transform.TransformerFactory=gnu.xml.transform.TransformerFactoryImpl
javax.xml.xpath.XPathFactory=gnu.xml.xpath.XPathFactoryImpl
Alternatively, you may specify the use of the experimental libxmlj implementations, as follows:
javax.xml.parsers.SAXParserFactory=gnu.xml.libxmlj.sax.GnomeSAXParserFactory
javax.xml.parsers.DocumentBuilderFactory=gnu.xml.libxmlj.dom.GnomeDocumentBuilderFactory
javax.xml.transform.TransformerFactory=gnu.xml.libxmlj.transform.GnomeTransformerFactory
If you are using the portable SAX2 bootstrapping APIs, you may want to set the org.xml.sax.driver system property on each JVM invocation to be gnu.xml.aelfred2.SAXDriver (non-validating) or gnu.xml.aelfred2.XmlReader (optionally validating). Otherwise the org.xml.sax.helpers.XMLReaderFactory may not return the parser you expect.
If using GNU JAXP as part of GNU Classpath, no configuration should be necessary.
The gnujaxp.jar file is most easily installed in $JAVA_HOME/jre/lib/ext; otherwise you may prefer to modify your CLASSPATH. If you have other JAXP parsers installed you may also wish to set up $JAVA_HOME/jre/lib/jaxp.properties so the GNU JAXP drivers are used by default:
# make JAXP clients prefer the GNU implementations
javax.xml.parsers.SAXParserFactory=gnu.xml.aelfred2.JAXPFactory
javax.xml.parsers.DocumentBuilderFactory=gnu.xml.dom.DomDocumentBuilderFactory
javax.xml.transform.TransformerFactory=gnu.xml.transform.TransformerFactoryImpl
javax.xml.xpath.XPathFactory=gnu.xml.xpath.XPathFactoryImpl
Alternatively, you may specify the use of the experimental libxmlj implementations, as follows:
javax.xml.parsers.SAXParserFactory=gnu.xml.libxmlj.sax.GnomeSAXParserFactory
javax.xml.parsers.DocumentBuilderFactory=gnu.xml.libxmlj.dom.GnomeDocumentBuilderFactory
javax.xml.transform.TransformerFactory=gnu.xml.libxmlj.transform.GnomeTransformerFactory
If you are using the portable SAX2 bootstrapping APIs, you may want to set the org.xml.sax.driver system property on each JVM invocation to be gnu.xml.aelfred2.SAXDriver (non-validating) or gnu.xml.aelfred2.XmlReader (optionally validating). Otherwise the org.xml.sax.helpers.XMLReaderFactory may not return the parser you expect.
If using GNU JAXP as part of GNU Classpath, no configuration should be necessary.
java.net.MalformedURLException: unknown protocol: dummy异常
java.net.MalformedURLException: unknown protocol: dummy异常
unknown
java异常理解(1)
JAVA的异常处理机制
community.java.net - Portlet
Java .Net 的区别
.net 和java发展前景
.net 和java发展前景
因小失大,切莫轻视JAVA异常处理
java客户端调用.Net服务
详解.NET多线程异常的处理方法
ChinaUnix.net - Java、Java Applet与 JavaScript间的通信
java.net - The Source for Java Technology Col...
java面试题 [217篇 ] - Java - ChinaUnix.net
Log4j配置详解 - Java文档中心 - Java - ChinaUnix.net
PHP:草根语言挑战大腕Java .Net
InfoQ: Java、.NET,为什么不合二为一?
java.net: Building GUIs with SwiXml
JAVA客户端通过SOAP与NET的
java.net.SocketException MESSAGE: Broken pipe...
【解惑】:学.Net还是学Java?
Protocol Overhead
memcached protocol