tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: MySql Connector
Date Thu, 26 Jul 2007 19:00:35 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohammed,

Mohammed Zabin wrote:
> If you looked at the exception you will find ClassNotFoundException at line
> 66 in the generated servlet, and this occurs withing the try block, so, i
> think it's a problem of Connector.

You are seriously confused, here.

Your code is not being compiled. Your code is not running. The fact that
you have a try/catch block in your code is irrelevant.

Why do you think that this "occurs" within the try block? Your stack
trace does not include any references to your own code. It's simply not
executing.

And, even if this "occurred" within your try/catch block, you are
foolishly swallowing all exceptions, meaning that you would never know
what the problem was.

> But the strange thing is that this
> code worked fine on a normal java class???

Probably because your "normal java class" actually compiled and ran.
Something is wrong with your file, not your code.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGqO9T9CaO5/Lv0PARAuXgAKDBgPM+osNL0y15at28q9YITixicACgqJte
QOgTrjE+1cqeih2be83XEww=
=dPUB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message