Friends, I have installed the tomcat on my m/c (Win2000) and set the following variables: JAVA_HOME= c:\jdk1.2 CATALINA_HOME=c:\progra~1\apache~1.0\bin CLASSPATH= c:\progra~1\apache~1.0\lib Now when i try to run the tomcat by double clicking startup.bat file (after going to the bin directory), nothing happens. Only momentary dos window. I am not able to move ahead. Plz help me. Also i have javawebserver2.0 installed. Thanks pradi
hi set tomcat_home=<directory where it's installed like c\d>:\<directory name\bin; It should work ... if not and pls let us what's error u r getting.u also have to set some jar file(which r there in lib directory to classpath)
You need to setup the DOS initial enviroment to 4096. (default is auto). Below is the step. Right click the shortcut of Startup.bat icon. Select property Select the Memory tab Change the Inital Enviroment from auto to 4096. By the way, it will be better it you can use the JDK1.3 for tomcat4.0 version. Hope it helps. David SCJP/SCWCD/SCEJA
You shouldn't need to set TOMCAT_HOME or CLASSPATH. All that Tomcat 4.0 requires is CATALINA_HOME and JAVA_HOME. And ... there's no point in setting classpath to the jdk/bin dir (no class files there!). I expect that Prateek meant PATH, so that java and javac are accessible, however this is not necessary for Tomcat.
Originally posted by prateek shah: try setting java classpath , classpath=c:\jdk1.2\bin;c:\jdk1.2\lib;
posted 18 years ago
Friends, Thanks for taking so much pain in helping me out. I realized one of the mistakes in my configuration. The catalina_home should not be till bin directory, but till the parent directory of bin. Also i have read that, on win2000, long names like program files give problems. Thus i have changed the path to c:\tomcat (which is not the catalina_home). It has worked but i am getting an error A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation target' 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.cg I am not able to understand it. Is there any problem with my JDK? Thanks once again for the help. pradi
posted 18 years ago
Hi, As i told im able to run tomcat. I am stuck again. Java webserver used to be soooo simple. I want to run a simple JSP and servlet. I made the jsp file and put it in \webapps\mydev directory (mydev dir created by me). Now to execute it i typed http://localhost:8080/mydev/Test.jsp (my jsp file). Do i need to make any change in server.xml. i tried adding context but it didnt work. Similarly for server, what do i need to do? It would be great if someone could plz tell me the simple steps for executing jsp and servlet along with java beans on tomcat. Thanks a lot in advance pradi
hi, i have set the classpath as well.. still not able to test any jsp.. getting the same old error on running tomcat : A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation target' 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.cg Just to tell again i've win2000 OS. plz help regards pradi
this is supposed to be a surprise, but it smells like a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!