wood burning stoves
The moose likes JSP and the fly likes Tomcat Setup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tomcat Setup" Watch "Tomcat Setup" New topic

Tomcat Setup

Simon Ingram
Ranch Hand

Joined: Nov 30, 2003
Posts: 173
Hi Folks,
I have just bought the book "Beginning JSP 2.0" from Wrox and have used it to try to install Tomcat on a standalone Windows XP PC. Following the instructions, I downloaded the software to c:\Tomcat. The result is that directory jakarta-tomcat-5.0.16 and all its subdirectories reside within the c:\Tomcat directory, as one would expect. I have set up the following environment variables:
JAVA_HOME c:\j2sdk1.4.1_03
JAVA_CATALINA c:\Tomcat\jakarta-tomcat-5.0.16
CLASSPATH %CATALINA_HOME%\common\lib\servlet.jar
The download process did not generate a Start Tomcat icon, so at the command line I type:
C:> %catalina_home%\bin\startup
Using Windows Explorer I do find startup.bat and startup.sh on this path, but the above command instantly closes the command prompt and shows no sign that startup has done anything, at least I can find nothing in c:\Tomcat\jakarta-tomcat-5.0.16\logs.
When I open Internet Explorer (v 6.0) and type http://localhost:8080 nothing happens. Is my setup/procedure correct? I have scanned the Wrox website and the leads from Google. A similar problem was logged by someone else, but no answer to it was provided. Currently I can�t make progress. Can one of you clever souls please help?
Regards and thanks,
Debashish Chakrabarty
Ranch Hand

Joined: May 14, 2002
Posts: 231

The only possoible error I could see is the Catalina home variable set wrongly. Perhaps changing
to the following:

might help.
Also it would have sufficed to have the tomcat directory as c:\jakarta-tomcat-5.0.16.

SCJP2, SCWCD 1.4, PMP, ITIL Foundation
Simon Ingram
Ranch Hand

Joined: Nov 30, 2003
Posts: 173
Sorry, I have got CATALINA_HOME as my environment variable not JAVA_CATALINA. I just made a typo in my last message.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
This is really a Tomcat-specific question rather than a general JSP issue, so you will probably get more useful help over in our Tomcat forum. With that in mind I've moved this post for you.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Tomcat Setup
It's not a secret anymore!