• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Unable to connect

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

I am using Windows 7 - OS. Apache Tomcat 5.5 is the web server. When I tried to open my webapplication in firefox I keep getting the following error. I have no idea what its about. Can someone please shed some light on it.

Unable to connect

Firefox can't establish a connection to the server at localhost.

* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
 
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
1. how did you start Tomcat/are you sure Tomcat is running?
2. did this installation of Tomcat ever work before you started adding your application?
3. was any configuration file changed?
4. what is the exact URL you are trying to use?

Bill
 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Romeo Ranjan wrote:
I am using Windows 7 - OS. Apache Tomcat 5.5 is the web server. When I tried to open my web application in Firefox
I keep getting the following error. I have no idea what its about. Can someone please shed some light on it.



Do you mean it works with another browser?
 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

William Brogden wrote:1. how did you start Tomcat/are you sure Tomcat is running?
2. did this installation of Tomcat ever work before you started adding your application?
3. was any configuration file changed?
4. what is the exact URL you are trying to use?

Bill



I have Tomcat windows installer version. I use the monitor tomcat to start or stop the services. Yes the installation works fine with other application. Its just that when I start this particular application I get this error. No other configuration file was changed. The url I am trying to use is http://localhost:8080/applicationname.

The application does not work in other browser too( IE)
 
Romeo Ranjan
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have Tomcat 5.5 and tomcat 6.0 installed. I switch between both the tomcat versions for different application. Is that have to do with this issue? Both of them works fine in other application, but does not work for this particular application that I am trying to use.

Thanks.
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any errors in server log file(s) ??

Can you see that the application is deployed in the server log file (or can you see the application in Tomcat's manager app) ??

How does you application look like (WAR structure, contents of web.xml, etc.) ??
 
William Brogden
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
1. I think you are seeing Firefox "friendly" error message which conceals the error code actually being sent by Tomcat, try the Live HTTP headers tool in firefox to see what the real error code is.

2. I suspect Rene is on the right track and the web app is not starting due to some configuration error which should show up in the logs.

3. I don't recommend any developer working with Tomcat installed as a service. You see so much more feedback when starting as an application from a command prompt window.

Bill
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic