I am using mysql-connector-java-5.1.22-bin.jar for JDBC in a desktop application with JAVASE 7 (which is working fine) but for JAVASE 6 (with the same code as in JAVASE 7 app) its not working. neither I can see any exception in console nor any debugging prints that I made. what can be wrong?
heres my project folder http://open-pages.com/temp.zip
I don’t think your issue involves java 6 vs. Java 7. Nothing in your code is using Coin syntax as far as I read. The issue is java desktop app vs. Web application. Is the JDBC driver included in the war file? (in the library folder) I usually configure database connections in context. xml and obtain a dataSource using InitialContext.
Just write a simple test jsp or Servlet to connect to your database and display some query results. You can just print anything exceptions right to the web page to make it easy for testing. I’m not sure why the exceptions weren’t getting written to your log file (check for the most recent files written to the log folder of your server)