This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Glassfish and RichFaces

 
Rami Hailat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18019
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic