为了账号安全,请及时绑定邮箱和手机立即绑定

【浏览器无法打开项目页】报错:无法显示此页 •确保 Web 地址 http://localhost:8080 正确。

【问题】正常启动Tomcat可以打开8080首页;但关闭tomcat后,在Eclipse中打开tomcat后输入网址http://localhost:8080/HelloWorld/helloworld.action无法访问项目页,也无法访问8080页。

【附图】

  1. 附图是我的相关文件。

  2. 5791df470001eb5405000164.jpg

  3. 5791df480001970905000178.jpg

  4. 5791df4900014c1b05000188.jpg

  5. 5791df4a0001040004680271.jpg

  6. 启动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


正在回答

2 回答

问一下楼主 这个问题解决了吗 我的也是这个错误 。并且那个地址输入在自带浏览器里面就可以运行。

0 回复 有任何疑惑可以回复我~

clean一下tomcat试试,可能缓存?还有注意你的项目名有没有输对,警告说找不到匹配的

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Struts2入门
  • 参与学习       95068    人
  • 解答问题       456    个

本教程带你踏上Struts2学习之旅,对Struts2进行更深入讲解

进入课程

【浏览器无法打开项目页】报错:无法显示此页 •确保 Web 地址 http://localhost:8080 正确。

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信