This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Configuration" Watch "Tomcat Configuration" New topic

Tomcat Configuration

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
I am deploying a JSP but failed.
Http error 404 etc.
Tomcat does works.

So I suspect it is the environment variables setting up problem and I re-install tomcat pre-configuration version 6.0.10.

I tried to double click catalina.bat and setclasspath.bat in
However just see a window pop up then disappears quickly.the environment variables are unchanged at all.

Jdk 1.6.0_04
J2EE 1.4
Can you please point it out what is wrong?

Thank you very much.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The correct one to start Tomcat is startup.bat. But don't double-click it; open a Concole window, change to the Tomcat directory, and then type "bin\startup.bat". That way you will see if there are any error messages.
Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
I appreciate your reply but you may misunderstood my question.
bin/startup.bat is ok.
My question is I want to reset the environment variables by double
click bin\catalina.bat and bin\setclasspath.bat.
But they are not working.
I just saw a window jumps out then closes quickly. The environment variables are not set automatially.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Environment variables set in a batch file are good for the current dos session only. Double clicking a bat file runs its contents and closes the current dos session.
So... What you're trying to do isn't going to work.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Tomcat Configuration
It's not a secret anymore!