2011-11-29 66 views
0

我一直在閱讀Spring Roo入門,我真的很喜歡,我也嘗試過使用neo4j來運行一個非常類似的項目。我使用STS和tc Server 2.6。服務器啓動,但項目無法部署,雖然我沒有做任何奇怪的事情或任何未在入門中解釋的內容。我無法運行我的spring roo項目

我有一個錯誤,那就是:

GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase 

org.springframework.web.context.ContextLoaderListener 
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:\Program Files\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\wtpwebapps\vocabulary\WEB-INF\classes\META-INF\spring\applicationContext-graph.xml]; nested exception is java.lang.NoClassDefFoundError: org/neo4j/kernel/EmbeddedGraphDatabase 

這纔是真正的錯誤?我應該在哪裏包含這個類/庫?

我想使用Tomcat/manager webapp來獲取有關部署的更多詳細信息,但我無法設置密碼,因爲我無法覆蓋tomcat-users.xml。是否有另一種方法來設置用戶管理器的密碼 - gui?

我最後一個問題,我的目標是使用Spring Roo和GWT開發webapps。我正在閱讀Spring MVC一步一步的介紹,雖然這個文檔很老,但我正在學習每一個難題。我想知道你的經驗,無論是Roo + GWT是不錯的選擇,我是否正在閱讀優秀文檔,我可以閱讀哪些其他指南......

非常感謝。

回答

0

我在跟隨時遇到同樣的問題。 neo4j embeddedgraph的maven依賴設置是錯誤的。

Opene你項目的pom.xml文件和手動更改(在部分)的依賴到版本1.6(當前的穩定版):

<neo4j.version>1.6</neo4j.version> 

這樣做了以後,你可能仍然有一個問題開始vFabric tc服務器:

2012-02-09 22:53:55,797 [Thread-10] ERROR org.springframework.web.context.ContextLoader - Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationCheck': Invocation of init method failed; nested exception is java.lang.AssertionError: transactionManager not correctly configured, please refer to the manual, setup section 

在應用程序xml安裝文件中設置事務管理存在問題。如果沒有必要使用這樣的,那麼應用程序可以使用maven的碼頭直接從袋鼠插件測試,使用執行命令:

perform command --mavenCommand jetty:run-war 

希望這有助於

相關問題