Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat configuration problem

 
Rajeev Nair
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded Tomcat4.0.3 and iam running Win 98.
I have set the environment variables
set JAVA_HOME=C:\JDK1.4
set CATALINA_HOME=C:\Tomcat.
I fact i put this in autoexec.bat file.
So when I run the startup.bat file it opens one more dos window and immediately gets closed.
Iam left with one dos window where it says
C:\tomcat\bin>startup
Using CATALINA_BASE: c:\tomcat
Using CATALINA_HOME: c:\tomcat
Using CATALINA_TMPDIR: c:\tomcat\temp
Using JAVA_HOME: c:\jdk1.4
When i was using tomcat 3.0 it used to open a new dos window saying starting tomcat. I also tried
on the browser http://localhost:8080/. It says page not responding. Am i doing something wrong here?. Any help is appreciated.
Thanks
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same problem which I have not been able to solve on Windows 2000. But here are some of the things that you might want to try.
[1] Please note that Tomcat is NOT supported on Win 98.
[2] Go to Tools>Internet Options>Advanced tab and uncheck "show friendly http error messages" option. This will show you specific error instead of gly looking page cannot be displayed error.
[3] open startup batch file in a text editor, comment the line that says echo off. This way when the file runs, you will see everything in the dos window. This might give you some hint on what is happening.
I have tried all of the above and I have windows 2000 but I have not been able to figure out what is going on. If you find something, please post it.
Thanks
Chintan
 
Rajeev Nair
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried this and it worked for me
1) I have set the environment variables and put that in autoexec.bat file
set JAVA_HOME=C:\JDK1.4
set CATALINA_HOME=C:\Tomcat.
set TOMCAT_HOME=C:\tomcat
set classpath=%classpath%;c:\jdk1.4\lib\tools.jar
2)Try to change the catalina.bat
code:
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle
should be changed to:
code:
:noTitle
set _EXECJAVA=%_RUNJAVA%
:gotTitle
This way i made it to work.
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not helping me. I think it has problems with Bootstrap.class
 
Fritz Passow
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I set up Tomcat 4.0.3 on Windows98 and it seems ok. However Win98 does require the following (from RUNNING.txt in the download). It didn't work without this, but I don't remember seeing the "out of environmnent space" error... it might have been in the vanishing DOS window.
--------------------------------------------
2) An "out of environment space" error when running the batch files in
Win9X/ME-based operating systems.
Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on
"Properties" then on the "Memory" tab. For the "Initial environment" field,
enter in something like 4096.

After you click apply, Windows will create shortcuts in the directory with
which you can use to start and stop the container.
 
J Reddi
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI RAjeev,
I had lot problems and finally got them fixed.
I suggest that you delete your Tomcat and jdk and start over again.
I found excellent help at Marty HAll's www.moreservlets.com and the actaul link is :
http://www.moreservlets.com/Using-Tomcat-4.html
DO THE THINGS:
1. Print the entire (14 page) configaration tutorial and have it as a hard copy in front of you. That will save you lot of headaches.
2.I down loaded Tomcat 4 and jdk 1.3.1 from the above site.
3. Just follw the guidelines in the tutorial.
I am using windows 98, Tomcat 4, jdk1.3.1 and my AUTOEXEC.BAT looks like this
--------------------------------
@ECHO OFF
rem
rem *** DO NOT EDIT THIS FILE! ***
rem
rem This file was created by the System Configuration Utility as
rem a placeholder for your AUTOEXEC.BAT file. Your actual
rem AUTOEXEC.BAT file has been saved under the name AUTOEXEC.TSH.
rem
SET PATH=C:\jdk1.3.1\BIN
SET TOMCAT_HOME=C:\tomcat4
SET CATALINA_HOME=C:\tomcat4
SET JAVA_HOME=C:\jdk1.3.1
SET PATH=%PATH%%JAVA_HOME%\bin;C:\TCLITE\BIN;%PATH%
SET CLASSPATH=.;C:\ServletDevel;C:\tomcat4\common\lib\servlet.jar
-------------------------------------
Hope this will help you.
J. Reddi
SCJP2
 
Rajeev Nair
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everybody!!!. I got my tomcat up and running and could compile some simple servlets.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic