【浏览器无法打开项目页】报错:无法显示此页 •确保 Web 地址 http://localhost:8080 正确。
【问题】正常启动Tomcat可以打开8080首页;但关闭tomcat后,在Eclipse中打开tomcat后输入网址http://localhost:8080/HelloWorld/helloworld.action无法访问项目页,也无法访问8080页。
【附图】
附图是我的相关文件。
启动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