File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to connect

 
Romeo Ranjan
Ranch Hand
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic