I found the problem - I had included the dependencies for 
com.tinkerpop.blueprints in my pom.xml (blueprints-core and 
blueprints-orient-graph). These are not necessary with the latest version 
of OrientDB. Removing those dependencies solved my problem and I am able to 
connect to the remote database now.

-John
On Tuesday, February 17, 2015 at 4:23:59 PM UTC-8, John Firman wrote:
>
> I have set up a server running OrientDB 2.0.2 and am trying to connect to 
> it using the Java API. Here is the code:
>
>       OrientGraphFactory ogf = new OrientGraphFactory(
> "remote:xxx.xxx.xxx.xxx:2424/mygraphdb", "admin", "admin");
>
>       OrientGraph graph = ogf.getTx();
>
> Here is the stack trace of the error that is thrown:
> java.lang.NoClassDefFoundError: 
> com/orientechnologies/orient/core/db/record/ODatabaseRecord
>
>  at 
> com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getTx(OrientGraphFactory.java:71)
>
>  at com.qualpay.gdb.GraphConnector.main(GraphConnector.java:295)
>
> Caused by: java.lang.ClassNotFoundException: 
> com.orientechnologies.orient.core.db.record.ODatabaseRecord
>
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>
>  at java.security.AccessController.doPrivileged(Native Method)
>
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>
>
>  ... 2 more
>
>
>
> Research indicates that ODatabaseRecord was discarded in a previous commit 
> to the code base and I've made absolutely sure that I'm using the most 
> updated .jars in my classpath. Any assistance with what I am doing wrong, 
> or if there is a bug here would be greatly appreciated.
>
> -John
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to