File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes JavaWebServer2.0 to Tomcat Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JavaWebServer2.0 to Tomcat Question" Watch "JavaWebServer2.0 to Tomcat Question" New topic

JavaWebServer2.0 to Tomcat Question

Rob Levo
Ranch Hand

Joined: Oct 01, 2000
Posts: 167
I am using JavaWebServer2.0 and want to switch to Apache/Tomcat.
Question: Do I need both Apache Web Server and Tomcat or is Tomcat enough by itself?
mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
Tomcat is enough.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Personally, I would give a more conservative answer, it depends. If you are trying to get started with servlets
(although, I wouldn't believe you) yes, Tomcat is enough.
However, if you are in the process of serving servlets etc
for a commercial purpose and with commercial support for
static html pages, then you might need apache.
Pl. note Apache supports static html pages and Tomcat supports
servlets, JSPs and html pages.
- satya

Take a Minute, Donate an Hour, Change a Life
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Also Apache supports CGI, in-process perl, PHP, htaccess authentication, URL rewriting, SSL and a whole load of other modules. Many people use Apache for all these things, and a plugin (Tomcat, Resin, JRun etc.) for servlets and JSPs.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

another comment abt apache..."apache is a reference implementation on windows". All these goodies are
fully supported on Unix, but on windows there maybe
some surprises. Atleast thats' what I understand from
Apache documentation.
In short, your OS also matters to a certain extent.
Couldn't resist to say something negative....
- satya
I agree. Here's the link:
subject: JavaWebServer2.0 to Tomcat Question
It's not a secret anymore!