classForName(com.ibm.db2.jcc.DB2Driver) and external jars
Posted: Tue Mar 11, 2008 4:37 pm
Hello!
I just encountered a very strange problem: I'm trying to use JDBC in my Tomcat Instance by using the classForName(com.ibm.db2.jcc.DB2Driver) to load the driver.
It works perfectly well - unless the classForName Code is in a .jar File I created remotely on Windows - I get a ClassNotFoundException. There is no problem with a .class File I compile on Windows and transfer via FTP.
Jars created on z/os issue no problems neither.
Strange, isn't it?
Any Idea?
Thanks!
Alex
I just encountered a very strange problem: I'm trying to use JDBC in my Tomcat Instance by using the classForName(com.ibm.db2.jcc.DB2Driver) to load the driver.
It works perfectly well - unless the classForName Code is in a .jar File I created remotely on Windows - I get a ClassNotFoundException. There is no problem with a .class File I compile on Windows and transfer via FTP.
Jars created on z/os issue no problems neither.
Strange, isn't it?
Any Idea?
Thanks!
Alex