Zookeeper Start ClassNotFoundException

Source: Internet
Author: User

Exception in Thread "Thread-1" Java.lang.noclassdeffounderror:org/apache/log4j/jmx/Hierarchydynamicmbean
At org.apache.zookeeper.jmx.Managedutil.Registerlog4jmbeans (managedutil.java:50)
At Org.apache.zookeeper.server.Quorum. Quorumpeermain.runfromconfig (quorumpeermain.java:122)
At Com.complexible.stardog.pack.CLI. Zkstart$1.run (Zkstart.java:119)
At Java.lang.Thread.run (Unknown Source)
caused By:java.lang.ClassNotFoundException:org.apache.log4j.jmx.Hierarchydynamicmbean
At Java.net.urlclassloader$1.run (Unknown Source)
At Java.net.urlclassloader$1.run (Unknown Source)
At java.security.accesscontroller.doprivileged (Native Method)
At Java.net.URLClassLoader.Findclass (Unknown Source)
At Java.lang.ClassLoader.loadclass (Unknown Source)
At sun.misc.launcher$Appclassloader.loadclass (Unknown Source)
At Java.lang.ClassLoader.loadclass (Unknown Source)

        ... 4 More

simply put, this question was tossing me an afternoon, and later found to be a jar package conflict

because I had previously added a log4j jar package to the $JAVA _home/jre/lib/ext/, the operation of ZK here was an error,

Well, then _home the log4j of the $JAVA/jre/lib/ext/ .

Zookeeper Start ClassNotFoundException

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.