Drongenborn 2020-10-19 10:43 采纳率: 0%
浏览 163

在eclipse上的maven项目的tomcat运行出问题

控制台输出如下:

十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/8.0.45
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jun 26 2017 20:06:07 UTC
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         8.0.45.0
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 10
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.0
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             F:\66
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_181-b13
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         F:\tomcat8\tomcat8
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         F:\tomcat8\tomcat8
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:55677
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=F:\tomcat8\tomcat8
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=F:\tomcat8\tomcat8
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=F:\tomcat8\tomcat8\webapps
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=F:\tomcat8\tomcat8\endorsed
十月 19, 2020 10:36:10 上午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
十月 19, 2020 10:36:10 上午 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: F:\66\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;F:/55/bin/../jre/bin/server;F:/55/bin/../jre/bin;F:/55/bin/../jre/lib/amd64;F:\55\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;F:\IntelliJ IDEA Educational Edition 2019.3\bin;F:\svn\bin;F:\tomcat8\tomcat8\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;F:\apache-maven-3.6.3\bin;"C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem";F:\工作\;C:\Users\ASUS\AppData\Local\Microsoft\WindowsApps;;F:\Microsoft VS Code\bin;C:\Users\ASUS\AppData\Roaming\npm;F:\eclipse;;.
十月 19, 2020 10:36:10 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8188"]
十月 19, 2020 10:36:11 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十月 19, 2020 10:36:11 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-nio-8008"]
十月 19, 2020 10:36:11 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
十月 19, 2020 10:36:11 上午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 908 ms
十月 19, 2020 10:36:11 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
十月 19, 2020 10:36:11 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.0.45
十月 19, 2020 10:36:11 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor F:\tomcat8\tomcat8\conf\Catalina\localhost\SDTJFXGXFW.xml
十月 19, 2020 10:36:11 上午 org.apache.catalina.startup.HostConfig deployDescriptor
警告: A docBase F:\tomcat8\tomcat8\webapps\SDTJFXGXFW inside the host appBase has been specified, and will be ignored
十月 19, 2020 10:36:11 上午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SDTJFXGXFW' did not find a matching property.
十月 19, 2020 10:36:14 上午 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.
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.ApplicationContext log
信息: 1 Spring WebApplicationInitializers detected on classpath
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Error configuring application listener of class com.kanq.sdtjfxgxfw.listener.SessionListener
java.lang.ClassNotFoundException: com.kanq.sdtjfxgxfw.listener.SessionListener
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1333)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1167)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:509)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:490)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4775)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:621)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1835)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    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)

十月 19, 2020 10:36:15 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/SDTJFXGXFW] startup failed due to previous errors
十月 19, 2020 10:36:15 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [SDTJFXGXFW] appears to have started a thread named [Log4j2-TF-3-Scheduled-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
 java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
 java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 java.lang.Thread.run(Unknown Source)
十月 19, 2020 10:36:15 上午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [SDTJFXGXFW] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1b50f5cf]) and a value of type [org.apache.logging.log4j.core.LoggerContext] (value [org.apache.logging.log4j.core.LoggerContext@7831f7b2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deployment of configuration descriptor F:\tomcat8\tomcat8\conf\Catalina\localhost\SDTJFXGXFW.xml has finished in 4,297 ms
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\tomcat8\tomcat8\webapps\docs
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\tomcat8\tomcat8\webapps\docs has finished in 35 ms
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\tomcat8\tomcat8\webapps\examples
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
十月 19, 2020 10:36:15 上午 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\tomcat8\tomcat8\webapps\examples has finished in 209 ms
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\tomcat8\tomcat8\webapps\host-manager
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\tomcat8\tomcat8\webapps\host-manager has finished in 21 ms
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\tomcat8\tomcat8\webapps\manager
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\tomcat8\tomcat8\webapps\manager has finished in 18 ms
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\tomcat8\tomcat8\webapps\ROOT
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\tomcat8\tomcat8\webapps\ROOT has finished in 14 ms
十月 19, 2020 10:36:15 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8188"]
十月 19, 2020 10:36:15 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8008"]
十月 19, 2020 10:36:15 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4663 ms

前后根据网上的说法改过不少地方,但是都没用,求大佬们给看看

  • 写回答

1条回答 默认 最新

  • qq_25376897 2020-10-19 11:10
    关注

    里面主要的报错是java.lang.ClassNotFoundException: com.kanq.sdtjfxgxfw.listener.SessionListener,意思是这个类没有找到,你看下是在哪里调用的,引入路径有没有问题

    评论

报告相同问题?

悬赏问题

  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动