TIBCO Spotfire Server unable to read a jar file placed in the \tomcat\custom-ext or \tomcat\lib folder

TIBCO Spotfire Server unable to read a jar file placed in the \tomcat\custom-ext or \tomcat\lib folder

book

Article ID: KB0076092

calendar_today

Updated On:

Products Versions
Spotfire Server 7.5 and higher

Description

When using a jar file on the TIBCO Spotfire Server for JDBC data access, the jar file might not be loaded by Spotfire despite being in the correct locations (see KB 000039897 JDBC jar files location for Information services data source for more details) and the following error might be seen in the TIBCO Spotfire Server's server.log file:
ERROR <Date> [*Initialization*] im.ds.AbstractDataSourceManager: Could not initialize xxxxx: com.test.lab.xxxxx.xxxxx
java.lang.ClassNotFoundException: xxxxx: com.test.lab.xxxxx.xxxxx

 

Issue/Introduction

This article explains why the TIBCO Spotfire Server fails to read a custom jar file added to the folder \tomcat\custom-ext (versions 10.3 and higher) or \tomcat\lib (versions 10.2 and lower).

Resolution

This issue can be seen if the jar file is saved with the extension ".JAR" which is in uppercase. Spotfire will only read the jar files with extension ".jar", which is lowercase. To resolve, ensure that the jar file has the lowercase ".jar" extension and restart the TIBCO Spotfire Server.

Additional Information

KB: 000039897 JDBC jar files location for Information services data source