Java.net. malformedurlexception: Unknown Protocol: dummy exception

Source: Internet
Author: User

In JBoss, start the applet to connect to EJB, and a java.net. malformedurlexception: Unknown Protocol: dummy exception occurs.

(In fact, there is another log4j exception:

[Java] log4j: warn no appenders cocould be found for logger (Org. JBoss. Security. securityassociation ).
[Java] log4j: Warn please initialize the log4j system properly.
)

Solution:

Check whether there is a gnujaxp. jar file in your system and delete it.

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 provided CT.

If using gnu jaxp as part of GNU classpath, no configuration shocould be necessary.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.