• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Tomcat 4.1 Not Starting up


   I'm trying to start tomcat 4.1 on win98. What happens when i start(startup) tomcat from command is another window pops up and closes. I'm using JDK1.3 for JAVA_HOME (maybe thats a problem?). Well the main thing is that i get this message When runing catalina (catalina run) << in command:

i hope this helps ??.....
Exception in thread "main" java.lang.NoClassDefFoundError : org/xml/sax/InputSource

                 at java.lang.Class.newInstance0(Native Method)
                 at java.lang.Class.newInstance(Class.java:237)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
If anyone is gonna answer this please use simple terms and questions because i am no Expert :).... thankss
1 Solution
To me it looks like Tomcat cannot find your JDK.  Did you set JAVA_HOME?
To set JAVA_HOME on win98 I think you do something like go to control panel, then system properties, and then find the 'environment variables'.  Create a variable JAVA_HOME and set it to the path of your JDK (ex. C:\jdk1.3)
Hope this helps.
MbKAuthor Commented:
OK ... this is an update of what i have done.

I deleted Jbuilder5, Apache, Tomcat, jdk1.3,jdk1.2

I tryed installing tomcat on my collegues 98 pc and it worked fine without even setting any variables. ?? . so i think i have to install jdk1.4 and delete all those apps that i dont need, then install tomcat.


   I did set the variable but only in the CATALINA file and Autoexec.bat, Tomcat wouldnt let you install unless you have a jdk installed. I used 1.3. i've been told that jdk1.4 is most suitable for the tomcat version i have which is 4.1. thanks for ur help,

i will try this method then give you an update.
MbKAuthor Commented:
I Installed Tomcat again .... :( ... everything was ok The server was started normally. but when i tryed running http://localhost:8080
this is what i got
HTTP Status 500 -


type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

???? emmm .. what do i do now ???
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.


this should not be a problem if you set your java_home and catalina_home properly. Why don't u use ur ip address..and see whether it works or not?? (it is rather silly on my part...but sometimes u can't say!!!)....try giving the full path like http://localhost:8080/index.html

revert back
happy working
MbKAuthor Commented:
   when i tryed http://localhost:8080 i was automatically redirected to http://localhost:8080/index.html. and got the message above. thanks for the help but i guess it was not very smart using tomcat with 98. Now i'm using my partners 2000 pro pc and offcourse i only had to set the environment variable java_home, and all worked just fine :)

thanks for the help :)
Well, it's good that things works for you...have a nice time

PAQed, with points refunded (50)

E-E Admin

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now