启用非托管扩展配置后,Neo4J服务器启动错误 [英] Neo4J server startup error after enabling the unmanaged extension configuration

查看:240
本文介绍了启用非托管扩展配置后,Neo4J服务器启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows OS 10上使用Neo4J社区版2.3.0.一切正常,直到我将 neo4j-server.properties 文件的配置更改为:

I am using Neo4J community edition 2.3.0 on windows OS 10. Everything works well until I changed the configuration at neo4j-server.properties files as:

 org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged

服务器启动时的错误是:

The error at server startup is:

启动Neo4j失败:org.neo4j.server.web.NeoServletContainer-5b85e832 @ 73766070 == org.neo4j.server.web.NeoServletContainer,-1,false

Starting Neo4j failed: org.neo4j.server.web.NeoServletContainer-5b85e832@73766070==org.neo4j.server.web.NeoServletContainer,-1,false

如果我禁用此更改,则服务器启动会很好.我正在尝试针对Neo4J教程给出的非托管扩展运行HelloWorld示例,并按照所有说明进行操作.

If I disable this change then server starts very well. I am trying to run the HelloWorld example for the unmanaged extension as given with the Neo4J tutorial and follow all the instructions.

用于构建Jar的Java编译器是1.7,我正在使用STS工具.

The Java compiler used to build the Jar is 1.7 and I am working on STS tool.

及早做出反应会有所帮助.

An early response would be helpful.

控制台日志如下

  [o.n.s.d.LifecycleManagingDatabase] Successfully started database
2016-01-04 16:49:08.036+0530 INFO  [o.n.s.CommunityNeoServer] Starting HTTP on port 7474 (4 threads available)
2016-01-04 16:49:08.038+0530 INFO  [o.n.s.m.ThirdPartyJAXRSModule] Mounted    unmanaged extension [org.neo4j.examples.server.unmanaged] at [/examples/unmanaged]
2016-01-04 16:49:08.039+0530 INFO  [o.n.s.w.Jetty9WebServer] Mounting static content at /webadmin
2016-01-04 16:49:08.040+0530 INFO  [o.n.s.w.Jetty9WebServer] Mounting static content at /browser
Jan 04, 2016 4:49:09 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages: org.neo4j.examples.server.unmanaged
 Jan 04, 2016 4:49:09 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
   INFO: Initiating Jersey application, version 'Jersey: 1.19 02/11/2015 03:25 AM'
   Jan 04, 2016 4:49:09 PM com.sun.jersey.server.impl.application.RootResourceUriRules <init>
SEVERE: The ResourceConfig instance does not contain any root resource classes.
 2016-01-04 16:49:09.521+0530 ERROR [o.n.s.CommunityNeoServer] Failed to start Neo Server on port 7474: org.neo4j.server.web.NeoServletContainer-148016ab@5234ecb5==org.neo4j.server.web.NeoServletContainer,-1,false
2016-01-04 16:49:09.522+0530 INFO  [o.n.s.CommunityNeoServer] Successfully shutdown Neo4j Server
 2016-01-04 16:49:11.581+0530 INFO  [o.n.s.d.LifecycleManagingDatabase] Successfully stopped database

推荐答案

问题是您使用的.jar没有所需的.jars

The problem is that the .jar you are using does not have the required .jars

尝试将您的jar导出为可执行jar(我是从Eclipse导出的),并选中将所需的库打包到生成的JAR中"选项

Try exporting the your jar as an executable jar (I did it from Eclipse) and check the option "Package required libraries into generated JAR"

这篇关于启用非托管扩展配置后,Neo4J服务器启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆