File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Unable to connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to connect" Watch "Unable to connect" New topic
Author

Unable to connect

Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95

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.

SCJP 6.0
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
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

Joined: Dec 16, 2003
Posts: 977
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?


"Eppur si muove!"
Romeo Ranjan
Ranch Hand

Joined: Feb 23, 2009
Posts: 95
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

Joined: Feb 23, 2009
Posts: 95
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

Joined: Oct 12, 2001
Posts: 1179

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.) ??


Regards, Rene Larsen
Dropbox Invite
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to connect