brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Downer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-197) Fails to launch unless Internet access is available
Date Fri, 20 Nov 2015 15:31:11 GMT

    [ https://issues.apache.org/jira/browse/BROOKLYN-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018156#comment-15018156
] 

Richard Downer commented on BROOKLYN-197:
-----------------------------------------

To reproduce: unplug your network cable and switch off wifi. Start Brooklyn. On Brooklyn 0.8.0,
it will launch normally; on Brooklyn 0.9.0-SNAPSHOT, the server appears to start, but the
web app is not deployed and the Brooklyn web port reports 503 Service Unavailable.

Exception backtrace:

{noformat}
2015-11-20 15:19:52,483 WARN  o.e.jetty.webapp.WebAppContext [main]: Failed startup of context
o.e.j.w.WebAppContext@1f482327{/,file:/Users/richard/.brooklyn/planes/UsVnJCKV/zsYNHByZ/jetty/war-root/webapp/,null}{/tmp/ROOT-6974303805713654450.war}
java.net.UnknownHostException: java.sun.com
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) ~[na:1.7.0_71]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.7.0_71]
    at java.net.Socket.connect(Socket.java:579) ~[na:1.7.0_71]
    at java.net.Socket.connect(Socket.java:528) ~[na:1.7.0_71]
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.7.0_71]
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) ~[na:1.7.0_71]
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) ~[na:1.7.0_71]
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) ~[na:1.7.0_71]
    at sun.net.www.http.HttpClient.New(HttpClient.java:308) ~[na:1.7.0_71]
    at sun.net.www.http.HttpClient.New(HttpClient.java:326) ~[na:1.7.0_71]
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
~[na:1.7.0_71]
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
~[na:1.7.0_71]
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850) ~[na:1.7.0_71]
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:643)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1297)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1264)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:263)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1164)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
~[na:1.7.0_71]
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:332)
~[na:1.7.0_71]
    at org.eclipse.jetty.xml.XmlParser.parse(XmlParser.java:252) ~[org.eclipse.jetty-jetty-xml-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.Descriptor.parse(Descriptor.java:54) ~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.WebDescriptor.parse(WebDescriptor.java:207) ~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.MetaData.setWebXml(MetaData.java:196) ~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:60)
~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:468) ~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:504) ~[org.eclipse.jetty-jetty-webapp-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [org.eclipse.jetty-jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
[org.eclipse.jetty-jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.server.Server.start(Server.java:387) [org.eclipse.jetty-jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) [org.eclipse.jetty-jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.server.Server.doStart(Server.java:354) [org.eclipse.jetty-jetty-server-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
[org.eclipse.jetty-jetty-util-9.2.13.v20150730.jar:9.2.13.v20150730]
    at org.apache.brooklyn.launcher.BrooklynWebServer.start(BrooklynWebServer.java:445) [org.apache.brooklyn-brooklyn-launcher-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.launcher.BrooklynLauncher.startWebApps(BrooklynLauncher.java:796)
[org.apache.brooklyn-brooklyn-launcher-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.launcher.BrooklynLauncher.start(BrooklynLauncher.java:589) [org.apache.brooklyn-brooklyn-launcher-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.cli.Main$LaunchCommand.call(Main.java:459) [org.apache.brooklyn-brooklyn-cli-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.cli.Main$LaunchCommand.call(Main.java:196) [org.apache.brooklyn-brooklyn-cli-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.cli.AbstractMain.execCli(AbstractMain.java:252) [org.apache.brooklyn-brooklyn-cli-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.cli.AbstractMain.execCli(AbstractMain.java:244) [org.apache.brooklyn-brooklyn-cli-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
    at org.apache.brooklyn.cli.Main.main(Main.java:123) [org.apache.brooklyn-brooklyn-cli-0.9.0-SNAPSHOT.jar:0.9.0-SNAPSHOT]
{noformat}

> Fails to launch unless Internet access is available
> ---------------------------------------------------
>
>                 Key: BROOKLYN-197
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-197
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Richard Downer
>
> Brooklyn 0.9.0-SNAPSHOT requires a connection to the public Internet to work. This is
a regression from Brooklyn 0.8.0.
> This is an issue when Brooklyn is launched into secured server environments. It is common
in many corporations that production servers have restricted egress access to the public Internet.
Therefore this is a major issue.
> The issue appears to be that Jetty is using Xerces to parse XML files; Xerces is trying
to resolve the DTDs by downloading them from the URL in the XML header. Therefore, it will
be trying to access http://java.sun.com. When this operation fails, the root webapp is not
deployed, and the Brooklyn web console (and probably the REST API too) returns 503 Service
Unavailable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message