JSF程序启动Tomcat时出错

来源:百度知道 编辑:UC知道 时间:2024/06/16 14:08:31
在Tomcat服务器启动时出现以下错误:请兄弟们帮我一把!

信息: Installing web application at context path /jsf from URL file:C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jsf
2008-4-23 13:39:25 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2008-4-23 13:39:25 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2008-4-23 13:39:25 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors

访问时是以下错误:

HTTP Status 404 - /jsf/
--------------------------------------------------------------------------------
type Status report
message /jsf/
description The requested resource (/jsf/) is not available.
呵呵,终于写好了!
出现上面的原因是:Tomcat 版本的问题,我用6.x的就没这问题了。
还有就是在web.xml中:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>

我的tomacat启动的时候也不能保证每次都没有错,但是多数时间都不会影响项目的访问呢~~

访问时后的错误应该是项目配置有问题吧,你的项目发布到tomcat上面了吗~~如果不是发布,用的xml布置得话,看看里面的路径都写对了没~~