File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Apache communication when Tomcat is down Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Apache communication when Tomcat is down" Watch "Apache communication when Tomcat is down" New topic
Author

Apache communication when Tomcat is down

Raghunandhan Ramanujam
Greenhorn

Joined: Jun 23, 2003
Posts: 10
I have my application running with Apache and Tomcat. During startup, my application starts Apache first and then Tomcat.
During the process of my application start, when I connect to the opening page using my browser, I see the opening page source in my browser.
I connect from the browser as "http://localhost:8100". I have my server.xml's Context directed to the opening page.
Now, some of the questions I have are: why do I see the source? Is it because apache has started and tomcat has not? When apache forwards a jsp page to tomcat when tomcat is down, what does apache get back??? Will anyone respond to this question?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I don't suppose this could be as simple as reversing the order of startup?

Start Tomcat, and then Apache ?

I don't think you should see source, I'd think you'd get some sort of 500 not available error.
Raghunandhan Ramanujam
Greenhorn

Joined: Jun 23, 2003
Posts: 10
But i AM seeing the source. Can anyone help with the steps to be taken to ensure this does not happen???
Even a "The page cannot be displayed" message would be a graceful way to handle this.
 
 
subject: Apache communication when Tomcat is down
 
Threads others viewed
JSP source thrown out
tomcat startup problem
Tomcat throws our the JSP source
Tomcat and ipv6
binding dataTable problem
MyEclipse, The Clear Choice