Reputation: 1849
I give support to a legacy Java Web Application(Struts + Jsp) that runs in a Tomcat 9.0.10. I configure the context.xml with the following data
<Resourse name="jdbc/APP_DEV" auth="Container" type="javax.sql.DataSource" maxTotal="100" maxIdle="30" maxWaitMillis="10000" username="xxxx" password="xxxx" driverClassName="com.sybase.jdbc4.jdbc.SyDataSource" url="jdbc:sybase:Tds:server:port" />
This file (context.xml) is stored inside the war file in the META-INF folder. The jar containing the "com.sybase.jdbc4.jdbc.SyDataSource" is inside Tomcat lib folder to. Why Tomcat do not use this jar (jconn4-16.0) that contains the class com.sybase.jdbc4.jdbc.SyDataSource and use instead the one in the tomcat-dbcp.jar more precisely the org.apache.tomcat.dbcp.dbcpBasicSource.
Thanks in advance. Best regards
Upvotes: 0
Views: 256