LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2016, 07:22 AM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Java/Jetty unable to resolve class dependencies


I've installed the "Gremlin" extension into Neo4j as described here: https://github.com/thinkaurelius/neo4j-gremlin-plugin.

When I run the extension using Curl as shown on that documentation page, I get this in the log:
Code:
15:28:38.716 [qtp1588771273-32] WARN  o.e.jetty.servlet.ServletHandler - /tp/gremlin/execute
java.lang.IllegalArgumentException: Could not resolve dependency of type:javax.transaction.TransactionManager
    at org.neo4j.graphdb.DependencyResolver$Adapter$1.select(DependencyResolver.java:87) ~[neo4j-kernel-2.2.9.jar:2.2.9]
    at org.neo4j.kernel.extension.KernelExtensions.resolveDependency(KernelExtensions.java:112) ~[neo4j-kernel-2.2.9.jar:2.2.9]
Now, the extension directory (as unzipped from what Maven built, as described on that page) does contain the Jar file (jta-1.1.jar) that defines the unresolved class names. No mention is made of $CLASSPATH in the instructions and I therefore conclude that it is not applicable.

(Incidentally, I originally thought that there was a typo in the instructions of what to put into the configuration file, but it's correct, as described here: http://neo4j.com/docs/stable/server-...xtensions.html.)

A Curl query of the server indicates that it thinks it has no extensions:
Code:
curl http://localhost:7474/db/data/
{
  "extensions" : { },
  "node" : "http://localhost:7474/db/data/node",
  "node_index" : "http://localhost:7474/db/data/index/node",
  "relationship_index" : "http://localhost:7474/db/data/index/relationship",
  "extensions_info" : "http://localhost:7474/db/data/ext",
  "relationship_types" : "http://localhost:7474/db/data/relationship/types",
  "batch" : "http://localhost:7474/db/data/batch",
  "cypher" : "http://localhost:7474/db/data/cypher",
  "indexes" : "http://localhost:7474/db/data/schema/index",
  "constraints" : "http://localhost:7474/db/data/schema/constraint",
  "transaction" : "http://localhost:7474/db/data/transaction",
  "node_labels" : "http://localhost:7474/db/data/labels",
  "neo4j_version" : "2.2.9"
}

curl http://localhost:7474/db/data/ext
{ }

Last edited by sundialsvcs; 04-07-2016 at 07:25 AM.
 
Old 04-07-2016, 07:45 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
The following additional information from another log file may or may not be relevant:

Code:
Apr 07, 2016 8:13:23 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  com.thinkaurelius.neo4j.plugins
Apr 07, 2016 8:13:23 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class com.thinkaurelius.neo4j.plugins.GremlinPlugin
Apr 07, 2016 8:13:23 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
This seems to indicate that the plugin's presence was recognized, and that some classes were found but perhaps not others.
 
Old 04-10-2016, 08:12 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659

Original Poster
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I "solved" this problem by building my own PHP analyzer to do the job. Which I should have done long before now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Aptitude: Unable to resolve dependencies. No more solutions. qrange Debian 4 05-16-2015 11:29 AM
Unable to resolve dependencies for the upgrade because the resolver timed out aquaboot Debian 8 05-04-2015 06:04 AM
rpm unable to resolve dependencies abhra Linux - Newbie 4 02-02-2014 01:42 PM
Package updater unable to resolve dependencies FC8 jayunplugged Fedora 2 03-07-2008 09:56 PM
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration