[Neo4j] Using the WrappingNeoServerBootstrapper with sbt

Markus Joschko markus.joschko at gmail.com
Thu Nov 3 17:03:12 CET 2011


Has anybody had success in getting an embedded neo4j-server running with sbt?

I had some trouble in getting the dependencies but now it at least
compiles and starts up. However the start ultimately failed.
Before switching back to maven I wanted to ask whether someone has a
working sbt setup and can share the build.sbt?

BTW, the error I encounter at the moment (doesn't seem to be caused by
a missing dependency):


INFO: Starting Neo Server on port [7474] with [80] threads available
Nov 3, 2011 5:01:17 PM org.mortbay.log.Slf4jLog info
INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log)
via org.mortbay.log.Slf4jLog
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Using database at /tmp/tmp-neo-test
Nov 3, 2011 5:01:17 PM 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].
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Mounted discovery module at [/]
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Mounted REST API at [/db/data]
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Mounted management API at [/db/manage]
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Mounted webadmin at [/webadmin]
Nov 3, 2011 5:01:17 PM org.neo4j.server.logging.Logger log
INFO: Mounting static content at [/webadmin] from [webadmin-html]
Nov 3, 2011 5:01:17 PM org.mortbay.log.Slf4jLog info
INFO: jetty-6.1.25
Nov 3, 2011 5:01:17 PM org.mortbay.log.Slf4jLog info
INFO: NO JSP Support for /webadmin, did not find
org.apache.jasper.servlet.JspServlet
Nov 3, 2011 5:01:17 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.neo4j.server.webadmin.rest
Nov 3, 2011 5:01:17 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class org.neo4j.server.webadmin.rest.ConsoleService
  class org.neo4j.server.webadmin.rest.JmxService
  class org.neo4j.server.webadmin.rest.RootService
  class org.neo4j.server.webadmin.rest.MonitorService
Nov 3, 2011 5:01:17 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Nov 3, 2011 5:01:17 PM org.mortbay.log.Slf4jLog warn
SEVERE: unavailable
com.sun.jersey.api.container.ContainerException: No WebApplication
provider is present
        at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:69)
        at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:391)
        at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:306)
        at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:607)
        at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)
        at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
        at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
        at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.neo4j.server.web.Jetty6WebServer.startJetty(Jetty6WebServer.java:168)
        at org.neo4j.server.web.Jetty6WebServer.start(Jetty6WebServer.java:105)
        at org.neo4j.server.NeoServerWithEmbeddedWebServer.startWebServer(NeoServerWithEmbeddedWebServer.java:252)
        at org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:106)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87)
        at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:76)

Regards,
 Markus


More information about the User mailing list