Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Setup

 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Path %CATALINA_HOME%\bin;%JAVA_HOME%\bin;
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,
Simon
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debashish,
Sorry, I have got CATALINA_HOME as my environment variable not JAVA_CATALINA. I just made a typo in my last message.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic