I am using Tomcat 7.0.53
I have an application needing to load mysql-connector-java-5.0.8.jar for it's JDBC connection. If I put the connector jar in {$catalina_home}/(app instance)/lib/ directory, everything loads fine. If I import the jar to my war using maven or put the jar out at {$catalina_home/lib/ then it will not load.
I have a fairly typical war setup, and the imported jar(s) are placed in /WEB-INF/lib/ directory. There is however one difference from projects I usually work on. The context file for the different datasources is located as an explicit file in webapp/{app}/META-INF/context.xml.
Ideally I would want to put the connector jar in my war using maven, so if someone could tell me: 1. Why this is happening? 2. A possible fix so the connector jar could be imported via maven?
it would be greatly appreciated.