This is a discussion on Apache and Tomcat confusion within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi folks, I need to install and application server software which requires to install JAVA JRE 1.4 and Tomcat ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi folks,
I need to install and application server software which requires to install JAVA JRE 1.4 and Tomcat 5.0. My question is that Do i need to install Tomcat even if I have Apache 2.0.52 server already installed on that Redhat Linux 9.0 box? Thanks, |
|
|||
|
sukhmindersingh@gmail.com wrote:
> Hi folks, > > I need to install and application server software which requires to > install JAVA JRE 1.4 and Tomcat 5.0. My question is that Do i need to > install Tomcat even if I have Apache 2.0.52 server already installed on > that Redhat Linux 9.0 box? > > Thanks, Apache Tomcat is a "JSP Server". It serves and interprets Java Server Pages. It requires Java *SDK* to operate. The Java Runtime Environment (JRE) is not sufficient to successfully operate Tomcat. The reason is that .jsp pages must be compiled to Java bytecode prior to execution in the JVM. Without the SDK, there is no way to compile the .jsp files. BTW, this is often why the first access of a jsp page is slower than subsequent requests. You can get Tomcat to "precompile" some/all pages at server start, but this delays server start - your choice; delay first access of pages or delay server start. Apache HTTP Server serves and interprets HTML pages. You can extend Apache HTTP to interpret other things like PHP etc, but JSP is solely the domain of Tomcat. There is a module to link Apache HTTP and Tomcat to basically function like a single server, however they both retain their own config files etc. The module basically handles whether a request should be handled by Apache HTTP or Tomcat, then forwards it to the correct server (process). The connection between the two software packages is simply the Apache Foundation. "Apache" (the Foundation) cover a number of projects including a HTTP server (their first project, so usually Apache HTTP Server = Apache) and Tomcat among others. Having an open source project annexed by the Apache Foundation is seen by many as a great honour. Don't confuse the two - hey are distinct and very different beasts :) Have fun. HTH, James -- The computing field is always in need of new cliches. -- Alan Perlis |
| Thread Tools | |
| Display Modes | |
|
|