Link to home
Start Free TrialLog in
Avatar of MbK
MbK

asked on

Tomcat 4.1 Not Starting up

Hi,

   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
Avatar of djochim
djochim

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.
Avatar of MbK

ASKER

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.

djochim,

   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.
Avatar of MbK

ASKER

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

message

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

exception

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 ???
Well,

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
fargo
Avatar of MbK

ASKER

Fargo,
 
   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

regards
fargo
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial