File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Cannot Find Server; Page Cannot be Displayed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot Find Server; Page Cannot be Displayed" Watch "Cannot Find Server; Page Cannot be Displayed" New topic

Cannot Find Server; Page Cannot be Displayed

Nigel Domaingue

Joined: May 26, 2005
Posts: 2
I am trying to mirror an existing Fedora Linux/Apache/Tomcat system and have almost completed the task, but I have run into a problem that I cannot solve. When trying to access the tomcat web application from another machine on the network, I cannot access the server.

The reason for doing a mirror instead of an up-to-date install is that I do not have the source to recompile the java beans.

Versions I am running:
Fedora Linux FC2
Tomcat 4.0
Java SDK 1.4.2_08
(Machine being mirrored had SDK 1.4.0, but I couldn't get that to work on the target machine)
Remote browser is IE 6.0, which is able to access the master site fine.

Here is what I can add:
- Apache works and the container html page is served, locally and remotely.
- When I log in locally, it works; the Tomcat webapp works fully.
- Firewall is definitely off (/sbin/iptables -L confirms this)
- When I telnet to port 8080 from my remote machine, I do get a response from tomcat
- I have not found any logfiles that are listing any errors (nothing in {TOMCAT_HOME}/logs with any errors)

If I replace my index.jsp page with a very simple java jsp page, still nothing is served, which suggests this is nothing to do with beans; rather something more fundamental with the jakarta config or maybe just the plain networking.

The configs between the machine being mirrored and the target machine are as close as I can figure they need to be. I have focussed on the following files:
- /etc/profile (which defines and exports the CLASSPATH, and adds path to the java installation)
- /etc/init.d/httpd (which defines TOMCAT_HOME, CATALINA_HOME, JAVA_HOME, redefines and re-exports the CLASSPATH and then calls the tomcat script before it daemons the httpd process)
- /etc/httpd/conf/httpd.conf (Which is identical to the machine being mirrored)
- {TOMCAT_HOME}/conf/server.xml (Which is identical to that on the machine being mirrored)

Therefore, my question is what might be the cause of the error message I see in my broswer:
"Cannot Find Server", "The page cannot be displayed" ?

Thank you in advance.
Nigel Domaingue

Joined: May 26, 2005
Posts: 2
I think I've solved it. Looks like it's a networking problem. I made two changes, so just checking which of them did the trick:
- On the Linux box, edited the server.xml line that defines the virtual host; instead of referencing the hostname, I put the explicit IP address.
- On my local machine, edited the hosts file to add this machine on it.

(I'm not using DHCP or DNS)

Basically, I can now get to the pages remotely.
I agree. Here's the link:
subject: Cannot Find Server; Page Cannot be Displayed
It's not a secret anymore!