无法在os x yosemite上启动neo4j-slf4j出现问题?

nafvub8i  于 2021-06-30  发布在  Java
关注(0)|答案(0)|浏览(238)

我试过从最近的下载文件夹(neo4j-community-2.1.6)和自制安装(community 2.0.0)运行neo4j。在每种情况下,我都会得到以下错误:

Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew -Djava.awt.headless=true
Starting Neo4j Server...WARNING: not changing user
process [2411]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

所以,我去了日志( /data/log/console.log )得到以下结果:

Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
    at org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
    at org.apache.commons.configuration.ConfigurationUtils.locate(ConfigurationUtils.java:447)
    at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:213)
    at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
    at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:162)
    at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:252)
    at org.neo4j.server.configuration.PropertyFileConfigurator.loadPropertiesConfig(PropertyFileConfigurator.java:147)
    at org.neo4j.server.configuration.PropertyFileConfigurator.<init>(PropertyFileConfigurator.java:67)
    at org.neo4j.server.Bootstrapper.createConfigurator(Bootstrapper.java:220)
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:98)
    at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:62)

我的$javau家是:

/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home

/usr/libexec/java\u home-v的输出是:

Matching Java Virtual Machines (4):
    1.7.0_51, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
    1.7.0_15, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home
    1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-466.1, i386:   "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home

在/library/java/extensions中,我有:

logback-classic.jar@ -> /usr/local/xuggler/share/java/jars/logback-classic.jar
logback-core.jar@    -> /usr/local/xuggler/share/java/jars/logback-core.jar
slf4j-api.jar@       -> /usr/local/xuggler/share/java/jars/slf4j-api.jar
xuggle-xuggler.jar@  -> /usr/local/xuggler/share/java/jars/xuggle-xuggler.jar

我试过更新 /usr/local/xuggler/share/java/jars/slf4j-api.jar 更新到最新版本,但是console.log中出现了一个新错误,表示预期版本为1.5.6,但找不到。所以,我把原件放回去了。
我正在运行OSX10.10.1。 uname -a :

Darwin xxxxxxx.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

如果有人能给我一些建议,我将非常感激。
谢谢您!詹姆斯

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题