From: Tyler Zale <[EMAIL PROTECTED]> > Hi, > > > I am having a problem with shale-tiger-1.0.5. > > > Tiger is breaking my build because it is throwing a Digester error (no > grammar found). > This is happening because I tried to add RichFaces to my project and the > faces-config.xml in the richfaces jars does not conform to Tiger's dtds. > > I came up with a kludgish solution which consists of a combination of > altering the Tiger dtd and the faces-config.xml. But this solution bugs me. > > I also tried using a context param (as I found listed in a jira entry: > http://issues.apache.org/struts/browse/SHALE-301): > > <context-param> > <param-name>org.apache.shale.tiger.SCAN_PACKAGES</param-name> > <param-value>com.x.y.z,shale-tiger-1.0.5.jar</param-value> > </context-param> > > but this had a net effect of zero. > > > Is there an easy way to stop shale-tiger from trying to read all the > jars in my lib and breaking? > >
The SCAN_PACKAGES context param is only useful for specifying where to look for shale tiger annotations. The lifecycle listener always tries to load the faces configs in /META-INF/faces-configs.xml. I've not looked at RichFaces. What have they added to the faces config that breaks the digester? Or, it might be that rich faces uses a JSF 1.2 DTD? Tiger only supports 1.0 and 1.1. One thing that you might try is overriding the DTD's with one to support rich faces. The digest loads the DTD from the classpath. You might try creating the same packages in your project and overriding. "/org/apache/shale/tiger/resources/web-facesconfig_1_1.dtd" "/org/apache/shale/tiger/resources/web-facesconfig_1_0.dtd" > > Thanks, > TZ Gary
