Re: Unable to parse document 'jndi:/server/jsfexample/WEB-INF/pretty-config.xml':

Splash Forums PrettyFaces Users Unable to parse document 'jndi:/server/jsfexample/WEB-INF/pretty-config.xml': Re: Unable to parse document 'jndi:/server/jsfexample/WEB-INF/pretty-config.xml':

#21103

Even with Mojarra 2.1.0? In this case it seems to be a Glassfish integration bug.

I have another idea for a workaround. Perhaps pretty-config.xml is parsed by Mojarra because it matches a pattern like *-config.xml (just like faces-config.xml). In this case you could rename /WEB-INF/pretty-config.xml to something like /WEB-INF/prettyfaces.xml and add the following entry to your web.xml:

<context-param>
<param-name>com.ocpsoft.pretty.CONFIG_FILES</param-name>
<param-value>/WEB-INF/prettyfaces.xml</param-value>
</context-param>

You could even try to change the file extension if this still doesn’t work. I know its a dirty workaround but perhaps it works! :)