- This topic has 6 replies, 2 voices, and was last updated 19 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
P.G.TaboadaMemberHi,
I was playing around with TC 5.5 and DB2…
The following simple piece of code…
Class.forName(“the ugly db2 jdbc drive class name”);
DriverManager.getConnection(“ugly url”, “bored user”, “simple passwd”);// do some jdbc here
…Runs well as TestCase outside of tomcat
…Runs well in a Servlet inside of tomcat outside of eclipse
…Throws a “Cannot find a suitable driver” Exception when starting
tomcat through myeclipseide inside of eclipseOh yes, I added all my strange classpath entries to the startup
parameter in the appserver config.Any ideas?
brgds
Papick
Riyad KallaMemberOh yes, I added all my strange classpath entries to the startup
parameter in the appserver config.And what were those exactly?
When you run tomcat outside of Eclipse, how are you running it? Windows service? Batch file? etc.
P.G.TaboadaMemberOutside: batch file, setting CATALINA_HOME and JAVA_HOME manually
Inside: added the two zip files from the dbs runtime client to the classpath and the bin directory too (those settings should now match the output of a “set classpath” in the command window)Brgds,
Papick
P.G.TaboadaMemberhi,
just wondering – how is tomcat startet from within myeclipseide?
Riyad KallaMemberPapick it sounds like you are doing what you should be to duplicate the setup of the batch file, there is likely a library or driver you have missed. Have you tried deploying your JDBC driver to your /common/lib directory in Tomcat to see if that helped?
P.G.TaboadaMemberWell, I matched both envronments, looked equal to me. The DB2 driver was a Type2 one, calling a native installed driver.
I do not have access to those machines anymore (course is finished, students loved myeclipse 🙂 ), but maybe someone else is going to run into the same problem in the future…thanks for your support,
brgds,
Papick
Riyad KallaMemberPapick,
Sorry to hear it didn’t get worked out. We did have a bug w.r.t. to the resolution of DLLs on the library path for our app servers, so I wonder if this was the cause (it will be fixed in M3) -
AuthorPosts