Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes 2 essential questions on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "2 essential questions on tomcat" Watch "2 essential questions on tomcat" New topic

2 essential questions on tomcat

Jeffry Cray

Joined: Oct 08, 2000
Posts: 25
Hi all,
It's about tomcat.
I've a win98 OS and since my autoexec.bat file is correct (JAVA_HOME, TOMCAT_HOME, CLASSPATH, PATH)
1- How do I know that when I run "startup.bat" in my "c:\tomcat\bin" that tomcat has started properly
2- Also how exactly do I run servlets after starting tomcat
I've spent more than a week trying to figure these darn things out, but the more I read, the more mixed up I get...wierd ha..!
[This message has been edited by Jeffry Cray (edited December 06, 2000).]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
When you run startup.bat, do it from a MS-DOS prompt window so you can watch the various messages. Startup.bat will open a second window for Tomcat where you will see various messages. This window stays open as long as Tomcat is running. If this window closes right away, there was probably an error. To run Tomcat in a MS-DOS prompt window that will stay open, take a look at what startup.bat is doing - all it really does is make sure that TOMCAT_HOME is set and then call the tomcat.bat file like:
tomcat start
so if your TOMCAT_HOME is set - use tomcat start
If you see an "out of environment" error, increase the initial environment memory for MS-DOS prompt windows.
When you think it is running ok, with a browser address http://localhost:8080/
(assuming you have not changed the port) this should get you the Tomcat startup page.

author of:
Jeffry Cray

Joined: Oct 08, 2000
Posts: 25
Before I type startup.bat to run tomcat should I disconnect the internet? Note that I'm using tomcat on my personal machine with win98.
By the way, your Java2(Exam Cram) which I got from my local bookshop helped me to take my Java Programmers Certification. Thanks for the help

[This message has been edited by Jeffry Cray (edited December 06, 2000).]
I agree. Here's the link:
subject: 2 essential questions on tomcat
It's not a secret anymore!