2013-04-16 77 views
0

我試圖將一個小的neo4j數據庫連接到Mac獅子與自制的neo4j上的Linkurious,一個前端Web界面。該圖最初工作正常,可以從webser訪問,但是在將其連接到Linkrals的過程中,出現了一些問題。Neo4j服務器未加載:Logback.xml文件未找到

當我嘗試啓動的Neo4j,現在服務器掛了,我得到下面的輸出:

Starting Neo4j Server...19:31:30,507 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 
19:31:30,507 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 
19:31:30,508 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/system/lib/neo4j-server-1.8.1.jar!/logback.xml] 
19:31:30,536 |-INFO in [email protected] - URL [jar:file:/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/system/lib/neo4j-server-1.8.1.jar!/logback.xml] is not of type file 
19:31:30,632 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 
19:31:30,646 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 
19:31:30,650 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 
19:31:30,670 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 
19:31:30,737 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 
19:31:30,737 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 
19:31:30,740 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Could not find resource corresponding to [custom-logback.xml] 
19:31:30,742 |-INFO in [email protected] - Registering current configuration as safe fallback point 

WARNING: not changing user 
process [2350]... waiting for server to be ready...... OK. 
Go to http://localhost:7475/webadmin/ for administration interface. 

本地主機:7475然後繼續掛機。我認爲,這是一個問題的路徑,所以我添加NEO4J_HOME到neo4j文件,像這裏:https://groups.google.com/forum/#!msg/neo4j/NMVHoflUrHo/warnQUInGCgJ(Bhargava的解決方案)。

儘管如此,問題仍然存在。思考?我不知道日誌文件的作用以及爲什麼需要它們。

回答

0

消息

19:31:30,740 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Could not find resource corresponding to [custom-logback.xml] 

表示該文件自定義logback.xml找不到。

+0

它應該是在什麼地方?在java或neo4j家中? –

2

如果你不關心這個logback,你可以排除它的庫。在maven你可以做到這一點如下:

<dependency> 
    <groupId>org.neo4j.app</groupId> 
    <artifactId>neo4j-server</artifactId> 
    <version>${neo4j.version}</version> 
    <exclusions> 
     <exclusion> 
      <groupId>ch.qos.logback</groupId> 
      <artifactId>logback-classic</artifactId> 
     </exclusion> 
     <exclusion> 
      <groupId>ch.qos.logback</groupId> 
      <artifactId>logback-access</artifactId> 
     </exclusion> 
    </exclusions> 
</dependency>