I've run into the same problem here. And this is what my jar file looks like
*$ jar tf unmanaged-extension-template-1.0.jar * *META-INF/* *META-INF/MANIFEST.MF* *com/* *com/neo4j/* *com/neo4j/example/* *com/neo4j/example/extension/* *com/neo4j/example/extension/MyService$Labels.class* *com/neo4j/example/extension/MyService$RelTypes.class* *com/neo4j/example/extension/MyService.class* *META-INF/maven/* *META-INF/maven/unmanaged-extension-template/* *META-INF/maven/unmanaged-extension-template/unmanaged-extension-template/* *META-INF/maven/unmanaged-extension-template/unmanaged-extension-template/pom.xml* *META-INF/maven/unmanaged-extension-template/unmanaged-extension-template/pom.properties* I used the extension from https://github.com/dmontag/neo4j-unmanaged-extension-template btw. On Wednesday, December 14, 2011 at 2:54:28 PM UTC+8, KentFitch wrote: > > Hi > I'm wondering if the issued described here was resolved: > > http://neo4j.org/nabble/#nabble-td3475710 > > I'm using version 1.5 (not a milestone). Everything "normal" works, > but I cant get the unmanaged hello world to work, running it unchanged > and placing the jar in lib and plugins and the required config in > server.config. > > -- > HTTP ERROR 503 > > Problem accessing /examples/unmanaged/helloworld/55555. Reason: > > com.sun.jersey.api.container.ContainerException: The > ResourceConfig instance does not contain any root resource classes. > > Caused by: > > javax.servlet.UnavailableException: > com.sun.jersey.api.container.ContainerException: The ResourceConfig > instance does not contain any root resource classes. > at > org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java: > 415) > > -- > But before I even attempt to run the unmanaged url, this error happens > at startup, which I suspect is related: > > .. > > Dec 14, 2011 4:38:42 PM com.sun.jersey.api.core.PackagesResourceConfig > init > INFO: Scanning for root resource and provider classes in the packages: > org.neo4j.server.rest.discovery > Dec 14, 2011 4:38:42 PM com.sun.jersey.api.core.ScanningResourceConfig > logClasses > INFO: Root resource classes found: > class org.neo4j.server.rest.discovery.DiscoveryService > Dec 14, 2011 4:38:42 PM com.sun.jersey.api.core.ScanningResourceConfig > init > INFO: No provider classes found. > Dec 14, 2011 4:38:42 PM com.sun.jersey.spi.service.ServiceFinder > filterServiceURLsWithVersion > FINE: Including service URL: jar:file:/home/kfitch/neo/neo4j- > community-1.5/system/lib/jersey-server-1.9.jar!/META-INF/services/ > com.sun.jersey.spi.container.Web > ApplicationProvider > Dec 14, 2011 4:38:42 PM > com.sun.jersey.server.impl.ejb.EJBComponentProviderFactoryInitilizer > initialize > CONFIG: The EJB interceptor binding API is not available. JAX-RS EJB > support is disabled. > javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application resource > file: java.naming.factory.initial > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java: > 645) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) > at > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java: > 325) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > at > > com.sun.jersey.server.impl.ejb.EJBComponentProviderFactoryInitilizer.initialize(EJBComponentProviderFactoryInitilizer.java: > 64) > at > > com.sun.jersey.spi.container.servlet.WebComponent.configure(WebComponent.java: > 574) > at com.sun.jersey.spi.container.servlet.ServletContainer > $InternalWebComponent.configure(ServletContainer.java:311) > at > com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java: > 608) > 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.main(Bootstrapper.java:52) > Dec 14, 2011 4:38:42 PM > com.sun.jersey.server.impl.cdi.CDIComponentProviderFactoryInitializer > initialize > CONFIG: The CDI BeanManager is not available. JAX-RS CDI support is > disabled. > javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application resource > file: java.naming.factory.initial > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java: > 645) > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) > at > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java: > 325) > at javax.naming.InitialContext.lookup(InitialContext.java:392) > at > > com.sun.jersey.server.impl.cdi.CDIComponentProviderFactoryInitializer.initialize(CDIComponentProviderFactoryInitializer.java: > 66) > at > > com.sun.jersey.spi.container.servlet.WebComponent.configure(WebComponent.java: > 576) > at com.sun.jersey.spi.container.servlet.ServletContainer > $InternalWebComponent.configure(ServletContainer.java:311) > at > com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java: > 608) > 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.main(Bootstrapper.java:52) > Dec 14, 2011 4:38:42 PM > > com.sun.jersey.server.impl.managedbeans.ManagedBeanComponentProviderFactoryInitilizer > initialize > CONFIG: The managed beans injection manager API is not available. JAX- > RS managed beans support is disabled. > javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application resource > file: java.naming.factory.initial > ... > > I wondering what jar files I need at run time. Aside from the > "usual", I've added these to /lib: > > jsr311-api-1.1.1.jar > jaxb-impl-2.1.13.jar > jaxb-api-2.1.jar > commons-configuration-1.6.jar > neo4j-server-1.5.jar > server-api-1.5.jar > > Thanks, > > Kent Fitch > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.