Colvin Cowie created SOLR-13954:
-----------------------------------

             Summary: Embedded ZooKeeper in Solr fails to load JettyAdminServer
                 Key: SOLR-13954
                 URL: https://issues.apache.org/jira/browse/SOLR-13954
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.3, 8.2
            Reporter: Colvin Cowie


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
{noformat}
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{noformat}
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to