0

由于以下错误,我的 tomcat 服务器无法启动

INFO: Starting ProtocolHandler ["http-bio-8082"]
May 29, 2021 7:02:41 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8011"]
May 29, 2021 7:02:41 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19391 ms
Exception in thread "Thread-15" java.lang.NoClassDefFoundError: org/apache/http/pool/AbstractConnPool$4
        at org.apache.http.pool.AbstractConnPool.closeExpired(AbstractConnPool.java:559)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeExpiredConnections(PoolingHttpClientConnectionManager.java:369)
        at com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread.run(SyncIdleConnectionMonitorThread.java:24)
Caused by: java.lang.ClassNotFoundException: org.apache.http.pool.AbstractConnPool$4
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
        ... 3 more
Exception in thread "Thread-17" java.lang.NoClassDefFoundError: org/apache/http/pool/AbstractConnPool$4
        at org.apache.http.pool.AbstractConnPool.closeExpired(AbstractConnPool.java:559)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeExpiredConnections(PoolingHttpClientConnectionManager.java:369)
        at com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread.run(SyncIdleConnectionMonitorThread.java:24)
Exception in thread "Thread-19" java.lang.NoClassDefFoundError: org/apache/http/pool/AbstractConnPool$4
        at org.apache.http.pool.AbstractConnPool.closeExpired(AbstractConnPool.java:559)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.closeExpiredConnections(PoolingHttpClientConnectionManager.java:369)
        at com.mashape.unirest.http.utils.SyncIdleConnectionMonitorThread.run(SyncIdleConnectionMonitorThread.java:24)

我试图上传httpcore-4.4.5.jar到 WEB-INF/lib 文件夹,但它无助于解决问题。不知道为什么。

在我上传了一些与 swagger 1.6.2 和 jackson 2.11.1 相关的库之后,它开始发生

有人知道根本原因吗?

4

0 回答 0