phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Chistyakov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-4427) Java classpath is incomplete in the Phoenix Tracing Web Application startup script
Date Fri, 01 Dec 2017 15:23:00 GMT

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

Alex Chistyakov commented on PHOENIX-4427:
------------------------------------------

Nevertheless, the classpath is still incomplete after this fix:
{code}
30922 [qtp586617651-45] WARN org.eclipse.jetty.servlet.ServletHandler  - Error for /trace
java.lang.NoClassDefFoundError: org/codehaus/jackson/map/ObjectMapper
        at org.apache.phoenix.tracingwebapp.http.TraceServlet.getResults(TraceServlet.java:153)
        at org.apache.phoenix.tracingwebapp.http.TraceServlet.getAll(TraceServlet.java:91)
        at org.apache.phoenix.tracingwebapp.http.TraceServlet.doGet(TraceServlet.java:61)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
        at org.eclipse.jetty.server.Server.handle(Server.java:365)
        at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
        at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
        at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
        at java.lang.Thread.run(Thread.java:748)
{code}

> Java classpath is incomplete in the Phoenix Tracing Web Application startup script
> ----------------------------------------------------------------------------------
>
>                 Key: PHOENIX-4427
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4427
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.13.0
>            Reporter: Alex Chistyakov
>
> {code}
> 2017-12-01 09:18:16.419217 launching /usr/lib/jvm/java-8-oracle/bin/java -cp /etc/hbase/conf:/opt/phoenix/apache-phoenix-4.13.0-HBase-0.98-bin/bin/../phoenix-tracing-webapp-4.13.0-HBase-0.98-runnable.jar:/opt/phoenix/apache-phoenix-4.13.0-HBase-0.98-bin/bin/../phoenix-4.13.0-HBase-0.98-client.jar
-Dproc_phoenixtraceserver -Dlog4j.configuration=file:/opt/phoenix/apache-phoenix-4.13.0-HBase-0.98-bin/bin/log4j.properties
-Dpsql.root.logger=INFO,DRFA -Dpsql.log.dir=/tmp/phoenix -Dpsql.log.file=phoenix-hadoop-traceserver.log
 org.apache.phoenix.tracingwebapp.http.Main
> Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/FilterRegistration
>         at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:134)
>         at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:114)
>         at org.eclipse.jetty.servlet.ServletContextHandler.<init>(ServletContextHandler.java:102)
>         at org.eclipse.jetty.webapp.WebAppContext.<init>(WebAppContext.java:181)
>         at org.apache.phoenix.tracingwebapp.http.Main.run(Main.java:69)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.phoenix.tracingwebapp.http.Main.main(Main.java:52)
> Caused by: java.lang.ClassNotFoundException: javax.servlet.FilterRegistration
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 7 more
> {code}
> The proposed fix is to add {{phoenix_utils.phoenix_queryserver_jar}} to the classpath
like this: https://github.com/alexclear/phoenix/commit/7d1342cbecfcdcd671894643a4f6052a98e2f5b7



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message