• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Setup

 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 250
Python Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Instead of
In your Command Prompt window CD to your bin directory and execute startup.bat - it works for me. I believe that there is a dependency on the "current" directory.
Tomcat pays no attention whatsoever to CLASSPATH
Bill
 
Ranch Hand
Posts: 1479
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Brogden:
Instead of
In your Command Prompt window CD to your bin directory and execute startup.bat - it works for me. I believe that there is a dependency on the "current" directory.
Tomcat pays no attention whatsoever to CLASSPATH
Bill



After doing the above, it seemed like it started and did lots of initializations and scrolling down the command prompt window. When I tried to access Tomcat via IE browser : localhost:8080 or variations thereof, it could not display page. However, http://127.0.0.1:8080/ worked (which I accessed by clicking on Welcome icon in Tomcat application accessed via Start).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic