org.apache.commons.logging.LogFactory
程序员文章站
2022-07-15 13:09:09
...
报错代码如下:
八月 02, 2018 10:38:02 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssm整合框架' did not find a matching property.
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/7.0.85
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Feb 7 2018 18:52:33 UTC
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 7.0.85.0
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Windows 10
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.0
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: amd64
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home: D:\javacj
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_144-b01
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE: D:\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: D:\apache-tomcat-7.0.85
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:50558
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=D:\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.85
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=D:\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.85\endorsed
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
八月 02, 2018 10:38:02 上午 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: D:\javacj\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/java8/jdk8/bin/../jre/bin/server;D:/java8/jdk8/bin/../jre/bin;D:/java8/jdk8/bin/../jre/lib/amd64;D:\java8\jdk8\bin;D:\java8\jre8\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\node\;D:\QTSystem\;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Users\莫小林\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\莫小林\AppData\Local\Programs\Python\Python36\;C:\Users\莫小林\AppData\Roaming\npm;%SHPLAYER%;C:\Users\莫小林\AppData\Local\Microsoft\WindowsApps;;D:\SSH;C:\Users\莫小林\Desktop;;.
八月 02, 2018 10:38:02 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
八月 02, 2018 10:38:02 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
八月 02, 2018 10:38:02 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1127 ms
八月 02, 2018 10:38:02 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
八月 02, 2018 10:38:02 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.85
八月 02, 2018 10:38:05 上午 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.
八月 02, 2018 10:38:05 上午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
警告: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [126] milliseconds.
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.TaglibUriRule body
信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
八月 02, 2018 10:38:07 上午 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.
八月 02, 2018 10:38:07 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.web.context.ContextLoader.<clinit>(ContextLoader.java:146)
at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1700)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1690)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1907)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1750)
... 12 more
八月 02, 2018 10:38:07 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
八月 02, 2018 10:38:07 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/ssm整合框架] startup failed due to previous errors
八月 02, 2018 10:38:07 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
八月 02, 2018 10:38:07 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
八月 02, 2018 10:38:07 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 5123 ms
一定要学会看bug信息,从第一条(严重:.......)开始是它是整体的报错解释,然后后面的每个(严重:.......)都是它的细化,你一定要一步步去看,比如说这个bug,刚开始说监听器不能够创建出来,然后很多人就会直接看前面的严重错误,而忽略了后面的描述,其实仔细一看是它具体阐述是
需要 java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory缺少文件commons-logging.jar包。导入方法是:右键项目->Properties->Deployment Assembly->Add->Java Build Path Entries;
推荐阅读
-
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory 异常错误
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
-
ClassNotFoundException:org.apache.commons.logging.LogFactory
-
解决:ClassNotFoundException:org.apache.commons.logging.LogFactory
-
org.apache.commons.logging.LogFactory
-
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory