• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Cannot Find Server; Page Cannot be Displayed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 startup.sh 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
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic