Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13954

Embedded ZooKeeper in Solr fails to load JettyAdminServer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.2, 8.3
    • 8.4
    • None

    Description

      Running solr with the embedded zookeeper, e.g. when running solr -e cloud results in a ClassNotFoundException / NoClassDefFoundError in the log as below. The server still functions correctly (except JettyAdminServer won't work obviously), but it looks like a problem, and isn't good for a first time user to see

      2019-11-21 17:25:14.292 INFO  (main) [   ] o.a.s.c.SolrZkServer STARTING EMBEDDED STANDALONE ZOOKEEPER SERVER at port 9983
      2019-11-21 17:25:14.792 INFO  (main) [   ] o.a.s.c.ZkContainer Zookeeper client=localhost:9983
      2019-11-21
       17:25:18.833 WARN  (Thread-13) [   ] o.a.z.s.a.AdminServerFactory 
      Unable to load jetty, not starting JettyAdminServer => java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector
      	at java.lang.Class.forName0(Native Method)
      java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector
      	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_191]
      	at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_191]
      	at org.apache.zookeeper.server.admin.AdminServerFactory.createAdminServer(AdminServerFactory.java:43) ~[?:?]
      	at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ZooKeeperServerMain.java:136) ~[?:?]
      	at org.apache.solr.cloud.SolrZkServer$1.run(SolrZkServer.java:121) ~[?:?]
      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector
      	at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:577) ~[jetty-webapp-9.4.19.v20190610.jar:9.4.19.v20190610]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_191]
      	... 5 more
      2019-11-21 17:25:19.365 INFO  (main) [   ] o.a.s.c.c.ConnectionManager Waiting for client to connect to ZooKeeper
      2019-11-21 17:25:19.396 INFO  (zkConnectionManagerCallback-7-thread-1) [   ] o.a.s.c.c.ConnectionManager zkClient has connected
      2019-11-21 17:25:19.396 INFO  (main) [   ] o.a.s.c.c.ConnectionManager Client is connected to ZooKeeper

      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              colvinco Colvin Cowie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m