我无法运行我的 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。还有其他方法可以设置用户 manager-gui 的密码吗?
我的最后一个问题,我的目标是使用 Spring Roo 和 GWT 开发 Web 应用程序。我正在阅读 Spring MVC Step-by-step,虽然这个文档已经很老了,但我正在学习这个难题的每一部分的作用。我想知道您的经验,Roo+GWT 是否是一个好的选择,我是否正在阅读好的文档,我还可以阅读哪些其他指南......
非常感谢。
I've been reading Getting started with Spring Roo which I really liked and I've tried to run a very similar project using neo4j too. I'm using STS and tc Server 2.6. The server starts up but the project can't be deployed although I haven't done anything strange or anything which isn't explained in the Getting started.
I've got one error, which is:
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
Is this the real error? Where should I include this class/library?
I want to use Tomcat /manager webapp to get more details about the deploying but I can't set the password because I can't overwrite tomcat-users.xml. Is there another way to set the password for the user manager-gui?
My last question, my goal is to develop webapps using Spring Roo and GWT. I'm reading Spring MVC Step-by-step although this document is quite old but I'm learning what does every piece of the puzzle. I would like to know your experience, whether Roo+GWT is a good choice, whether I'm reading good documents, which other guides could I read...
Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在关注时也遇到了同样的问题。 neo4j嵌入图的maven依赖设置是错误的。
打开您的项目 pom.xml 文件并手动将依赖项(在 参考资料 部分中)更改为版本 1.6(当前稳定版本):
执行此操作后,您可能在启动 vFabric tc 服务器时仍然遇到问题:
设置存在问题应用程序 xml 设置文件中的事务管理。如果不需要使用此类,则可以直接使用 roo 中的 maven jetty 插件,使用执行命令来测试应用程序:
希望这会有所帮助
I have had the same issue when following. The maven dependency setup for the neo4j embeddedgraph is wrong.
Opene you projects pom.xml file and manually change the dependency (in the section) to version 1.6 (the current stable release):
After doing this, you might still have a problem starting the vFabric tc server:
There is a problem with the setup of the transaction management in the application xml setup files. If there is no need for using such, then the application can be tested using the maven jetty plugin directly from roo, using the perform command:
Hope this helps