新版本的3.3.0在Linux服务器war启动失败
版本号:
3.3.0
问题描述:
本地运行run启动没有问题,放到Linux服务器war启动失败
截图&代码:
28-Jul-2022 15:14:52.107 SEVERE [localhost-startStop-7] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
28-Jul-2022 15:14:52.108 SEVERE [localhost-startStop-7] org.apache.catalina.core.StandardContext.startInternal Context [/cailing] startup failed due to previous errors
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
28-Jul-2022 15:14:52.377 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [mysql-cj-abandoned-connection-cleanup] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:91)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
28-Jul-2022 15:14:52.378 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.378 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.379 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.380 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.381 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.382 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.383 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.384 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.385 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [MyScheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
28-Jul-2022 15:14:52.387 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [JustAuth-Task-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(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
28-Jul-2022 15:14:52.388 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [Thread-95] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.jeecg.modules.jmreport.desreport.service.a.e$1.run(JimuReportServiceImpl.java:1418)
java.lang.Thread.run(Thread.java:745)
28-Jul-2022 15:14:52.389 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [Thread-96] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.jeecg.modules.jmreport.desreport.render.a.b$2.run(TableDynamicRenderStrategy.java:316)
java.lang.Thread.run(Thread.java:745)
28-Jul-2022 15:14:52.390 WARNING [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cailing] appears to have started a thread named [Thread-97] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.jeecgframework.codegenerate.a.a$1.run(CodeConfigProperties.java:299)
java.lang.Thread.run(Thread.java:745)
28-Jul-2022 15:14:52.391 SEVERE [localhost-startStop-7] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [cailing] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@553d3722]) and a value of type [io.netty.util.internal.InternalThreadLocalMap] (value [io.netty.util.internal.InternalThreadLocalMap@6c6730d8]) 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.
28-Jul-2022 15:14:52.398 INFO [localhost-startStop-7] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/www/server/tomcat/webapps/cailing.war] has finished in [31,350] ms
28-Jul-2022 15:14:56.906 INFO [mysql-cj-abandoned-connection-cleanup] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1440)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1065)
at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:123)
at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:90)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
友情提示(为了提高issue处理效率):
- 未按格式要求发帖,会被直接删掉;
- 请自己初判问题描述是否清楚,是否方便我们调查处理;
- 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
- 描述过于简单或模糊,导致无法处理的,会被直接删掉;