gpt4 book ai didi

java.net.ConnectException : after adding weblogic-application. xml

转载 作者:行者123 更新时间:2023-11-29 09:17:10 24 4
gpt4 key购买 nike

我最近在耳边添加了weblogic-application.xml来解决weblogic 10.x中的antlr jar文件冲突

<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>

现在在部署应用程序时出现以下异常:

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 服务器配置的解决方案?

提前致谢。

最佳答案

如果您的 .xml 文件有任何标签库,似乎由于专用网络而无法从 Internet 下载 DTD 定义。这是线程讨论了可能的解决方法。 Work around link

关于java.net.ConnectException : after adding weblogic-application. xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8761410/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com