It seems Tomcat shares libraries between web applications

2022-10-13 Thread Artur Swat
Hello, I installed Tomcat using apache-tomcat-9.0.54.exe, configured server.xml to set up a database connection as Resource in GlobalNamingResources section. Tomcat\webapps directory has two web applications, let's say X and Y. Both should connect to Oracle database using ojdbc driver. Tom

Re: It seems Tomcat shares libraries between web applications

2022-10-13 Thread Mark Thomas
On 13/10/2022 14:17, Artur Swat wrote: How app Y can get a library from app X? Is tomcat\temp shared between web applications? If you define a DataSource as a global resource then the associated JDBC driver has to be loaded by the Common class loader. That makes it visible to all web applicat

Re: Tomcat Redirect Port 80 to 443 and Block OPTIONS HTTP Method

2022-10-13 Thread Bhavesh Mistry
Hi Christopher, Thanks for the suggestion. But I don't have the luxury of using a Load balancer or Proxy. I kind of agree that it would be best to handle outside tomcat. At this point, it is working as expected after all changes mentioned in the thread. Again, I value your opinion and feedback.