Glassfish and RichFaces

Rami Hailat

Greenhorn

Posts: 20

posted 8 years ago

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.

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

Greenhorn

Posts: 20

posted 8 years ago

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

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.