You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by bu...@apache.org on 2005/02/01 12:32:34 UTC

DO NOT REPLY [Bug 33327] New: - java.net.ConnectException on deployment when using StartupServletContextListener behind a firewall

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33327>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33327

           Summary: java.net.ConnectException on deployment when using
                    StartupServletContextListener behind a firewall
           Product: MyFaces
           Version: unspecified
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core Implementation
        AssignedTo: myfaces-dev@incubator.apache.org
        ReportedBy: alastair.rodgers@cpp.co.uk


I have a MyFaces web app deployed on Weblogic 8.1 and I have a 
StartupServletContextListener defined in my web.xml. When it tries to run this 
at deployment, the call to WebXml.init(externalContext) in 
StartupServletContextListener.initFaces(ServletContext) fails with the 
following error: 

java.net.ConnectException: Tried all: '1' addresses, but could not connect 
over HTTP to server: 'java.sun.com', port: '80'

WebXml.init calls WebXmlParser.parse() which tries to parse the web.xml via 
JAXP. However, this has DTD validation enabled and it tries to obtain the DTD 
from http://java.sun.com/dtd/web-app_2_3.dtd, which fails because my app 
server is behind a firewall and is prevented from making external HTTP 
connections. 

So, I need to be able to either resolve the DTD locally or disable validation. 
Given that the XML should already be validated by the servlet container, is it 
really necessary to do the validation anyway?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.