----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi, I installed the Apache Web Server and the Apache JServ on a windows 95
machine. I also installed winsock2.dll. But when I try to start the Apache
JServ in automatic mode the JServ doesn't start.
In the error log I got the following error:
ApacheJServ/1.1b3: Exception creating the server socket:
UnknownHostException: localhost
I also modified the source file of the JServ class to display the stack
trace of the error I'm getting and this is what I got:
java.net.UnknownHostException: localhost
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.apache.jserv.JServ.start(JServ.java, Compiled Code)
at org.apache.jserv.JServ.main(JServ.java, Compiled Code)
This error happens in the following part of the code
--------------------------------------------JServ.java -
start()method------------------------------------
// Get default hostname to pass to AuthenticatedServerSocket
// so that we bind properly to a single IP address instead
// of all IP addresses on the box
InetAddress ia = null;
String defaultHostName = confs.getString("bindaddress");
if (defaultHostName == null ||
defaultHostName.equals("localhost")) {
ia = InetAddress.getByName("localhost"); // HERE IS WHERE
THE ERROR HAPPENS
}
else {
try {
ia = InetAddress.getByName(defaultHostName);
} catch (UnknownHostException uhe) {
ia = InetAddress.getByName("localhost");
}
}
The version of Apache I'm using is Apache1_3_9_win32
The version of Apache JServ is 1_13b
The os is windows 95
The httpd.conf and the jserv.properties that I'm using are the ones that
come with the products
(I only adjusted the paths in the httpd and the wrappers in the jserv).
If anyone had this problem before let me know if there is a solution.
Thanks.
Pablo.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]