RichFaces on Glassfish
Today I run into a deployment problem during I tried to install my RichFaces Application on Glassfish. The situation was realy crazy. At the first look everything works well. But when I tried to add the rich:tree component into one of my pages the page causes an error on my glassfish server.
Even when I select a Node of my Tree Component I got an
NoClassDefFoundError: org/apache/xerces/xni/parser/XMLConfigurationException
First I tried to add the newest xerces version into my web app. But this generates more and more problems as the xerces lib conflicts with the xerces parser provided by glassfish.
After playing arround with the richfaces config params in the web.xml I found that the nikohtml library was the problem why glassfish did not run the application properply
I have had used the following additional richfaces configuration in my web.mxl (I did no know why)
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NEKO, TIDY</param-value>
</context-param>
And this leads into a problem with the xerces parser included into glassfish.
The solution easy. I simply replaced the NEKO with TIDY
So now I use the following configuration in my web.xml
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>TIDY</param-value>
</context-param>
And now the tree component works perfect !
An usefull link will also be this blog:
http://www.javaplex.com/blog/optimizing-jsf-richfaces-applications/
Posted at 01:05PM Feb 20, 2010
Posted by: Ralph
Category: General
Gesendet von Marcel am März 27, 2010 at 09:25 PM GMT #