File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Help me, a question about Apache Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help me, a question about Apache Tomcat " Watch "Help me, a question about Apache Tomcat " New topic

Help me, a question about Apache Tomcat

Duong Hanh Nguyen

Joined: Dec 07, 2005
Posts: 5
As I know Apache Tomcat 5.0.28 is a application server which is built in Web server. So could you tell me the version of Apache web server is built in Apache Tomcat ?
I wonder if I have to install Apache web server or not (after I installed Apache Tomcat 5.0.28
Thanks so much for your help
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42285
Apache Tomcat is a web server and servlet container (written in Java), while Apache HTTPD is a web server (written in C). The Tomcat download does not include the Apache HTTPD web server, which is what most people refer to when they say "Apache". (The fact that both are developed under the umbrella of the Apache organization might be confusing you.)

Ping & DNS - my free Android networking tools app
Duong Hanh Nguyen

Joined: Dec 07, 2005
Posts: 5
Thanks so much for your answer, Ulf Dittmer
However if I use Apache Tomcat for development environment then how about the deployment environment ?
Are there any differences between them ?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12806
There are many differences between the Apache web server and Tomcat.
Apache by itself cant run servlets and JSP for one thing.
There is no reason not to deploy your application on Tomcat - UNLESS - you have to deploy to a site already running Apache.
Configuring Apache to refer servlet and JSP requests to Tomcat can be a real pain in the neck.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

To add to Bills comment:
Depending on the percentage of static to dynamic resources on your site, the extra overhead of passing requests/responses back and forth from httpd to Tomcat may actually be less efficient than just running Tomcat as a standalone.

Try running Tomcat as a standalone server.
If you have performance issues, weigh all of your options for improving the situation.
Using a separate webserver is only one of them.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Duong Hanh Nguyen

Joined: Dec 07, 2005
Posts: 5
Thanks for all your help. I think I've got the information that I need
Thanks so much
It is sorta covered in the JavaRanch Style Guide.
subject: Help me, a question about Apache Tomcat