wood burning stoves 2.0*
The moose likes Servlets and the fly likes displaying exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "displaying exception" Watch "displaying exception" New topic
Author

displaying exception

swichika reddy
Greenhorn

Joined: Dec 28, 2004
Posts: 20
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

Joined: Aug 15, 2004
Posts: 2874
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
May be Some other program is using this TCP/IP port. Terminate the other program and try.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
swichika reddy
Greenhorn

Joined: Dec 28, 2004
Posts: 20
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

Joined: Sep 28, 2004
Posts: 1228
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: 12761
    
    5
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

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Aug 13, 2004
Posts: 1081

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 ]

Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: displaying exception
 
Similar Threads
problem when using a4j:commandButton and a4j:commandLink
dispatching to servlets and JSPs
Basic from I/O
java.net.protocolException
bean:write tag