当前位置: 代码迷 >> J2EE >> 奇怪!Tomcat启动成功,访问却一直404,该怎么解决
  详细解决方案

奇怪!Tomcat启动成功,访问却一直404,该怎么解决

热度:8   发布时间:2016-04-22 01:52:17.0
奇怪!Tomcat启动成功,访问却一直404
CSDN的大哥大姐们,这两天一直在解决这个问题,
Tomcat启动信息如下:
2012-3-29 16:19:30 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.20.
2012-3-29 16:19:30 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2012-3-29 16:19:30 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8090
2012-3-29 16:19:30 org.apache.coyote.ajp.AjpAprProtocol init
信息: Initializing Coyote AJP/1.3 on ajp-8009
2012-3-29 16:19:30 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1063 ms
2012-3-29 16:19:30 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-3-29 16:19:30 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.33
2012-3-29 16:19:30 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2012-3-29 16:19:31 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
INFO - Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
WARN - /WEB-INF/faces-config.xml has been specified in the javax.faces.CONFIG_FILES context parameter of the deployment descriptor. This will automatically be removed, if we wouldn't do this, it would be loaded twice. See JSF spec 1.1, 10.3.2
INFO - Reading config /WEB-INF/faces-config.xml
INFO - Starting up MyFaces-package : myfaces-api in version : 1.1.9 from path : file:/C:/Program%20Files/apache-tomcat-5.5.33/apache-tomcat-5.5.33/webapps/jsfspring/WEB-INF/lib/myfaces-api-1.1.9.jar
INFO - Starting up MyFaces-package : myfaces-impl in version : 1.1.9 from path : file:/C:/Program%20Files/apache-tomcat-5.5.33/apache-tomcat-5.5.33/webapps/jsfspring/WEB-INF/lib/myfaces-impl-1.1.9.jar
INFO - MyFaces-package : tomahawk-sandbox not found.
INFO - MyFaces-package : tomahawk not found.
WARN - Locale name in faces-config.xml null or empty, setting locale to default locale : zh_CN
INFO - Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
INFO - No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
INFO - No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
INFO - No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
INFO - No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
INFO - No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
INFO - No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
INFO - Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
INFO - Starting up Tomahawk on the MyFaces-JSF-Implementation
INFO - ServletContext 'C:\Program Files\apache-tomcat-5.5.33\apache-tomcat-5.5.33\webapps\jsfspring\' initialized.
INFO - Root WebApplicationContext: initialization started
INFO - Loading Spring root WebApplicationContext
INFO - JDK 1.4+ collections available
INFO - Commons Collections 3.x available
INFO - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring.xml]
INFO - Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [loginSer,loginBean]; root of BeanFactory hierarchy
  相关解决方案