wood burning stoves*
The moose likes Servlets and the fly likes Can't run Java Web Server1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can Watch "Can New topic
Author

Can't run Java Web Server1.1

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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)
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
NageswaraRao Karra
Ranch Hand

Joined: Nov 12, 2000
Posts: 34

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

Joined: Jan 07, 1999
Posts: 6920
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't run Java Web Server1.1
 
Similar Threads
servlets
error in starting the tomcat server
Unable to run Tomcat server[solved]
Server socket in XP Home
problem while creating Node Manager