File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Apache + Tomcat + JSF? ***newbee" Watch "Apache + Tomcat + JSF? ***newbee" New topic
Author

Apache + Tomcat + JSF? ***newbee

Fernando Lopez Jr.
Greenhorn

Joined: Mar 29, 2006
Posts: 17
Hello,

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.
Greenhorn

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: 15639
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Fernando Lopez Jr.
Greenhorn

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.

index.jsp
|-WEB-INF
|||- faces-config.xml
|||- web.xml

index.jsp:


faces-config.xml:


web.xml:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache + Tomcat + JSF? ***newbee
 
Similar Threads
A Beginner to JSP
configuring context path
In HFSJ, why was IIS not mentioned?
Updated: "Invalid character constant", Help needed
error running a jsf login page