Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt
After I finally figured out that one of my main problems was with the version of jersey used (I upgraded to 1.10), I copied over the static web dependency to the lib folder and it worked as well. But your approach is much nicer. Will give it a try. On Thu, Nov 17, 2011 at 1:40 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Great, Thanks for sharing it! Would love to see this in some public place to be able to refer to it. Gut it on Github somewhere? On Nov 17, 2011 1:35 PM, g-eorge geo...@wearewalter.com wrote: I added the following to my .sbt file and everything appears to work fine so far.. libraryDependencies ++= Seq( org.neo4j.app % neo4j-server % 1.5, org.neo4j.app % neo4j-server % 1.5 classifier static-web from http://m2.neo4j.org/releases/org/neo4j/app/neo4j-server/1.5/neo4j-server-1.5-static-web.jar , com.sun.jersey % jersey-core % 1.9 ) resolvers ++= Seq( tinkerprop at http://tinkerpop.com/maven2; ) -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Using-the-WrappingNeoServerBootstrapper-with-sbt-tp3477583p3515594.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt
I tried it initially but couldn't get it to work because as soon as I included the static-web classifier, the server jar was apparently not used. I opened a thread in the sbt group (http://groups.google.com/group/simple-build-tool/browse_thread/thread/15639ba10ddec6cd) but didn't get a response so far. When using inline ivy dependencies I at least get both the static-web and the server jar included. But apparently something is still missing. On Fri, Nov 4, 2011 at 7:38 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Markus, have you tried the SBT classifiers to get to the same result like Ivy? http://code.google.com/p/simple-build-tool/wiki/LibraryManagement#Classifiers Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Thu, Nov 3, 2011 at 9:58 AM, Markus Joschko markus.josc...@gmail.com wrote: Peter, I do not exactly have the tutorial running but I have a setup where I can use neo4j and add/read nodes. So using neo4j with my current setup is no problem. Starting the embedded server is. Regards, Markus On Thu, Nov 3, 2011 at 5:29 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Markus, could you first try to get the tutorial up and running so you have a working baseline? SBT and Ivy is a quirky combination - not sure myself what is going on there at all times. From there, we could try working our way down ... Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Thu, Nov 3, 2011 at 9:27 AM, Markus Joschko markus.josc...@gmail.com wrote: Hi Peter, I have seen your posts and the projects. I tried to mimic the setup as close as possible. However I also do my first steps in sbt which doesn't make it easier. My best guess is, that I am missing a jetty dependency. Does the web interface of the server need jsp support, e.g? These lines seem to be the most interesting regarding the error: INFO: NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet Nov 3, 2011 5:02:20 PM com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found. ivyXML := dependencies dependency org=org.neo4j.app name=neo4j-server rev=1.5-SNAPSHOT artifact name=neo4j-server type=jar / artifact name=neo4j-server type=jar m:classifier=static-web/ /dependency dependency org=org.neo4j name=neo4j-community rev=1.5-SNAPSHOT / dependency org=org.neo4j name=neo4j-kernel rev=1.5-SNAPSHOT/ dependency org=org.codehaus.jackson name=jackson-core-asl rev=1.7.5 / dependency org=org.codehaus.jackson name=jackson-mapper-asl rev=1.7.5 / dependency org=org.mortbay.jetty name=jetty rev=6.1.25 / dependency org=org.rrd4j name=rrd4j rev=2.0.7 transitive=false / dependency org=com.sun.jersey name=jersey-client rev=1.6 / dependency org=com.sun.jersey name=jersey-core rev=1.6 / dependency org=com.sun.jersey name=jersey-server rev=1.6 / dependency org=org.aspectj name=aspectjrt rev=1.6.11/ dependency org=org.aspectj name=aspectjtools rev=1.6.11/ /dependencies On Thu, Nov 3, 2011 at 5:09 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Markus, I just spent a number of afternoons getting into the guts of Ivy and Maven classifiers for the Dr. Who manual. To set up the server dependencies in Ivy (which SBT uses under the hood), refer to https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivy.xml and https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivysettings.xml which make Ivy aware of the fact that there are number of artifacts needed with the same group and artifact id but different classifiers. Does that work? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org
[Neo4j] Using the WrappingNeoServerBootstrapper with sbt
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 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt
Hi Peter, I have seen your posts and the projects. I tried to mimic the setup as close as possible. However I also do my first steps in sbt which doesn't make it easier. My best guess is, that I am missing a jetty dependency. Does the web interface of the server need jsp support, e.g? These lines seem to be the most interesting regarding the error: INFO: NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet Nov 3, 2011 5:02:20 PM com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found. ivyXML := dependencies dependency org=org.neo4j.app name=neo4j-server rev=1.5-SNAPSHOT artifact name=neo4j-server type=jar / artifact name=neo4j-server type=jar m:classifier=static-web/ /dependency dependency org=org.neo4j name=neo4j-community rev=1.5-SNAPSHOT / dependency org=org.neo4j name=neo4j-kernel rev=1.5-SNAPSHOT/ dependency org=org.codehaus.jackson name=jackson-core-asl rev=1.7.5 / dependency org=org.codehaus.jackson name=jackson-mapper-asl rev=1.7.5 / dependency org=org.mortbay.jetty name=jetty rev=6.1.25 / dependency org=org.rrd4j name=rrd4j rev=2.0.7 transitive=false / dependency org=com.sun.jersey name=jersey-client rev=1.6 / dependency org=com.sun.jersey name=jersey-core rev=1.6 / dependency org=com.sun.jersey name=jersey-server rev=1.6 / dependency org=org.aspectj name=aspectjrt rev=1.6.11/ dependency org=org.aspectj name=aspectjtools rev=1.6.11/ /dependencies On Thu, Nov 3, 2011 at 5:09 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Markus, I just spent a number of afternoons getting into the guts of Ivy and Maven classifiers for the Dr. Who manual. To set up the server dependencies in Ivy (which SBT uses under the hood), refer to https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivy.xml and https://github.com/jimwebber/neo4j-tutorial/blob/master/settings/ivysettings.xml which make Ivy aware of the fact that there are number of artifacts needed with the same group and artifact id but different classifiers. Does that work? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Thu, Nov 3, 2011 at 9:03 AM, Markus Joschko markus.josc...@gmail.com wrote: 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