我无法运行我的春季roo项目

时间:2011-11-29 00:40:12

标签: spring-roo

我一直在阅读我真正喜欢的Spring Roo入门,我也尝试使用neo4j运行一个非常相似的项目。我正在使用STS和tc Server 2.6。服务器启动但是项目无法部署,尽管我没有做任何奇怪的事情或任何未在“入门”中解释的内容。

我有一个错误,即:

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。有没有其他方法可以为用户管理器设置密码?

我的上一个问题,我的目标是使用Spring Roo和GWT开发webapps。我正在逐步阅读Spring MVC虽然这篇文章很老但我正在学习每一个难题。我想知道你的经验,Roo + GWT是否是一个不错的选择,我是否正在阅读好的文件,我可以阅读其他指南......

非常感谢。

1 个答案:

答案 0 :(得分:0)

我在关注时遇到了同样的问题。 neo4j embeddedgraph的maven依赖设置是错误的。

打开项目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安装文件中设置事务管理存在问题。如果不需要使用,可以使用执行命令直接从roo使用maven jetty插件测试应用程序:

perform command --mavenCommand jetty:run-war

希望这有帮助

相关问题