国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
java.net.MalformedURLException: unknown protocol: dummy異常

JBoss中,啟動Applet連接EJB,出現(xiàn)java.net.MalformedURLException: unknown protocol: dummy異常

(其實還有一個Log4j的異常:

[java] log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation).
[java] log4j:WARN Please initialize the log4j system properly.

解決:

查找您系統(tǒng)下是否有一個gnujaxp.jar文件,并刪除它。

The gnujaxp.jar file is most easily installed in$JAVA_HOME/jre/lib/ext; otherwise you may prefer to modify yourCLASSPATH. If you have other JAXP parsers installed you may also wishto set up $JAVA_HOME/jre/lib/jaxp.properties so the GNU JAXP driversare 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 toset the org.xml.sax.driver system property on each JVM invocation to begnu.xml.aelfred2.SAXDriver (non-validating) orgnu.xml.aelfred2.XmlReader (optionally validating). Otherwise theorg.xml.sax.helpers.XMLReaderFactory may not return the parser youexpect.

If using GNU JAXP as part of GNU Classpath, no configuration should be necessary.

附一些Log4j問題解決數(shù)參考的資料:

解決jboss和log4j的沖突問題

方案1:

你先將你程式內(nèi)部的 log4j.properties or log4j.xml 全部拿掉,再 deploy
看看。如果沒問題再逐一將 自己的 config 一項一項放進

\jboss\server\default\conf\log4j.xml 測試。


方案2:

application若有自己的log4j war及設(shè)定項,而導(dǎo)致JBoss啟動時出現(xiàn)"ERROR: invalid console appender config detected, console stream islooping." 錯誤信息時,只要去JBossserver里的conf資料夾中的jboss-service.xml中的org.jboss.logging.Log4jService的設(shè)定區(qū)段中加個參數(shù):<attributename="CatchSystemOut">false</attribute>即可,如:

<mbean code="org.jboss.logging.Log4jService"name="jboss.system:type=Log4jService,service=Logging"><attributename="ConfigurationURL">resource:log4j.xml</attribute><attributename="CatchSystemOut">false</attribute><attributename="Log4jQuietMode">true</attribute></mbean>


本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Java XML API 漫談
關(guān)于JAXP,DOM,SAX,JDOM,DOM4J的一些想法
Xerces問題
xml解析器 - 浮躁的技術(shù)之路 - 博客園
JAXB、JAXP、JAXM、JAX-WS
JAXP 驗證-使用 JAXP 1.3 的新功能驗證 XML
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服