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] [Created] (PHOENIX-4427) Java classpath is incomplete in the Phoenix Tracing Web Application startup script
Date Fri, 01 Dec 2017 15:21:00 GMT
Alex Chistyakov created PHOENIX-4427:
----------------------------------------

             Summary: 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