Ricky,

On 2/19/21 07:55, Ricky Thomas wrote:
Trying to connect our application from Tomcat to Big Query. Same war file
works fine in Jetty.
Tomcat version 9
Grails version 4
BQ driver SimbaJDBCDriverforGoogleBigQuery42_1.2.13.1016

Above error usually caused by older version of com.google.guava:guava lib,
so to make sure we have latest/higher we also added entry in build.gradle
compile "com.google.guava:guava:30.1-jre"

  On local env (IntelliJ) application works fine and BQ jdbc makes
connection without any issue. When we deploy war file on server we start
getting above error on Big Query database connection.

Any ideas?

Check for duplicate JAR files in Tomcat's lib/ versus webapps/yourapp/WEB-INF/lib directories.

Failing that, search your application's JAR files to find out if you have multiple copies of that class hidden somewhere.

With build tools which handle dependencies, it's easy to accidentally include the same thing twice, especially if the packaging of one or more dependencies isn't right.

This can also happen with "fat JARs" where one project distributes a library which includes all of its own dependencies without shading them. Oops.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to