Сервер Tomcat генерирует исключение ClassNotFoundException, несмотря на то, что необходимые библиотеки находятся в папке WEB-INF / lib моего приложения.
Все библиотеки были добавлены в раздел библиотек Netbeans, IDE, которую я использую.
Вот полное сообщение:
Type Exception Report
Message Servlet execution threw an exception.
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
com.amazonaws.regions.AwsRegionProviderChain.<clinit>(AwsRegionProviderChain.java:33)
com.amazonaws.client.builder.AwsClientBuilder.<clinit>(AwsClientBuilder.java:60)
UserCreator.createWithCognito(UserCreator.java:193)
UserCreator.doGet(UserCreator.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1363)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1186)
com.amazonaws.regions.AwsRegionProviderChain.<clinit>(AwsRegionProviderChain.java:33)
com.amazonaws.client.builder.AwsClientBuilder.<clinit>(AwsClientBuilder.java:60)
UserCreator.createWithCognito(UserCreator.java:193)
UserCreator.doGet(UserCreator.java:77)
javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note: The full stack trace of the root cause is available in the server logs.