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

Apache + Tomcat + JSF? ***newbee

Fernando Lopez Jr.

Joined: Mar 29, 2006
Posts: 17

i'm new into the java world and i'm wondering if is possible
to have only one HTTP server like apache instead of having Glassfish
or tomcat running on the same computer... also does the ee jdk installs
another server? tutorial links appreciated...

thank you!
Fernando Lopez Jr.

Joined: Mar 29, 2006
Posts: 17
i'm running java ee 5 jdk... is this enough to run my JSF and JSP?
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

You can run JSF with Tomcat. You don't need the full J2EE/JavaEE server e.g. GlassFish, JBoss to run JSF.

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

You can't run JSF or J2EE on the apache web server - it doesn't know how to run Java code.

However, you can run Java code on Tomcat or GlassFish without apache. They are essentially extended alternatives to apache. The main reason for running both Apache and Tomcat on the same machine was that in the old days, Tomcat was a lot slower when it came to static pages such as HTML or image files, so that job would be handled by Apache on machines looking for maximum serving speed. It's really not necessary any more.

An IDE is no substitute for an Intelligent Developer.
Fernando Lopez Jr.

Joined: Mar 29, 2006
Posts: 17
ok, i'm going with J2EE...

now if i want to create a sample page using faces what do i need?
i created allt his files under "C:\Sun\SDK\domains\domain1\docroot"
what am'i doing wrong? why doesn't it work?
all i want is just a simple web.xml that i can use with a xxxx.jsp
so i can practice some JSF... i tryed using the eclipse ide and it
works good... but with a text editor i can't get it to work...

thank you.

|||- faces-config.xml
|||- web.xml



I agree. Here's the link:
subject: Apache + Tomcat + JSF? ***newbee
It's not a secret anymore!