finally, though I'm against the advice (because you should be able to get Tomcat working without this).. you could copy tools.jar from your JDK into the common/lib directory of Tomcat. This is noted in the second bullet point on this page
Joined: Sep 16, 2004
hi Mike, Many thanks. windows:XP,Tomcat:5.0.28 I checked the version of java and it is: java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
I copied the tool.jar to common\lib in tomcat, it works fine now.
For the same reason I'm against putting anything in the /ext directory. It should be possible to keep tools.jar in *one* place, and have it referenced. That's what JAVA_HOME is supposed to do. As an example of why this is bad: Let's say 8 months from now, you upgrade your JDK. Let's say that there are incompatibilities. Are you going to remember that 8 months ago, you copied tools.jar into common/lib?