GlassFish should not normally do this because it carries with it local
copies of the relevant schemas and DTDs and resolves references using
those local copies.
Does this happen with every web app or just one or a small number?
Often this happens if the DTD or schema identifier is misspelled in the
application's descriptor. Please check it very carefully to make sure
it's correct.
- Tim
glassfish_at_javadesktop.org wrote:
> Hi,
>
> it looks to me like Glassfisch will try to resolve the webapp dtd from the internet when
> parsing my web.xml. This causes a big pause at work where internet access is hidden
> behind a proxy.
>
> Anyone else seeing this?
>
> --
> Georg.
>
> [#|2007-05-11T13:42:59.090+0200|INFO|sun-appserver-pe9.0|javax.enterprise.system.stream.out|_ThreadID=14;_ThreadName=Thread-27;|- Unable to pars
> e web.xml
> java.net.ConnectException: Connection timed out
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
> at com.sun.enterprise.server.ss.provider.ASClientSocketImpl.connect(ASClientSocketImpl.java:206)
> at java.net.Socket.connect(Socket.java:519)
> at java.net.Socket.connect(Socket.java:469)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:500)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:318)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:733)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:658)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:981)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1316)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1283)
> at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1168)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1068)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:988)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
> at org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser.parse(WebXmlParser.java:101)
> at org.apache.myfaces.shared_impl.webapp.webxml.WebXml.init(WebXml.java:204)
> at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:85)
> at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52)
> at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
> at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
> at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
> :
> [Message sent by forum member 'gwk' (gwk)]
>
> http://forums.java.net/jive/thread.jspa?messageID=216474
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>