java.lang.NoClassDefFoundError:com / amazon / redshift / core / jdbc41 / PGJDBC41DriverImpl

时间:2017-11-16 08:57:36

标签: java jdbc amazon-redshift

我正在将Redshift驱动程序升级到最新的1.2.10.1009版本。以前,我使用的是1.2.1.1001版本。

Pom.xml条目

<dependency>
    <groupId>com.amazon.redshift</groupId>
    <artifactId>redshift-jdbc41</artifactId>
    <version>1.2.10.1009</version>
</dependency>

升级后,相同的代码抛出java.lang.NoClassDefFoundError:com / amazon / redshift / core / jdbc41 / PGJDBC41DriverImpl

堆栈追踪:

2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT 2017-11-16 08:49:12.530 ERROR 11 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: com/amazon/redshift/core/jdbc41/PGJDBC41DriverImpl] with root cause
   2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT     at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_152]
   2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.jdbc.pool.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:38) ~[tomcat-jdbc-9.0.1.jar!/:na]
   2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:482) ~[tomcat-jdbc-9.0.1.jar!/:na]
   2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:118) ~[tomcat-jdbc-9.0.1.jar!/:na]
   2017-11-16T14:19:12.53+0530 [APP/PROC/WEB/0] OUT     at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:107) ~[tomcat-jdbc-9.0.1.jar!/:na]

请告诉我如何解决此问题。

0 个答案:

没有答案