Re: Problem with glassfish 3.1

Splash Forums PrettyFaces Users Problem with glassfish 3.1 Re: Problem with glassfish 3.1

#22007

I can only guess here. For some reason Mojarra is trying to parse your pretty-config.xml. This is definitely a bug in Mojarra or Glassfish. There is no reason why Mojarra should parse it.

The only think that you could try is to move the file to some other location or renamed it so that Mojarra doesn’t try to parse it.

Another idea would be to move it out of WEB-INF. Perhaps this works. Just put it on your classpath and then configure PrettyFaces like this:

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

Or perhaps into the META-INF directory?

<context-param>
<param-name>com.ocpsoft.pretty.CONFIG_FILES</param-name>
<param-value>/META-INF/pretty-config.xml</param-value>
</context-param>

But please make sure to run a “clean” on your project to make sure that the pretty-faces.xml isn’t published to WEB-INF any more.

I also suggest to create a Mojarra bug report for this.

I hope this helps.

Christian