aspose file tools*
The moose likes Tomcat and the fly likes Server was disconnected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Server was disconnected" Watch "Server was disconnected" New topic
Author

Server was disconnected

Prashant Deshani
Greenhorn

Joined: May 03, 2006
Posts: 5
I have installed tomact 4.1.18 and j2sdk1.4.1_02 in the following directories:
C:\Program Files\Apache Group\Tomcat 4.1
C:\j2sdk1.4.1_02

And I have set the following envoironment variables as:
CATALINA-HOME : C:\Program Files\Apache Group\Tomcat 4.1
JAVA_HOME : C:\j2sdk1.4.1_02

After doing this I am starting tomcat server and it seems to be wroking fine.
but while I load the page http://localhost:8080/ it is giving the error that server connection was closed.
Error - 64 : Host is not available.

Can anyone help me and tell what this error is.

Thanks,
Prashant
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Does your machine have a firewall running that blocks access to port 8080?
Is localhost defined in your hosts file? Try with http://127.0.0.1:8080.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Prashant Deshani
Greenhorn

Joined: May 03, 2006
Posts: 5
Yes Ben the link you gave me is working.
But how can I check for the firewall.
If it is the case then shall I have to run my applications from the port you have specified.

Because I am going to configure tomcat with Eclipse using tomcat plugins
and will start tomcat from there only.

So can you please tell me how shall I run my tomcat project?

Thanks,
Prashant
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If that link works then it's not a firewall issue.
127.0.0.1 is the loopback addres (the one that points to your own machine).

It sounds like you don't have localhost defined in your hosts file.
Do a search on your machine for a file named "hosts".
Add the following line to it.

127.0.0.1 localhost
Prashant Deshani
Greenhorn

Joined: May 03, 2006
Posts: 5
Hi Ben,
Thanks for replying.
I have searched for the file "hosts" and I found one in the folder
"C:\I386" and "C:\WINDOWS\System32\drivers\etc".
But both of these files have entry for lacalhost and also it is not commented.
Prashant Deshani
Greenhorn

Joined: May 03, 2006
Posts: 5
Hi Ben,
Thanks for replying.
I have searched for the file "hosts" and I found one in the folder
"C:\I386" and "C:\WINDOWS\System32\drivers\etc".
But both of these files have entry for lacalhost and also it is not commented.
 
Don't get me started about those stupid light bulbs.
 
subject: Server was disconnected