【瀏覽器無法打開項(xiàng)目頁】報(bào)錯(cuò):無法顯示此頁 •確保 Web 地址 http://localhost:8080 正確。
【問題】正常啟動(dòng)Tomcat可以打開8080首頁;但關(guān)閉tomcat后,在Eclipse中打開tomcat后輸入網(wǎng)址http://localhost:8080/HelloWorld/helloworld.action無法訪問項(xiàng)目頁,也無法訪問8080頁。
【附圖】
附圖是我的相關(guān)文件。
啟動(dòng)Tomcat后Console中顯示以下紅色信息:
七月 22, 2016 4:51:11 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorld' did not find a matching property.
七月 22, 2016 4:51:11 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context/Loader} Setting property 'useSystemClassLoaderAsParent' to 'false' did not find a matching property.
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: ? ? ? ?Apache Tomcat/7.0.70
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: ? ? ? ? ?Jun 15 2016 16:27:45 UTC
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: ? ? ? ? 7.0.70.0
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: ? ? ? ? ? ? ? Windows 8.1
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: ? ? ? ? ? ?6.3
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: ? ? ? ? ?x86
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: ? ? ? ? ? ? E:\Program Files\Java\eclipse-jee-neon-R-win32\eclipse\jre
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: ? ? ? ? ? 1.8.0_91-b15
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: ? ? ? ? ? ?Oracle Corporation
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: ? ? ? ? E:\Program Files\Java\apache-tomcat-7.0.70
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: ? ? ? ? E:\Program Files\Java\apache-tomcat-7.0.70
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50571
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\Program Files\Java\apache-tomcat-7.0.70
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\Program Files\Java\apache-tomcat-7.0.70
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=F:\JAVA\Eclipse_ee
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\Program Files\Java\apache-tomcat-7.0.70\endorsed
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
七月 22, 2016 4:51:11 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Program Files\Java\eclipse-jee-neon-R-win32\eclipse\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:\Program Files\Java\eclipse-jee-neon-R-win32\eclipse\jre\bin;E:/Program Files/Java/eclipse-jee-neon-R-win32/eclipse/jre/bin/client;E:/Program Files/Java/eclipse-jee-neon-R-win32/eclipse/jre/bin;E:/Program Files/Java/eclipse-jee-neon-R-win32/eclipse/jre/lib/i386;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;;E:\Program Files\Java\eclipse-jee-neon-R-win32\eclipse;;.
七月 22, 2016 4:51:11 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
七月 22, 2016 4:51:11 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
七月 22, 2016 4:51:11 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 804 ms
七月 22, 2016 4:51:12 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
七月 22, 2016 4:51:12 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.70
七月 22, 2016 4:51:13 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:13 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [242] milliseconds.
七月 22, 2016 4:51:13 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-default.xml]
七月 22, 2016 4:51:13 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
七月 22, 2016 4:51:13 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-plugin.xml]
七月 22, 2016 4:51:13 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts.xml]
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.UnknownHandlerFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.util.ContentTypeMatcher)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.DispatcherErrorHandler)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.security.ExcludedPatternsChecker)
七月 22, 2016 4:51:13 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.security.AcceptedPatternsChecker)
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\ROOT
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\ROOT has finished in 128 ms
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\docs
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\docs has finished in 86 ms
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\examples
七月 22, 2016 4:51:14 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:15 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
七月 22, 2016 4:51:15 下午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
七月 22, 2016 4:51:15 下午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@d00b')
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\examples has finished in 376 ms
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\host-manager
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\host-manager has finished in 91 ms
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\manager
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory E:\Program Files\Java\apache-tomcat-7.0.70\webapps\manager has finished in 109 ms
七月 22, 2016 4:51:15 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
七月 22, 2016 4:51:15 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
七月 22, 2016 4:51:15 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3278 ms
2016-09-25
問一下樓主 這個(gè)問題解決了嗎 我的也是這個(gè)錯(cuò)誤 。并且那個(gè)地址輸入在自帶瀏覽器里面就可以運(yùn)行。
2016-07-22
clean一下tomcat試試,可能緩存?還有注意你的項(xiàng)目名有沒有輸對,警告說找不到匹配的