• 记录一个奇怪的异常,无法还原此异常。 普通的Maven Java Web 项目


     

    项目 : 普通的Maven Java Web 项目

     

    操作记录:

    使用 Maven 构建项目,指令 tomcat7:run 无异常

    但使用 eclipse 的 tomcat 运行项目,报此异常。

    后面从tomcat删除了此项目,重新运行则不报错了。

     

    不明白原因,记录。

     

    异常全文:

     

    十二月 27, 2017 10:59:07 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin

    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:MyTest' did not find a matching property.

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server version:        Apache Tomcat/9.0.1

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server built:          Sep 27 2017 17:31:52 UTC

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server number:         9.0.1.0

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Name:               Windows 10

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Version:            10.0

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Architecture:          amd64

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Java Home:             C:Program FilesJavajdk1.8.0_111jre

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Version:           1.8.0_111-b14

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Vendor:            Oracle Corporation

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_BASE:         D:workspacesssm_basic.metadata.pluginsorg.eclipse.wst.server.core mp0

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_HOME:         D: omcatServerapache-tomcat-9.0.1apache-tomcat-9.0.1

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:7001

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.base=D:workspacesssm_basic.metadata.pluginsorg.eclipse.wst.server.core mp0

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.home=D: omcatServerapache-tomcat-9.0.1apache-tomcat-9.0.1

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dwtp.deploy=D:workspacesssm_basic.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebapps

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Djava.endorsed.dirs=D: omcatServerapache-tomcat-9.0.1apache-tomcat-9.0.1endorsed

    十二月 27, 2017 10:59:07 下午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dfile.encoding=UTF-8

    十二月 27, 2017 10:59:07 下午 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: [C:Program FilesJavajdk1.8.0_111in;C:WindowsSunJavain;C:Windowssystem32;C:Windows;C:Program FilesJavajdk1.8.0_111jrein;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin/server;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/bin;C:/Program Files/Java/jdk1.8.0_111/bin/../jre/lib/amd64;C:Program Files (x86)Graphviz2.38in;C:Program Files (x86)Common FilesIntelShared FilescppinIntel64;C:Program FilesJavajdk1.8.0_111in;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;D:myboxmypath;D:myboxmysqlmysql-5.7.18-winx64mysql-5.7.18-winx64in;C:Program FilesTortoiseSVNin;C:Program FilesGitcmd;C:Program FilesMacType;D:mavenapache-maven-3.5.0in;C:UsersAdministratorAppDataLocalMicrosoftWindowsApps;C:Program FilesBandizip;D:eclipseIDEeclipse-jee-oxygen-1a-win32-x86_64eclipse;;.]

    十二月 27, 2017 10:59:08 下午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["http-nio-8093"]

    十二月 27, 2017 10:59:08 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    信息: Using a shared selector for servlet write/read

    十二月 27, 2017 10:59:08 下午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["ajp-nio-8009"]

    十二月 27, 2017 10:59:08 下午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector

    信息: Using a shared selector for servlet write/read

    十二月 27, 2017 10:59:08 下午 org.apache.catalina.startup.Catalina load

    信息: Initialization processed in 2051 ms

    十二月 27, 2017 10:59:08 下午 org.apache.catalina.core.StandardService startInternal

    信息: Starting service [Catalina]

    十二月 27, 2017 10:59:08 下午 org.apache.catalina.core.StandardEngine startInternal

    信息: Starting Servlet Engine: Apache Tomcat/9.0.1

    十二月 27, 2017 10:59:16 下午 org.apache.jasper.servlet.TldScanner scanJars

    信息: 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.

    十二月 27, 2017 10:59:16 下午 org.apache.catalina.core.ContainerBase startInternal

    严重: A child container failed during start

    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@31ecd003]

         at java.util.concurrent.FutureTask.report(FutureTask.java:122)

         at java.util.concurrent.FutureTask.get(FutureTask.java:192)

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)

         at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

         at java.lang.reflect.Method.invoke(Method.java:498)

         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

    Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@31ecd003]

         at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)

         at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)

         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

         ... 21 more

    Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:workspacesssm_basic.metadata.pluginsorg.eclipse.wst.server.core mp0wtpwebappsMyTest] is not valid

         at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:749)

         at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         ... 30 more

     

    十二月 27, 2017 10:59:16 下午 org.apache.catalina.core.ContainerBase startInternal

    严重: A child container failed during start

    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start

         at java.util.concurrent.FutureTask.report(FutureTask.java:122)

         at java.util.concurrent.FutureTask.get(FutureTask.java:192)

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:947)

         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

         at java.lang.reflect.Method.invoke(Method.java:498)

         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

    Caused by: org.apache.catalina.LifecycleException: A child container failed during start

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)

         at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1425)

         at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1415)

         at java.util.concurrent.FutureTask.run(FutureTask.java:266)

         at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)

         ... 13 more

     

    十二月 27, 2017 10:59:16 下午 org.apache.catalina.startup.Catalina start

    严重: The required Server component failed to start so Tomcat is unable to start.

    org.apache.catalina.LifecycleException: A child container failed during start

         at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:956)

         at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

         at org.apache.catalina.startup.Catalina.start(Catalina.java:671)

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

         at java.lang.reflect.Method.invoke(Method.java:498)

         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)

         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)

     

    十二月 27, 2017 10:59:16 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["http-nio-8093"]

    十二月 27, 2017 10:59:16 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["ajp-nio-8009"]

    十二月 27, 2017 10:59:16 下午 org.apache.catalina.core.StandardService stopInternal

    信息: Stopping service [Catalina]

    十二月 27, 2017 10:59:16 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["http-nio-8093"]

    十二月 27, 2017 10:59:16 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["ajp-nio-8009"]

  • 相关阅读:
    C51学习 之 中断
    C51学习 之 动态数码管
    C51学习 之 LED流水灯
    锁存器 工作功能
    keil 5下载地址
    成本与利润最大化问题
    记一次VS下LINK1169的错误
    合并链表
    设计推特
    线段求交点
  • 原文地址:https://www.cnblogs.com/bg7c/p/8128102.html
Copyright © 2020-2023  润新知