title: java.net.ConnectException: after adding weblogic-application.xml
body: <p>I have recently added weblogic-application.xml to my ear to resolve antlr jar file conflict in weblogic 10.x</p>
  
  <pre><code>&lt;weblogic-application xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;prefer-application-packages&gt;
    &lt;package-name&gt;antlr.*&lt;/package-name&gt;
  &lt;/prefer-application-packages&gt;
  &lt;/weblogic-application&gt;
  </code></pre>
  
  <p>now when deploying the application I m getting the following exception:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>This seems to be a proxy issue. Why this is happening only after adding the weblogic-application.xml?</p>
  
  <p>Any solution that may not require changing the weblogic server config?</p>
  
  <p>Thanks in advance. </p>