Monday, November 15, 2010

WstxIOException in WebLogic

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

Sometimes, you may encounter problems like this which slows the deployment process.

One option to workaround this issue is add

"-Djavax.xml.stream.XMLInputFactory=weblogic.xml.stax.XMLStreamInputFactory"

to your WebLogic start script. It will prevents WebLogic to fetch any remote xml definition files.

No comments:

Post a Comment