I have a rest API service deployed which has a method where it attempts to connect to SQL Server. Locally before deployment, this all worked fine but now I get the error that the Sqljdbc
file is missing.
Below is the exception
java web service java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
Found many posts online here where suggestions to ensure library is in correct folder: src/main/webapp/WEB-INF/sqljdbc4.jar
WEB-INF/sqljdbc4.jar
I also added it to the folder /WEB-INF/lib/sqljdbc4.jar
Still I get the error. Any ideas or suggestions appreciated.