Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 启用非托管扩展配置后Neo4J服务器启动错误_Java_Neo4j_Unmanaged_Neo4j Embedded - Fatal编程技术网

Java 启用非托管扩展配置后Neo4J服务器启动错误

Java 启用非托管扩展配置后Neo4J服务器启动错误,java,neo4j,unmanaged,neo4j-embedded,Java,Neo4j,Unmanaged,Neo4j Embedded,我正在windows OS 10上使用Neo4J社区版2.3.0。在我更改neo4j服务器的配置之前,一切正常。属性文件如下: org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged 服务器启动时的错误是: 启动Neo4j失败:org.Neo4j.server.web.NeoServletContainer-5b85e832@73766070==org.

我正在windows OS 10上使用Neo4J社区版2.3.0。在我更改neo4j服务器的配置之前,一切正常。属性文件如下:

 org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged
服务器启动时的错误是:

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

若我禁用此更改,那个么服务器启动得很好。我正在尝试运行Neo4J教程中给出的非托管扩展的HelloWorld示例,并按照所有说明进行操作

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

尽早作出回应将是有益的

控制台日志如下所示

  [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
[o.n.s.d.LifecycleManagingDatabase]已成功启动数据库
2016-01-04 16:49:08.036+0530信息[o.n.s.CommunityNeoServer]正在端口7474上启动HTTP(4个线程可用)
2016-01-04 16:49:08.038+0530信息[o.n.s.m.ThirdPartyJAXRModule]安装的非托管扩展[org.neo4j.examples.server.unmanaged]位于[/examples/unmanaged]
2016-01-04 16:49:08.039+0530信息[o.n.s.w.Jetty9WebServer]在/webadmin安装静态内容
2016-01-04 16:49:08.040+0530信息[o.n.s.w.Jetty9WebServer]在/浏览器上安装静态内容
2016年1月4日下午4:49:09 com.sun.jersey.api.core.PackagesResourceConfig init
信息:扫描包中的根资源和提供程序类:org.neo4j.examples.server.unmanaged
2016年1月4日下午4:49:09 com.sun.jersey.server.impl.application.WebApplicationImpl\u
信息:启动泽西岛应用程序,版本“泽西岛:1.19 02/11/2015 03:25 AM”
2016年1月4日下午4:49:09 com.sun.jersey.server.impl.application.RootResourceUriRules
严重:ResourceConfig实例不包含任何根资源类。
2016-01-04 16:49:09.521+0530错误[o.n.s.CommunityNeoServer]无法在端口7474上启动Neo服务器:org.neo4j.Server.web.NeoServletContainer-148016ab@5234ecb5==org.neo4j.server.web.NeoServletContainer,-1,false
2016-01-04 16:49:09.522+0530信息[o.n.s.CommunityNeoServer]已成功关闭Neo4j服务器
2016-01-04 16:49:11.581+0530信息[o.n.s.d.LifecycleManagingDatabase]已成功停止数据库

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


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

您可以粘贴下面教程的链接吗。另外,请确保您在$NEO4J_HOME/plugin文件夹中有插件jar文件,并且您的插件jar确实包含package=“org.NEO4J.examples.server.unmanaged”中的类。此外,还共享data/log/console.logHi Michael的内容。教程的链接如下:是的,jar在插件文件夹中。使用的包是package org.neo4j.examples.server.unmanaged;最新的控制台日志如下:在问题本身中添加了服务器日志。嘿,我认为在pom中你应该广告“maven shade plugin”。它就像一个uber罐子,每个包都在里面,所以neo4j可以找到所有包。