You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2009/02/09 06:34:20 UTC

RE: NullPointerException from DriverManager.getConnection() ->JdbcOdbcDriver.initialize()

> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Subject: RE: NullPointerException from
> DriverManager.getConnection() ->JdbcOdbcDriver.initialize()
>
> that message does'nt make sense

Why not?  It's a NullPointerException, not a ClassNotFoundException.

> please verify rt.jar is on your CLASSPATH

That is utterly stupid.  NEVER, NEVER, NEVER put rt.jar in CLASSPATH, under any circumstances.  Classes from rt.jar must be loaded only by the JVM's internal bootstrap classloader; classes found via CLASSPATH are handled by the system classloader.  The JVM knows where rt.jar is, although that location can be overridden by -Xbootclasspath when needed.  Regardless, you don't need to set -Xbootclasspath or CLASSPATH when running Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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