File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tomcat configuration problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tomcat configuration problem" Watch "Tomcat configuration problem" New topic
Author

Tomcat configuration problem

Rajeev Nair
Ranch Hand

Joined: Mar 11, 2002
Posts: 51
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


Raj<br />Sun Certified Java Programmer
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
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


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
Rajeev Nair
Ranch Hand

Joined: Mar 11, 2002
Posts: 51
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

Joined: Aug 19, 2001
Posts: 341
This is not helping me. I think it has problems with Bootstrap.class
Fritz Passow
Greenhorn

Joined: Jun 16, 2002
Posts: 3
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

Joined: Apr 24, 2002
Posts: 34
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

Joined: Mar 11, 2002
Posts: 51
Thanks everybody!!!. I got my tomcat up and running and could compile some simple servlets.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat configuration problem
 
Similar Threads
about tomcat
tomcat configuration problem
Win98SE & Tomcat 4 setup problem
Step-by-step Installing Tomcat4 in Windows NT/2000 Server
getting 'page can't be displayed' error...