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

GlassFish or Tomcat

Ravikiran Sarangu

Joined: Oct 13, 2011
Posts: 6
I have just started using JSF 1.2 to develop a application on Eclipse Indigo on MacOs.
I am unable to use Tomcat since it is asking for Native libraries..I am not understanding what it means.
Can i use Glassfish instead..Is it recommendable??
Dura Hurtado
Ranch Hand

Joined: Feb 16, 2011
Posts: 120
Hi, yes you can. Also I use Glassfish with JSF 2.0 and it works fine.

Marcos Silvestri
Ranch Hand

Joined: Dec 06, 2009
Posts: 62


You may not know that Tomcat is a Servlet runner only, whereas Glassfish is an Application Server wherein a Servlet runner is just one of its parts. As well as JBoss, another Application Server, these servers already contain, natively, the JavaServer Faces libraries. That's built-in to the server...

In order to use JSF with Tomcat you have to separately download the JSF libs and add them to your project.

Which server to choose?

Choose the one that you believe will meet your requirements or you are more familiarized with. If you just want to program small things at home, either one will do, only the configuration that may vary a bit in case you need to modify something intrinsic to the server.

I hope it helps

DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
I agree. Here's the link:
subject: GlassFish or Tomcat
It's not a secret anymore!