error to connect to voldemort

70 views
Skip to first unread message

Morteza Alipour

unread,
Jul 1, 2014, 12:42:23 PM7/1/14
to project-...@googlegroups.com
hi
i'm new to voldemort and i want to connect to voldemort but i got this error

Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content
at voldemort.client.AbstractStoreClientFactory.<clinit>(AbstractStoreClientFactory.java:89)
at voldemort_example.Voldemort_Main.main(Voldemort_Main.java:15)
Caused by: java.lang.ClassNotFoundException: org.jdom.Content
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)

i'm running it on default single_node_cluster config with default example in voldemort website
Thanks

Brendan Harris

unread,
Jul 1, 2014, 12:50:21 PM7/1/14
to project-...@googlegroups.com

Hi Morteza,

Sorry if I am asking a dumb question, but did you compile it with ant before running it?

If so, can you show us the commands you ran and which directory you ran them from?

Thanks,

Brendan

--
You received this message because you are subscribed to the Google Groups "project-voldemort" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-voldem...@googlegroups.com.
Visit this group at http://groups.google.com/group/project-voldemort.
For more options, visit https://groups.google.com/d/optout.

Morteza Alipour

unread,
Jul 2, 2014, 4:11:24 AM7/2/14
to project-...@googlegroups.com
yes i compile it with ant
i use this website to run it step by step

i can connect to voldemort with shell but when i want to connect to it with java i got that error

sorry about my English
thanks

Brendan Harris (a.k.a. stotch on irc.oftc.net)

unread,
Jul 2, 2014, 11:50:54 AM7/2/14
to project-...@googlegroups.com
On Wednesday, July 2, 2014 1:11:24 AM UTC-7, Morteza Alipour wrote:
yes i compile it with ant

OK, good to know. 
That is a very old post, but this is the official getting started page:

It's not very different from the one you're using, though.
 
i can connect to voldemort with shell but when i want to connect to it with java i got that error

OK, then. It seems your problem is that you're missing 3rd-party classes.

Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/Content

That is jdom, which is the java version of DOM (xml). It is used to parse the XML metadata files. The 3rd-party classes are in voldemort/lib, but you may also want to import your own. You just need to get them into your classpath. You should probably start by adding the voldemort/lib to your classpath.

Brendan

Morteza Alipour

unread,
Jul 5, 2014, 6:45:50 AM7/5/14
to project-...@googlegroups.com
Thank you Brendan
it works fine :)
Reply all
Reply to author
Forward
0 new messages