Announcement Announcement Module
Collapse
No announcement yet.
Catch 22 - Issue with JDBC driver class Class Loading Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Catch 22 - Issue with JDBC driver class Class Loading

    I am posting after going through a lot of post in Spring forum and lot of other pages in the Google.

    Th issue is in order for Spring Web Application to work I need to put the mysql-connector-java-5.1.12-bin.jar into springsource\tc-server-6.0.20.C\lib folder. Otherwise even though the same jar exists in the WEB-INF\lib folder of the web application, this jar never been loaded by the class loader. It more strange cause JUnit web test which loads the application context just works fine. So my REST application web test is passing in flying colors but fails in real web application.

    It took me a while to figure out the work around and my web application is currently running fine. But now I can not use Spring Insight to check JDBC calls since the jar is outside of the application WEB-INF/lib folder.

    I am sure some thing is wrong here. The good news is Spring Insight seems to tackle the JDBC loation issue in their upcoming release. This issue is tackled via following JIRAs.

    https://issuetracker.springsource.com/browse/INSIGHT-1
    https://issuetracker.springsource.com/browse/INSIGHT-2

    But the question is it a bug or regular feature that we need to copy the mysql-connector jar to the tc server lib directory?
Working...
X