graphaware / neo4j-framework

GraphAware Neo4j Framework
244 stars 68 forks source link

Installation fails 'The ResourceConfig instance does not contain any root resource classes' #39

Closed Danielss89 closed 8 years ago

Danielss89 commented 8 years ago

Hi I'm trying to install TimeTree(and graphaware framework). I've copied the timetree and framework .jar files into plugins folder added org.neo4j.server.thirdparty_jaxrs_classes=com.graphaware.server=/graphaware to the end of /etc/neo4j/neo4j-server.properties but i'm getting an error when restarting neo4j:

The ResourceConfig instance does not contain any root resource classes.

Full error log here: https://gist.github.com/Danielss89/01bb24ccaae0f23a988a

ikwattro commented 8 years ago

Hi,

Can you provide the neo4j version, framework and timetree versions you are using.

I just tested on Neo4j 2.3.1 Community and Enteprise versions :

Framework : graphaware-server-community-all-2.3.1.36.jar Timetree : graphaware-timetree-2.3.1.36.24.jar

And I have nothing in the logs :

ikwattro@graphaware ~/d/_/c231> tail -f data/log/console.log
00:06:46.325 [main] INFO  c.g.r.b.RuntimeKernelExtension - GraphAware Runtime enabled, bootstrapping...
00:06:46.343 [main] INFO  c.g.r.b.RuntimeKernelExtension - Bootstrapping module with order 1, ID TT, using com.graphaware.module.timetree.module.TimeTreeModuleBootstrapper
00:06:46.475 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Node Inclusion Strategy set to com.graphaware.common.policy.composite.CompositeNodeInclusionPolicy@690beb6a
00:06:46.477 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Timestamp Property set to time
00:06:46.477 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Custom TimeTree Root Property set to rootId
00:06:46.478 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Resolution set to MILLISECOND
00:06:46.511 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Time zone set to +01:00
00:06:46.511 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Relationship type set to OCCURED_ON
00:06:46.512 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - Direction set to INCOMING
00:06:46.512 [main] INFO  c.g.m.t.m.TimeTreeModuleBootstrapper - AutoAttach set to true
00:06:46.519 [main] INFO  c.g.runtime.BaseGraphAwareRuntime - Registering module TT with GraphAware Runtime.
00:06:46.523 [main] INFO  c.g.r.b.RuntimeKernelExtension - GraphAware Runtime bootstrapped, starting the Runtime...
00:06:46.627 [GraphAware Starter] INFO  c.g.runtime.BaseGraphAwareRuntime - Starting GraphAware...
00:06:46.627 [GraphAware Starter] INFO  c.g.runtime.BaseGraphAwareRuntime - Loading module metadata...
00:06:46.627 [GraphAware Starter] INFO  c.g.r.manager.BaseModuleManager - Loading metadata for module TT
00:06:46.672 [GraphAware Starter] INFO  c.g.r.manager.BaseModuleManager - Module TT seems to have been registered for the first time.
00:06:46.672 [GraphAware Starter] INFO  c.g.r.m.BaseTxDrivenModuleManager - Module TT seems to have been registered for the first time, will initialize...
00:06:46.783 [GraphAware Starter] DEBUG c.g.t.e.b.IterableInputBatchTransactionExecutor - Successfully executed 0 (out of 0 ) steps in 1 batches
00:06:46.783 [GraphAware Starter] INFO  c.g.r.manager.BaseModuleManager - Creating fresh metadata for module TT.
00:06:46.784 [GraphAware Starter] INFO  c.g.r.m.BaseTxDrivenModuleManager - Module TT has not changed configuration since last run, already initialized.
00:06:46.846 [GraphAware Starter] INFO  c.g.runtime.BaseGraphAwareRuntime - Module metadata loaded.
00:06:46.846 [GraphAware Starter] INFO  c.g.r.m.BaseTxDrivenModuleManager - Starting transaction-driven modules...
00:06:46.847 [GraphAware Starter] INFO  c.g.r.m.BaseTxDrivenModuleManager - Transaction-driven modules started.
00:06:46.847 [GraphAware Starter] INFO  c.g.r.schedule.RotatingTaskScheduler - There are no timer-driven runtime modules. Not scheduling any tasks.
00:06:46.847 [GraphAware Starter] INFO  c.g.runtime.BaseGraphAwareRuntime - GraphAware started.
00:06:46.847 [GraphAware Starter] INFO  c.g.r.b.RuntimeKernelExtension - GraphAware Runtime automatically started.
2015-11-27 00:06:47.843+0100 INFO  Successfully started database
2015-11-27 00:06:47.859+0100 INFO  Starting HTTP on port 7474 (4 threads available)
2015-11-27 00:06:48.011+0100 INFO  Enabling HTTPS on port 7473
2015-11-27 00:06:48.024+0100 INFO  Mounted unmanaged extension [com.graphaware.server] at [/graphaware]
2015-11-27 00:06:48.077+0100 INFO  Mounting static content at /webadmin
2015-11-27 00:06:48.139+0100 INFO  Mounting static content at /browser
00:06:48.360 [main] INFO  c.g.s.f.b.GraphAwareBootstrappingFilter - Mounting GraphAware Framework at /graphaware
00:06:48.380 [main] INFO  c.g.s.f.c.GraphAwareWebContextCreator - Will try to scan the following packages: {com.**.graphaware.**,org.**.graphaware.**,net.**.graphaware.**}
00:06:49.885 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:49.912 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:49.917 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:50.602 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:50.787 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:51.076 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
00:06:51.076 [main] DEBUG c.g.s.t.LongRunningTransactionFilter - Initializing com.graphaware.server.tx.LongRunningTransaction
2015-11-27 00:06:51.738+0100 INFO  Remote interface ready and available at http://localhost:7474/
Danielss89 commented 8 years ago

graphaware-server-community-all-2.3.1.36 graphaware-timetree-2.3.1.36.24 graphaware-uuid-2.3.1.36.7

Neo4j: 2.3.1 Community

If i remove the line in neo4j-server.properties neo4j starts, but doesn't have the plugins. This is on Ubuntu 14.04.

bachmanm commented 8 years ago

This is weird... what's the output of ls -alh of your plugins directory? The error looks like you do not have the framework .jar in plugins.

Danielss89 commented 8 years ago
[07:13 PM]-[root@frievent]-[/var/lib/neo4j/plugins] 
# ls -alh
total 14M
drwxr-xr-x 2 neo4j adm  4.0K Nov 26 21:47 ./
drwxr-xr-x 5 neo4j adm  4.0K Nov 18 10:51 ../
-rw-r--r-- 1 neo4j adm   273 Nov 10 14:15 README.txt
-rw-r----- 1 root  root  13M Nov 26 21:47 graphaware-server-community-all-2.3.1.36.jar
-rw-r----- 1 root  root 628K Nov 26 21:32 graphaware-timetree-2.3.1.36.24.jar
-rw-r----- 1 root  root  14K Nov 26 21:33 graphaware-uuid-2.3.1.36.7.jar
bachmanm commented 8 years ago

Permissons? :)

Danielss89 commented 8 years ago

What should the be?

bachmanm commented 8 years ago

Try neo4j:adm also for the plugins...

bachmanm commented 8 years ago

success?

Danielss89 commented 8 years ago

yes, just changed the permissions, and now it works! thanks.