andreasronge / neo4j-admin Goto Github PK
View Code? Open in Web Editor NEWThe Neo4j server web console for the embedded neo4j.rb
The Neo4j server web console for the embedded neo4j.rb
With jruby 1.7.2:
=> Booting WEBrick
=> Rails 3.2.15 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Starting local Neo4j using db /home/mak/git/neo4jtest/db/neo4j-development using Java::OrgNeo4jKernel::EmbeddedGraphDatabase
Nov 15, 2013 9:56:28 AM org.neo4j.server.logging.Logger log
INFO: Starting Neo Server on port [7474] with [80] threads available
Nov 15, 2013 9:56:28 AM org.mortbay.log.Slf4jLog info
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
Nov 15, 2013 9:56:28 AM org.neo4j.server.logging.Logger log
INFO: Using database at /home/mak/git/neo4jtest/db/neo4j-development
Exiting
LoadError: load error: /home/mak/git/neo4jtest/config/environment -- java.lang.NoSuchFieldError: remote_shell_enabled
require at org/jruby/RubyKernel.java:1027
parse_file at /home/mak/git/neo4jtest/config.ru:3
instance_eval at org/jruby/RubyBasicObject.java:1691
initialize at /home/mak/.rvm/gems/jruby-1.7.2/gems/rack-1.4.5/lib/rack/builder.rb:51
parse_file at /home/mak/git/neo4jtest/config.ru:0
eval at org/jruby/RubyKernel.java:1066
parse_file at /home/mak/.rvm/gems/jruby-1.7.2/gems/rack-1.4.5/lib/rack/builder.rb:40
app at /home/mak/.rvm/gems/jruby-1.7.2/gems/rack-1.4.5/lib/rack/server.rb:200
app at /home/mak/.rvm/gems/jruby-1.7.2/gems/railties-3.2.15/lib/rails/commands/server.rb:46
wrapped_app at /home/mak/.rvm/gems/jruby-1.7.2/gems/rack-1.4.5/lib/rack/server.rb:304
start at /home/mak/.rvm/gems/jruby-1.7.2/gems/rack-1.4.5/lib/rack/server.rb:254
start at /home/mak/.rvm/gems/jruby-1.7.2/gems/railties-3.2.15/lib/rails/commands/server.rb:70
(root) at /home/mak/.rvm/gems/jruby-1.7.2/gems/railties-3.2.15/lib/rails/commands.rb:55
tap at org/jruby/RubyKernel.java:1754
(root) at /home/mak/.rvm/gems/jruby-1.7.2/gems/railties-3.2.15/lib/rails/commands.rb:50
require at org/jruby/RubyKernel.java:1027
(root) at script/rails:6
Neo4j has been shutdown using storage_path: /home/mak/git/neo4jtest/db/neo4j-development
The Cypher Console does not work on JRuby 1.7.x because a missmatch of JARs (jline.Terminal seems to be used by both JRuby and Neo4j)
java.lang.IncompatibleClassChangeError: Found interface jline.Terminal, but class was expected
using neo4j 1.3.1, rails 3.1.0, neo4j-admin < 0.1.0... shell command 'rails g', 'rails g model', etc. try to start the server but shouldn't since user is just trying to get help info on the 'generate' command.
Setting up on an app with rails 3.2.2 and neo4jrb 2.0.0 alpha. What's this mean?
On running rails s
:
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Starting Neo Server on port [7474] with [80] threads available
2012-03-31 11:47:35.112:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Using database at /Users/peter/Rails/zendestiny/db/neo4j-development
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
WARNING: No database tuning properties set in the property file, using defaults. Please specify the performance properties file with org.neo4j.server.db.tuning.properties in the server properties file [null].
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Mounted discovery module at [/]
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Loaded server plugin "CypherPlugin"
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Loaded server plugin "GremlinPlugin"
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Mounted REST API at [/db/data]
Mar 31, 2012 11:47:35 AM org.neo4j.server.logging.Logger log
INFO: Mounted management API at [/db/manage]
Exiting
NativeException: java.lang.NoSuchMethodError: org.neo4j.kernel.Config.getGraphDbModule()Lorg/neo4j/kernel/impl/core/GraphDbModule;
Neo4jAdmin at /Users/peter/.rvm/gems/jruby-1.6.7/gems/neo4j-admin-0.0.2-java/lib/neo4j-admin/railtie.rb:8
call at org/jruby/RubyProc.java:258
execute_hook at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:34
run_load_hooks at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:43
each at org/jruby/RubyArray.java:1615
run_load_hooks at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:42
Finisher at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/application/finisher.rb:59
instance_exec at org/jruby/RubyBasicObject.java:1757
run at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/initializable.rb:30
run_initializers at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/initializable.rb:55
each at org/jruby/RubyArray.java:1615
run_initializers at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/initializable.rb:54
initialize! at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/application.rb:136
__send__ at org/jruby/RubyBasicObject.java:1698
send at org/jruby/RubyKernel.java:2097
method_missing at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30
(root) at /Users/peter/Rails/zendestiny/config/environment.rb:5
require at org/jruby/RubyKernel.java:1042
require at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251
load_dependency at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:236
require at /Users/peter/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/dependencies.rb:251
parse_file at /Users/peter/Rails/zendestiny/config/environment.rb:4
instance_eval at org/jruby/RubyBasicObject.java:1730
initialize at /Users/peter/.rvm/gems/jruby-1.6.7/gems/rack-1.4.1/lib/rack/builder.rb:51
parse_file at /Users/peter/Rails/zendestiny/config.ru:1
eval at org/jruby/RubyKernel.java:1088
parse_file at /Users/peter/.rvm/gems/jruby-1.6.7/gems/rack-1.4.1/lib/rack/builder.rb:40
app at /Users/peter/.rvm/gems/jruby-1.6.7/gems/rack-1.4.1/lib/rack/server.rb:200
app at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/commands/server.rb:46
wrapped_app at /Users/peter/.rvm/gems/jruby-1.6.7/gems/rack-1.4.1/lib/rack/server.rb:301
start at /Users/peter/.rvm/gems/jruby-1.6.7/gems/rack-1.4.1/lib/rack/server.rb:252
start at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/commands/server.rb:70
(root) at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/commands.rb:55
tap at org/jruby/RubyKernel.java:1787
(root) at /Users/peter/.rvm/gems/jruby-1.6.7/gems/railties-3.2.2/lib/rails/commands.rb:50
require at org/jruby/RubyKernel.java:1042
(root) at script/rails:6
i'm using jruby 1.7 rc2; neo4j-community 1.8.RC1; neo4j-admin 0.2.0
i followed the guide but got this when starting the server. the app works fine, but the webadmin cannot start.
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 11: jar:file:E:\jruby-1.7.0.RC2\lib\ruby\gems\shared\gems\neo4j-admin-0.2.0-java\lib\neo4j-admin\jars\neo4j-server-1.8.RC1-static-web.jar!/webadmin-html
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parse(URI.java:3019)
at java.net.URI.(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at org.neo4j.server.web.Jetty6WebServer.loadStaticContent(Jetty6WebServer.java:429)
The neo4j-admin server starts, but when showing the graph view I get the following error in the server logs:
java.lang.NoSuchMethodError: org.neo4j.graphdb.traversal.Evaluators.toDepth(I)Lorg/neo4j/graphdb/traversal/Evaluator;
I'm just getting started with Neo4j, so forgive me if I'm doing something stupid.
I'm using JRuby 1.7 RC1 (but this also happened with 1.6.8) and the stock neo4j and neo4j-admin gems from Rubygems.
I've added the railtie to config/application.rb and I get this:
Starting local Neo4j using db /Users/jalada/Development/super-sun-graph/db/neo4j-development using Java::OrgNeo4jKernel::EmbeddedGraphDatabase
Sep 27, 2012 9:42:24 AM org.neo4j.server.logging.Logger log
INFO: Starting Neo Server on port [7474] with [40] threads available
Sep 27, 2012 9:42:24 AM org.mortbay.log.Slf4jLog info
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
Sep 27, 2012 9:42:24 AM org.neo4j.server.logging.Logger log
INFO: Using database at /Users/jalada/Development/super-sun-graph/db/neo4j-development
LoadError: load error: /Users/jalada/Development/super-sun-graph/config/environment -- java.lang.NoSuchFieldError: udc_source
require at org/jruby/RubyKernel.java:1019
require_environment! at /Users/jalada/.rvm/gems/jruby-1.7.0.RC1/gems/railties-3.2.8/lib/rails/application.rb:103
(root) at /Users/jalada/.rvm/gems/jruby-1.7.0.RC1/gems/railties-3.2.8/lib/rails/commands.rb:40
require at org/jruby/RubyKernel.java:1019
(root) at script/rails:6
I have tried different versions of gems, as well as pulling from git. All configurations seem to result in the same error:
18:14:50,461 SEVERE com.sun.jersey.server.impl.application.WebApplicationImpl The RuntimeException could not be mapped to a response, re-throwing to the HTTP container: java.lang.NullPointerException
Full log message: http://pastie.org/pastes/4829082/text
Gemfile: http://pastie.org/pastes/4829091/text
Neo4j itself seems to work fine. The application does actually start, I can sign-up and login without issue. Torquebox seems to be working as expected, the JBoss console and everything looks OK. As far as I can tell, the issue is scoped to neo4j-admin.
Thoughts?
I'm using rails 3.1.0 & jruby 1.7.0.preview1 and this gem:
I followed directions to hookup the web admin interface but when I run 'rails s' in dev I get:
config/environment -- java.lang.NoClassDefFoundError: org/neo4j/kernel/GraphDatabaseAPI
require at org/jruby/RubyKernel.java:991
parsefile at .../config.ru:4
...
...
I'll keep investigating.e
When starting the rails server using Jruby 1.7.3:
LoadError: load error: jruby-openssl -- java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z
require at org/jruby/RubyKernel.java:1027
require at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/bundler-1.3.5/lib/bundler/runtime.rb:72
each at org/jruby/RubyArray.java:1613
require at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/bundler-1.3.5/lib/bundler/runtime.rb:70
each at org/jruby/RubyArray.java:1613
require at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/bundler-1.3.5/lib/bundler/runtime.rb:59
require at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/bundler-1.3.5/lib/bundler.rb:132
(root) at /Users/smthmarketable/Documents/Code/NBConcept/Projects/Messenger/config/application.rb:14
require at org/jruby/RubyKernel.java:1027
(root) at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/railties-3.2.13/lib/rails/commands.rb:1
tap at org/jruby/RubyKernel.java:1771
(root) at /Library/Frameworks/JRuby.framework/Gems/1.9/gems/railties-3.2.13/lib/rails/commands.rb:53
require at org/jruby/RubyKernel.java:1027
(root) at script/rails:6
Not sure if that's possible at all, but it would be greatly beneficial as we could just secure the admin part from the application itself.
Uncaught exception: undefined method `started_db' for Neo4j:Module
i get this error when start my rails app.
why??
thanks thanks.
Webadmin works just fine when I want a list of nodes or to see all relationships of a specific node but when I press the view mode I just get a grey screen instead of my graph as if I have no data.
I followed steps in 'How' section but localhost:7474 doesn't seem to work for me. Do I need to do anything else?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.