File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat is'nt working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat is Watch "tomcat is New topic

tomcat is'nt working

Chiung-Yi Chang

Joined: Jun 01, 2005
Posts: 1
Hi, I've read through the book of Head First Servlets & JSP, but somehow I'm confused about the way author told setting up the tomcat on the computer. But the way the author used is not working on my computer enviroment. please help.

When I click on the startup.bat it appears ok , but when I get on http://localhost:8080/index.html ,then the error shows, this web page cannot show or even when I get on .Is it wrong with my path setting?(coz my window system is Window 98, so I have to go to the Autoexec.bat to set up the path)

I set up the path by in Autoexec.bat)

SET PATH=C:\j2sdk1.4.2;C:\j2sdk1.4.2\bin
SET JAVA_HOME=C:\j2sdk1.4.2

please give me a correct way ! Thank you!

[ June 05, 2005: Message edited by: Chiung-Yi Chang ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

You posted this in our JDBC forum; JDBC is Java's database API, and it's unrelated to your problem. We have another forum for discussing tomcat configuration issues here. I will move this thread to that forum for you.

[Jess in Action][AskingGoodQuestions]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Don't run startup.bat by clicking on it - you will lose the error messages if any. Instead open a command prompt window and navigate to the directory the startup.bat lives in - execute it from the command prompt.
Using Windows 98 there are special precautions - you will have to increase your environment space as used by the command prompt because Tomcat uses a huge amount of environment variables and the default is too small.
Here is a recent discussion of what to do.
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
I would also add, that when I installed Tomcat on W98 awile back, my autoexec.bat looked something like the following:

I set the JAVA_HOME, CATALINA_HOME environment variable first and then appended them to the PATH environment variable.

Also, I would like to point out, that it is CATALINA_HOME instead of CATALINE_HOME.
I agree. Here's the link:
subject: tomcat is'nt working
It's not a secret anymore!