【发布时间】:2010-04-22 20:12:46
【问题描述】:
我正在 Tomcat 6 上部署一个应用程序,使用一个 war 文件。我已经在同一台机器上编译了供应商提供的源代码,然后将 war 文件移动到 {tomcat-home}/webapps/
当我启动应用程序时,我看到一条错误消息:
The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
Cause
java.lang.RuntimeException: Unable to instantiate VelocityEngine!
at com.opensymphony.webwork.views.velocity.VelocityManager.newVelocityEngine(VelocityManager.java:333)
Stack Trace:[hide]
java.lang.RuntimeException: Unable to instantiate VelocityEngine!
at com.opensymphony.webwork.views.velocity.VelocityManager.newVelocityEngine(VelocityManager.java:333)
at com.opensymphony.webwork.views.velocity.VelocityManager.init(VelocityManager.java:146)
at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:61)
我在另一台机器上按照相同的步骤安装了它。
我不明白错误告诉我什么。
我会丢失 jar 文件吗? (但它编译得很好)。
我忘记设置环境变量了吗?
我不知道该怎么做,我不知道 VelocityEngine 是什么,或者做什么。
【问题讨论】:
-
我发现当我将 server.xml 更改为包含 unpackWARs="true" 时,现在它可以正常工作了
标签: java tomcat tomcat6 velocity java-war