This is in continuation to Tomcat restart throws error regarding the missing destroy() method
My tomcat doesn't pick up the servlet-api.jar from the tomcat/lib but it goes and pick up from a shared folder which is not even in the path of CATALINA_HOME (In my case it is same as CATALINA_BASE).
This is because I add the A/Shared_folder as follows in the CATALINA_OPTS at the catalina.bat:
set CATALINA_OPTS=%CATALINA_OPTS% -Djava.library.path="A/Shared_folder" -Xms256m -Xmx256m -verbose:gc
Folder structure is: A/Shared_folder is the shared folder
A/B/tomcat_folder is the tomcat folder
I am really stuck here. I verified with the classloader logs. Once I remove the Djava.library.path="A/Shared_folder", it loads correctly from the tomcat/lib but my application needs remaining jars in the A/Shared_folder to run correctly. Please advise.
Is there any way I can exclude the servlet-api form the Djava.library.path.
Note:- servlet-api.jar versions are different in both location and hence the issue. I am using 9.0.43 tomcat