Tomcat:部署时的 LifecycleException [英] Tomcat: LifecycleException when deploying
问题描述
我刚刚在我的 Ubuntu 11.10 上下载了 Tomcat 7.0.23 包.
I just downloaded the Tomcat 7.0.23 package on my Ubuntu 11.10.
我按照 Google API 网站上的说明部署他们的示例网络应用.它基本上由放置在 WEB-INF/lib
目录中的 jar
文件和放置在 WEB- 目录中的
目录.web.xml
文件组成.INF
I followed the instructions on a Google API website to deploy their example webapp. It basically consists of jar
files placed in the WEB-INF/lib
directory and a web.xml
file placed in the WEB-INF
directory.
但该应用程序并未自动部署,当我尝试强制服务器通过管理器 gui 部署它时,我收到以下消息:
Yet the app is not automatically deployed and when trying to force the server to deploy it through the manager gui, I get the following message:
FAIL - Application at context path /myWebApp could not be started
FAIL - Encountered exception org.apache.catalina.LifecycleException:
Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myWebApp]]
但是,Tomcat 提供的 JSP 示例确实有效!
However, the JSP examples provided with Tomcat do work!
我在 Tomcat6 上也有同样的问题.
I have the same problem on Tomcat6.
那我做错了什么?这是权限问题吗?(我什至尝试将所有文件的 mod 更改为 777).
So what did I do wrong ? Is this a permission problem ? (I even try to change the mod of all files to 777).
推荐答案
这意味着您的应用程序配置或启动有问题.
This means something is wrong with your application configuration or startup.
日志中总是有相关信息 - 检查 logs/catalina.out
并找出问题所在.
There is always information about that in the logs - check logs/catalina.out
and figure out what is wrong.
这篇关于Tomcat:部署时的 LifecycleException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!