• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying exception

 
swichika reddy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,


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
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be Some other program is using this TCP/IP port. Terminate the other program and try.
 
swichika reddy
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi srinivasan,

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
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


Bill,
Thanks for the info buddy.
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by swichika reddy:

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

thanks !
[ January 15, 2005: Message edited by: Shailesh Chandra ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic