permaculture playing cards*
The moose likes Tomcat and the fly likes java.net.SocketException: socket closed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "java.net.SocketException: socket closed" Watch "java.net.SocketException: socket closed" New topic
Author

java.net.SocketException: socket closed

Chirag Jakharia
Greenhorn

Joined: Dec 03, 2003
Posts: 23
Software Installed
--------------------------

jakarta-tomcat-5.5.2
JDK 1.5
IE 6.0SP1

Requirement
--------------------

The PC has Internet Connection. and we start the Tomcat Server.

After that we try to see the site
http://localhost:8080/

We get normal Tomcat Home Page ready

Afterwards I try to surf the same site by typing

http://160.160.160.160:8080/

where

160.160.160.160 is the IP address

After that the Tomcat Server throws the error and the IE also is trying to display the page

The problem is that I want that other people should be able to access my site through IP Address and I don't want to get into the domain thing

How to do that

Exception Raised in Tomcot Server


INFO: Server startup in 20650 ms
Nov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: socket closed
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Nov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket
WARNING: Reinitializing ServerSocket






Thanks in advance

CSJakharia
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

First, before anything else, determine if you *really* need something in Tomcat 5.5.2

Not only is 5.5.2 do minor points behind (I think it's up to 5.5.4 now), but 5.5.x is *extremely* new, and as such, might have a few bugs to work out.

5.0.28 is the latest stable release, and it supports the same verison of JSP and servlets that the newer 5.5.x line does.
 
Don't get me started about those stupid light bulbs.
 
subject: java.net.SocketException: socket closed
 
Similar Threads
java.net.SocketException: Too many open files
[Update - Success] Adding SSL certificate to Server.xml
my tomcat almost kill me
Tomcat : java.net.SocketException: Too many open files
How to Log Exceptions from the Tomcat Server