Forums Register Login

Tomcat is *almost* running

+Pie Number of slices to send: Send
hello there mike ... i think u helped me out and i am just a few strokes shy of making tomcat run.....
the following is the batch file startup
the thing to note is the last line whihc is reproduced below:
***********************
Cannot find file 'c:\jdk1.2.2\bin\bin\java' (or one of its components).
***********************
WHERE IS MY MACHINE GETTING THE bin\bin path???...i have checked everywhere...i am not specifying this path anywhere...
-----------------------
C:\Program Files\Apache Tomcat 4\bin>
C:\Program Files\Apache Tomcat 4\bin>set _CATALINA_HOME=c:\Progra~1\Apache~1
C:\Program Files\Apache Tomcat 4\bin>if not "c:\Progra~1\Apache~1" == "" goto go
tCatalinaHome
C:\Program Files\Apache Tomcat 4\bin>"c:\Progra~1\Apache~1\bin\catalina" start
Using CATALINA_BASE: c:\Progra~1\Apache~1
Using CATALINA_HOME: c:\Progra~1\Apache~1
Using CLASSPATH: c:\Progra~1\Apache~1\bin\bootstrap.jar;c:\jdk1.2.2\bin\lib\
tools.jar
Using JAVA_HOME: c:\jdk1.2.2\bin
Cannot find file 'c:\jdk1.2.2\bin\bin\java' (or one of its components).
Check to ensure the path and filename are correct and that all
required libraries are available.
------------------
+Pie Number of slices to send: Send
Just set JAVA_HOME to
c:\jdk1.2.2\
because it knows about bin and the other subdirectories.
Bill
+Pie Number of slices to send: Send
thanks... it KINDA worked.... here is an error i get
------------------------
A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation t
arget' has occurred in :
'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
-------------------------
does that mean tomcat is now running?
+Pie Number of slices to send: Send
Holy COW!

mansoor, you are having such a great time getting tomcat to run. Ok, I'm not laughing at you , but *with* you.

JIT is the 'just in time' compiler, and it looks like an internal error of some sort.

Crimson was Sun's XML parser, donated to apache. They have obviously incorporated some bits of it into Tomcat. Even though apache had their own Xerces parser at that point, they must have smushed them together. Who knows how these things work under the hood?

The way to determine if you have Tomcat running or not is to try to access it's index page. http://localhost:8080/

The issue with the JIT throwing this non-fatal error is a 'known' issue. I did a google search on "A nonfatal internal JIT (3.10.107(x)) error 'Relocation error", and it seems this is a well known error with some people's JIT compiler. Many products, from iPlanet, to Jive, to shrink-wrapped software have seen this problem before.

The best advice seems to be in this forum (which by the way, may at some point give UBB a run for it's money...it's Java-based). They suggest upgrading to jdk1.3
http://www.jivesoftware.com/jive/thread.jsp?forum=1&thread=2772
+Pie Number of slices to send: Send
Hey Mike ... not worry about the laughing bit ... hell .. its my first tike setting up a server and all ... and if do make newbie mistakes or have funny errors ... well.... i wd be laffing too!...

anyway ... good news...
after the nonfatal error, the server DID start ...
how do i know this?.....a DOS java screen opens up which shows all the requests being made from the browser to the server.. the output is as follows:
-------------------
Starting service Tomcat-Apache
Apache Tomcat/4.0
StandardServer.await: Invalid command 'GET / HTTP/1.1' received
-------------------
in the output above lies yet another problem ...
every request i make, the tomcat gives me the last line as error
the above error is when i just type in : http://localhost:8080
no show ... nada ... i get the error and no page gets displayed.
tomcat says the the folder \webapps is the folder that is mapped as the virtual folder ... and the sub folder .\root has an index.htm file which says that if i can view this page i know tomcat is running...
i have also tried http://localhost:8080/webapps/root/index.htm
nope..nien .. niet ... the error i get is:
-----------------------
StandardServer.await: Invalid command 'GET /webapps/root HTTP/1.1' received
StandardServer.await: Invalid command 'GET /webapps/root/index.htm HTTP/1.1' rec
eived
-----------------------
stuck again ....

+Pie Number of slices to send: Send
It is not really starting correctly. That 'non-fatal' error is probably involved.

Have you tried to upgrade your JDK to 1.3 or later?

Even though Tomcat docs say it can run with JDK1.2.x, I'd recommend upgrading to fix that non-fatal error. Let's eliminate that possibility before anything else.
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1264 times.
Similar Threads
problem whith installation Tomcat
still problems with tomcat
tomcat 4.0 configuration
Tomcat 4.0 Configuration
Need Help starting Tomcat
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:13:49.