Hi, i have installed Tomcat 3.1 version on Windows 98 and couldn't configure it. I have following questions 1) is Tomcat compatible with Windows 98? 2) what statement should i include in autoexec.bat file for it to work properly? 3) after successful compilation ( which I hope to achieve) how do I see the results? thanks
Yes it's compatible here is how i configured it today go to start | run and type in sysedit then find autoexec.bat i added this to it there you set it up as you have it. good luck. set TOMCAT_HOME=c:\tomcat set JAVA_HOME=c:\jdk1.3 set PATH=%PATH%;c:\jdk1.3\bin set CLASSPATH = .;c:\jdk1.3\bin\;C:\jdk1.3\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar
To see if tomcat is installed properly open up your browser and type the following url: http://hostname:8080/ After that you will get a webpage with links on it to test sample JSPs and Servlets. Regards, Faisal
Vishakha Ahuja
Ranch Hand
Joined: Sep 13, 2000
Posts: 191
posted
0
Hi Val, I did exactly what you've told. Thank God it worked and I could compile the file. But what next ? When I type startup at DOS, nothing happens......Cursor blinks and DOS window does not accept any input...When I close it, I get message, "windows cannot shut this program automatically.." What should I do to view the result? P.S Whatever Faisal has said is giving 404 error. [This message has been edited by Vishakha Ahuja (edited March 07, 2001).]
Vishakha Ahuja
Ranch Hand
Joined: Sep 13, 2000
Posts: 191
posted
0
Do I have to make changes to startup.bat in bin directory under tomcat (for win 98)? What is the procedure to view the results in a browser window after compilation?
Val Dra
Ranch Hand
Joined: Jan 26, 2001
Posts: 439
posted
0
Did you see a tomcat start it should start loading and display something in the dos window like loading examples stuff what i did then is when i went to the browser window i typed in this , it should display an examples page but you first must start tomcat.
when i type startup on the DOS screen ( from the bin directory) i get a message " Bad Command or file name" I think the startup.dat file is erroneous . How do i fix it?
I performed the steps as in Roseanne's instructions but still the Tomcat server doesn't start.Nothing seems to work Is there any other way to start this server? Regards
Originally posted by Vishakha Ahuja: I checked that the Tomcat/bin directory has the startup.dat file please suggest what should i do?
This needs to be named startup.bat not startup.dat You should also have a shutdown.bat file which is what you use to stop the Tomcat Server. ------------------ Hope This Helps Carl Trusiak
Actually, it was a typo i do have a startup.bat file in the /bin directory. also i have a shutdown.bat file. Any other suggesstions please Thanks for your help
is anyother service running on the port on which tomcat is attempting to start?
is the memory setting on your DOS window high enough?
Also, could you pl. post the complete path to your tomcat bin dir. The only thing I don't know is compatibility of Tomcat 3.1 with JDK1.3. I would assume it is, but would definetly verify this. If nothing else works, I would switch to Tomcat 3.2.xxxx. regds. - satya
This is my autoexec.bat file(as advised by Val Dra in this forum). ------------------------------------ set TOMCAT_HOME=c:\tomcat set JAVA_HOME=c:\jdk1.2.1 set PATH=%PATH%;c:\jdk1.2.1\bin set CLASSPATH = .;c:\jdk1.2.1\bin\;C:\jdk1.2.1\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar ------------------------------------- And this is what my startup.bat file looks like (unchanged after installation) ------------------------------------- rem @echo off rem $Id: startup.bat,v 1.7 2000/03/31 19:40:02 craigmcc Exp $ rem Startup batch file for tomcat server. rem This batch file written and tested under Windows NT rem Improvements to this file are welcome if not "%TOMCAT_HOME%" == "" goto start SET TOMCAT_HOME=. if exist %TOMCAT_HOME%\bin\tomcat.bat goto start SET TOMCAT_HOME=.. if exist %TOMCAT_HOME%\bin\tomcat.bat goto start SET TOMCAT_HOME= echo Unable to determine the value of TOMCAT_HOME. goto eof :start call %TOMCAT_HOME%\bin\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9 :eof ------------------------------------------------- I don't know about the services on port? How to determine this. The complete path is C:\tomcat\bin I have jdk 1.2.1 installed. is that ok? Thanks
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
set CLASSPATH = .;c:\jdk1.2.1\bin\;C:\jdk1.2.1\lib\servlet.jar;c:\myClass;%TOMCAT_HOME%\lib\servlet.jar
After this line in your autoexec.bat, I would add: set CLASSPATH = %CLASSPATH%;C:\jdk1.2.1\lib\tools.jar This is a must for tomcat. It has to find this jar in your classpath. Let me know what happens. Good Luck. If tomcat starts, use a(NS) browser and goto the URL http://localhost:8080 and see the examples. Don't worry abt the port I said. regds. - satya
Simon Xu
Ranch Hand
Joined: Aug 16, 2000
Posts: 235
posted
0
this is my autoexec.bat file. It works. C:\PROGRA~1\QUICKH~1\QHSTRUP.EXE SET SOUND=C:\PROGRA~1\CREATIVE\CTSND SET MIDI=SYNTH:1 MAP:E SET BLASTER=A220 I5 D1 H5 P330 T6 SET JAVA_HOME=C:\JDK1.3 SET CLASSPATH=.;C:\JDK1.3\LIB\TOOLS.JAR;C:\JAKARTA-TOMCAT\LIB\SERVLET.JAR;C:\JAKARTA-TOMCAT\JASPER.JAR SET CLASSPATH=.;C:\JAXP1.0.1\JAXP.JAR;C:\JAXP1.0.1\PARSER.JAR SET TOMCAT_HOME=C:\JAKARTA-TOMCAT SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3\BIN;C:\JAKARTA-TOMCAT\BIN
Val Dra
Ranch Hand
Joined: Jan 26, 2001
Posts: 439
posted
0
you can add them to your classpath these tools.jar but it's not necessary i think because if you look at the startup.bat it automatically add it by itself these jar file to the classpath when it gets invoked. I don't know what to suggest but do you reboot your machine after you set them up ? you have to reboot. ------------------ Val SCJP going for SCJD
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
you can add them to your classpath these tools.jar but it's not necessary Val: While I cannot point you to the web page, which I read this from, but somewhere on the Tomcat FAQ I read that sometimes it would help if we add the tools.jar to the classpath. I will try and get back on this. Atleast if it works, we can move forward. regds. - satya
I tried everything, but still the same ! Just a thought, when I downloaded the tomcat, it was from release build. Does this have anything to do with it? There were also other download section namely : binaries, source code etc. So, have I downloaded the wrong file ??? If I re-download, which file should I choose ?