• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Tomcat 5.5, Windows XP install/config

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings Members,

I would greatly appreciate your help on this. I get the following error when trying to start Tomcat:

"The connection was refused when attempting to contact localhost:8080"

I am trying to install Tomcat 5.5 on my laptop (Dell Espiron XPS. After installation when I try to start Tomcat from the command prompt I get several messages (below) and nothing else. When I do a ctrl/alt/delete I do not see Tomcat running as a process. FYI - I am using the Mozilla browser. Funny thing is I did have it working before but after many many attempts I cannot remember what I changed to make it fail (knucklead me).

If it helps I am trying to work through the Head First Servlets & JSP book by Bryan Bashan, Katch Sierra & Bert Bates (which enabled me to pass the SCJP exam with the Bates and Sierra book - thanks). In the Head First book I am working on pages 72-77 and am stuck on page 76.

For what it is worth I am able to click on the form.html page and sucessfully bring it up in Mozilla.

I know I need to verify that 8080 is not already in use but do not know how.

Here is the messages from the command line attempt at starting Tomcat:

C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin>tomcat5.exe
Jan 10, 2005 7:18:41 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 10, 2005 7:18:41 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 719 ms
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.
webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule:
Target string: News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.bal
ancer.rules.RequestParameterRule: Target param name: paramName / Target
param va
lue: paramValue / Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balanc
er.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 10, 2005 7:18:41 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 10, 2005 7:18:42 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 10, 2005 7:18:42 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 10, 2005 7:18:42 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 10, 2005 7:18:42 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 10, 2005 7:18:42 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15 config=null
Jan 10, 2005 7:18:42 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1281 ms


Thank you so much for any help you have time to give me.

Sincerely,

Jerry Bustamente
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a startup.bat file in $tomcat-home/bin directory? Did you set your $JAVA_HOME variable? Try using the bat file instead of the exe, because it might set some more environment variables.

[I do not have Tomcat 5.5 installed, but actively use Tomcat 5.028 with JDK 1.42]
 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nitish,

Thank you very much for your reply. I will try the things you suggest.

Sincerely,

Jerry Bustamente
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jerry,

I know I need to verify that 8080 is not already in use but do not know how.
To check what ports are running, use "nestat -na" at a command line prompt.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have the same setup and it works fine.

Problems I had
(1) tomcat 5.5 required java 1.5
(2) initially I didn't set JAVA_HOME
(2) JAVA_HOME path cannot cope with spaces in the path to the jvm, so make sure it is installed/copied somewhere without spaces.

Steve
 
Jerry Bustamente
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Joyce, Stephen and Nitish for responding to my post - I now have it working thanks to you.

Sincerely,

Jerry Bustamente
 
reply
    Bookmark Topic Watch Topic
  • New Topic