while running servlets in jsdk2.0 , after starting servletrunner.exe an exception java.net.BindException is displayed at the command line and browser is not displaying output for simple helloworld servlet.
can any one tell me a solution thanks in advance bye
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
posted
0
what jsdk2.0 ? There is no version like that in my knowledge. what is servletrunner.exe ? Pardon I couldn't get you. where is your code ?
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
posted
0
May be Some other program is using this TCP/IP port. Terminate the other program and try.
i tried the way u said but even then the same exception is displayed.
can u help me out bye
thanks in advance
swichika
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
posted
0
Hi Swichika, So was there any other program running on that port ? If so you can even try to run this on different port. [ January 15, 2005: Message edited by: srini vasan ]
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12265
1
posted
0
JSDK 2.0 is several generations out of date says the Sun download page. Tomcat is the reference implementation of the Servlet API and has been for years, why not use it? Bill
Originally posted by William Brogden: JSDK 2.0 is several generations out of date says the Sun download page. Tomcat is the reference implementation of the Servlet API and has been for years, why not use it? Bill
i tried the way u said but even then the same exception is displayed.
swichika,
servletrunner runs on port 8080 by default, as srini said terminating the other program should solve the problem. Are you sure you are terminating correct program ???
alternatively you can start you servletrunner on another port like
servletrunner -p 8081
try executing above command and revert if still you are getting same error