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 and RichFaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Glassfish and RichFaces" Watch "Glassfish and RichFaces" New topic

Glassfish and RichFaces

Rami Hailat

Joined: Nov 26, 2008
Posts: 20
Hi Ranchers,

am using Glassfish as my server to run Richfaces web application, the problem i faces is no ajax finctionality is available when i use glassfish when i run the application on another server like tomcat it works fine with out any problems, your help is appreciated.
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Are you getting anything when you run on Glassfish? Are the tags even being processed when you look at the source code of the page that is sent to the client?
Rami Hailat

Joined: Nov 26, 2008
Posts: 20
Thanks Cameron for your rapid response,
in fact as i said theonly thing that seems wrong is the ajax functionality, the tags all are rendered correctly with out even a javascript error.
pelase advice if you have any idea
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

Check the RichFaces documentation. The configuration in web.xml often needs adjusting based on the server when you're working with JSF. It shouldn't have to be that way, since it's a violation of "write-once/run-anywhere", but some of the JEE underpinnings are only present in certain server versions.

Tomcat 5 requires that the app supply both JSF implementation and EL API classes. Tomcat 6 has built-in EL support, but you still have to include JSF API and Implementation JARs in your WAR. The latest JBoss has the Sun Reference JSF Implementation built-in. And GlassFish is the baseline for the full JEE 5 stack, so all the implementation classes are built into the Glassfish server.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Glassfish and RichFaces
It's not a secret anymore!