• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.net.SocketException: socket closed

 
Chirag Jakharia
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic