【问题标题】:I can't run my spring roo project我无法运行我的 spring roo 项目
【发布时间】:2012-01-08 09:57:44
【问题描述】:

我一直在阅读我非常喜欢的 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。是否有其他方法可以设置用户 manager-gui 的密码?

我的最后一个问题,我的目标是使用 Spring Roo 和 GWT 开发 webapps。我正在阅读 Spring MVC Step-by-step 虽然这个文档已经很老了,但我正在学习每一个拼图的内容。我想知道你的经验,Roo+GWT 是否是一个不错的选择,我是否正在阅读好的文档,我还可以阅读哪些其他指南...

非常感谢。

【问题讨论】:

    标签: spring-roo


    【解决方案1】:

    我在关注时遇到了同样的问题。 neo4j 嵌入图的 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 命令:

    perform command --mavenCommand jetty:run-war
    

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-02-20
      • 1970-01-01
      • 2017-02-01
      • 2019-11-26
      • 1970-01-01
      • 1970-01-01
      • 2017-05-29
      相关资源
      最近更新 更多