marun
asked on
Cannot open socket - Listen fails
i installed jdk2 and jsdk2.0 on win95. when i ran SERVLETRUNNER which comes with jsdk2.0 i get the following Exception
java.net.SocketException : Descriptor not a socket Listen failed.
with a stack trace printed out in Standard output
is there a problem with jvm i installed jrun and uninstalled as it too was not able to open a socket to listen.
Thanks
arun.
java.net.SocketException : Descriptor not a socket Listen failed.
with a stack trace printed out in Standard output
is there a problem with jvm i installed jrun and uninstalled as it too was not able to open a socket to listen.
Thanks
arun.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi ,
It is not port problem.
If it is so, it will give already bind exception
If U still face, some problem
run Your servlets with this command
servletrunner -d c:\Yourdir -v
wher yourdir is the directory where U are wishing to run servlets.
Otherwise U have to put your servlets in c:\jdsk\examples
because servletrunner will run servlerts in c:\jsdk\examples
ASKER
when i installed java1.1 it worked but with jdk2 its not working what may be the problem.
its not the port problem as said by ravindra. ravindra security is all the same in the file u mentioned i checked it up but directory is too not the problem. please suggest another way to tackle the problem
thanks
its not the port problem as said by ravindra. ravindra security is all the same in the file u mentioned i checked it up but directory is too not the problem. please suggest another way to tackle the problem
thanks
try first
1.ping localhost
If it succeeds ,
2. Type ipconfig
3. Then try
ping ipaddress
where ipaddress is the system ip address given in ipconfig
If both failed means something problem in Your system networking drivers.
Reinstall TCP/IP drivers
I will feel very happpy if U would have been rejected my answer than giving D grade.
Ok.
Bye
Generally Servletrunner is trying to connect to 8080 port. If that port is occupied by some other process, servletrunner won't start. Try changing the port of the servletrunner (setup files u will get in c:/jsdk2.0/examples) and run the servletrunner
bye