public String _serverName() {
// This is set if we are running in a Servlet Container
String serverName = headerForKey("x-webobjects-servlet-server-name");
if ((serverName == null) || (serverName.length() == 0)) {
if (isUsingWebServer()) {
serverName = headerForKey("x-webobjects-server-name");
if ((serverName == null) || (serverName.length() == 0)) {
serverName = headerForKey("server_name");
}
if ((serverName == null) || (serverName.length() == 0)) {
serverName = headerForKey("host");
}
if ((serverName == null) || (serverName.length() == 0)) {
throw new NSForwardException(new WOURLFormatException("<" + getClass().getName() + ">: Unable to build complete url as no server name was provided in the headers of the request."));
}
} else {
serverName = WOApplication.application().host();
}
}
return serverName;
}
So if server name is wrong....
You can run Apache 1.3.9 although I don't recommend it. It works but you will not be able to recompile the adaptor if you need it.