2012-01-06 64 views
2

後,我最近增加的weblogic-application.xml中我的耳朵,以解決在WebLogic 10.x中java.net.ConnectException:增加的weblogic-application.xml中

<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<prefer-application-packages> 
    <package-name>antlr.*</package-name> 
</prefer-application-packages> 
</weblogic-application> 

ANTLR jar文件衝突正在部署的時候應用程序我得到以下例外:

Error while parsing the Tag Library Descriptor at 
com.ctc.wstx.exc.WstxIOException: Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80' 
at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683) 
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086) 
at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:134) 
at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380) 
at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65) 
Truncated. see log file for complete stacktrace 

java.net.ConnectException: Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80' 
at weblogic.net.http.HttpClient.openServer(HttpClient.java:312) 
at weblogic.net.http.HttpClient.openServer(HttpClient.java:388) 
at weblogic.net.http.HttpClient.New(HttpClient.java:238) 
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:172) 
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:356) 
Truncated. see log file for complete stacktrace 

這似乎是一個代理問題。爲什麼只有在添加weblogic-application.xml後纔會發生這種情況?

任何可能不需要更改weblogic服務器配置的解決方案?

在此先感謝。

回答

0

看來如果您的.xml文件有任何taglib由於專用網絡而無法從Internet下載DTD定義。這是線程討論可能的解決方法。 Work around link