• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't run Java Web Server1.1

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is what i get when i run httpd.exe.
What could be the problem? Help...
C:\JavaWebServer1.1\bin\httpd
Java Web Server Trial ERROR: Cannot start service adminservice
java.net.SocketException: Option unsupported by protocol
at java.net.PlainSocketImpl.create(PlainSocketImpl.java:77)
at java.net.ServerSocket.<init>(ServerSocket.java:142)
at java.net.ServerSocket.<init>(ServerSocket.java:110)
at com.sun.server.TcpServiceEndpoint.bind(TcpServiceEndpoint.java:131)
at com.sun.server.Service.bindEndpoints(Service.java:582)
at com.sun.server.ServiceManager.bindServiceEndpoints(ServiceManager.jav
a:589)
at com.sun.server.ServiceManager.startServices(ServiceManager.java:386)
at com.sun.server.ServiceManager.startServices(ServiceManager.java:343)
at com.sun.server.ServerProcess.main(ServerProcess.java:218)
Java Web Server Trial UNRECOVERABLE ERROR: Cannot start services
java.net.BindException
at com.sun.server.ServiceManager.startServices(ServiceManager.java:444)
at com.sun.server.ServiceManager.startServices(ServiceManager.java:343)
at com.sun.server.ServerProcess.main(ServerProcess.java:218)
Program C:\JAVAWE~1.1\JRE\BIN\JRE.EXE exited with code 1
jserv: Shutting down the server
jsadmin: Cannot send to http://localhost:9090/servlet/admin: Cannot communicate
with the server: localhost
Program C:\JAVAWE~1.1\JRE\BIN\JRE.EXE exited with code 1

This is what i get when i run servletrunner.exe.
Can any one find out why?
C:\JSDK2.0\bin>servletrunner
servletrunner starting with settings:
port = 8080
backlog = 50
max handlers = 100
timeout = 5000
servlet dir = .\examples
document dir = .\examples
servlet propfile = .\examples\servlet.properties
java.net.SocketException: Option unsupported by protocol
at java.net.PlainSocketImpl.create(PlainSocketImpl.java:77)
at java.net.ServerSocket.<init>(ServerSocket.java:142)
at java.net.ServerSocket.<init>(ServerSocket.java:110)
at sun.servlet.http.HttpServer.run(HttpServer.java:222)
at sun.servlet.http.HttpServer.main(HttpServer.java:432)
 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cannot communicate with the server: localhost


Check your host file. On Win95/98 it's usually in the windows directory on Winnt it's in the winnt\system32\drivers\etc directory. It needs to contain an entry
127.0.0.1 localhost
Hopefully this should correct your problem.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or it could mean that you don't have TCP/IP networking installed. Many PCs without a network card don't have it installed, but you do need it for this sort of thing.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i think yr problem is due to non existant protocol.to run jws you require TCP/IP.assuming you are using windows 95, it may be loaded from the system.here are the steps.
here are the steps
go to control panel - network- add- services
the dialog boxes will guide you.
first you install the Dialup Adapter then TCP/IP.
select the TCP/IP and view the properties there you have to
configure it.
after that in C:\windows- check hosts.sam file.for localhost there will be an entry.if not follow the example given in that file and enter the info.(127.0.0.1).
that's all.you have to reboot the system.
now run JWS.
ths is problem of dialup adapter and tcp/ip as far as i know.
it requires windows95 CD.
 
Frank Carver
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java Ranch has a naming policy, described here and "NAMASIVAYAM G" is not a valid name. Please choose one which meets the requirements.
Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic