hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dapeng Sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10717) Missing JSP support in Jetty, 'NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet' when user want to start namenode.
Date Thu, 19 Jun 2014 09:00:33 GMT

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

Dapeng Sun commented on HADOOP-10717:
-------------------------------------

Thanks Uma and Haohui, 

My lab can not access Internet directly (I think most enterprise environment should be like
this for security),

After debuged the code, I found Jetty will try to download http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd,
the file exists in jsp-api-2.1-glassfish-2.1.v20091210.jar, the jar file is depended by org.mortbay.jetty:jsp-2.1-jetty:jar:6.1.26

I tested it in internet environment, it's okay. When I map hostname "java.sun.com" to 127.0.0.1,
The following exception was thrown:
bq.
14/06/19 16:49:40 INFO mortbay.log: jetty-6.1.26
14/06/19 16:49:40 INFO mortbay.log: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
14/06/19 16:49:40 WARN mortbay.log: FATAL@http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
line:1 col:2 : org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD JSP Tag
Library 1.2//EN; systemId: http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; lineNumber:
1; columnNumber: 2; The markup declarations contained or pointed to by the document type declaration
must be well-formed.
14/06/19 16:49:40 WARN mortbay.log: FATAL@http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
line:1 col:2 : org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD JSP Tag
Library 1.2//EN; systemId: http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; lineNumber:
1; columnNumber: 2; The markup declarations contained or pointed to by the document type declaration
must be well-formed.
14/06/19 16:49:40 WARN mortbay.log: EXCEPTION 
org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN;
systemId: http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; lineNumber: 1; columnNumber:
2; The markup declarations contained or pointed to by the document type declaration must be
well-formed.
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
        at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2008)
        at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:305)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1177)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
        at org.mortbay.xml.XmlParser.parse(XmlParser.java:188)
        at org.mortbay.xml.XmlParser.parse(XmlParser.java:204)
        at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:238)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1279)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:795)
        at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:690)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:581)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:748)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:732)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1386)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1452) 


> Missing JSP support in Jetty, 'NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet'
when user want to start namenode.
> -----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-10717
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10717
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Dapeng Sun
>            Assignee: Dapeng Sun
>            Priority: Blocker
>             Fix For: 3.0.0
>
>         Attachments: HADOOP-10717.patch
>
>
> When user want to start NameNode, user would got the following exception, it is caused
by missing org.mortbay.jetty:jsp-2.1-jetty:jar:6.1.26 in the pom.xml
> 14/06/18 14:55:30 INFO http.HttpServer2: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer2$QuotingInputFilter)
> 14/06/18 14:55:30 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context hdfs
> 14/06/18 14:55:30 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context static
> 14/06/18 14:55:30 INFO http.HttpServer2: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context logs
> 14/06/18 14:55:30 INFO http.HttpServer2: Added filter 'org.apache.hadoop.hdfs.web.AuthFilter'
(class=org.apache.hadoop.hdfs.web.AuthFilter)
> 14/06/18 14:55:30 INFO http.HttpServer2: addJerseyResourcePackage: packageName=org.apache.hadoop.hdfs.server.namenode.web.resources;org.apache.hadoop.hdfs.web.resources,
pathSpec=/webhdfs/v1/*
> 14/06/18 14:55:30 INFO http.HttpServer2: Jetty bound to port 50070
> 14/06/18 14:55:30 INFO mortbay.log: jetty-6.1.26
> 14/06/18 14:55:30 INFO mortbay.log: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
> 14/06/18 14:57:38 WARN mortbay.log: EXCEPTION
> java.net.ConnectException: Connection timed out
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
>         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>         at java.net.Socket.connect(Socket.java:529)
>         at java.net.Socket.connect(Socket.java:478)
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:307)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:324)
>         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
>         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
>         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:1315)
>         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)
>         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:1194)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
>         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:511)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
>         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:119)
>         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:188)
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:204)
>         at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:238)
>         at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1279)
>         at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
>         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>         at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>         at org.mortbay.jetty.Server.doStart(Server.java:224)
>         at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>         at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:795)
>         at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:690)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:581)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:748)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:732)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1386)
>         at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1452)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message