Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 4.0 does not start

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I have installed Tomcat 4.0 and the jdk 1.3.1

I have set the environment variables JAVA_HOME and CATALINA_HOME.

But when I start Tomcat, I have this error in the stdout.log :

Create Catalina server
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)...

Thanks to help me.
 
In general, you have a classpath problem. More specifically, I am going to make guess that you tried to call the startup.bat while your command prompt was somewhere other than Tomcat's root directory. When I was using Tomcat 3 I had similar problems if the current directory wasn't tomcat/ when executing startup.bat.

Solution is to create a new bat file that goes to the correct directory then calls startup: like this:

starttom.bat ------------------------------------------
@echo off
call addjdk13
set TOMCAT_HOME=d:\tomcat4
pushd d:\tomcat4
call bin\startup
popd
---------------------------------------------------------
Note: I don't have any system variables like CLASSPATH. That way I am pretty sure that different versions of same class aren't in classpath: I don't get into situations where wrong version of some class is being found earlier in the classpath. (Very confusing runtime problems) I do 'addthis' 'addthat' for all java development.

addjdk.bat modifies PATH and CLASSPATH for the current DOS window only.

addjdk13.bat ------------------------------------------
@echo off

set JDK=.;C:\jdk1.3.101\jre\lib\rt.jar;C:\jdk1.3.101\lib\tools.jar
set JDK_BIN=C:\jdk1.3.101\bin
set JAVA_HOME=C:\jdk1.3.101

if defined PATH set PATH=%PATH:;C:\jdk1.3.101\bin=%
set PATH=%path%;%JDK_BIN%

if defined CLASSPATH set CLASSPATH=%CLASSPATH:.;C:\jdk1.3.101\jre\lib\rt.jar;C:\jdk1.3.101\lib\tools.jar=%

set CLASSPATH=%JDK%%CLASSPATH%
------------------------------------------------------------

pfist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top