chkal/pf-issue-test — Issue #122: Missing pretty-config.xml leads to bad performane
Author: chkal
Created: 2012-03-06 07:39:44+00:00
State: open

Originally filed by **joshua.d...@parityenergy.com** on 2011-11-23T20:27:43

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=124

If the WEB-INF/pretty-config.xml is missing, there is no error or warning message in the logs and there is *severe* performance degredation.

REPRO:
1. Create a PrettyFaces web app with no WEB-INF/pretty-config.xml.
2. Deploy the web app in JBoss AS 7 with vanilla logging config.
3. Observe:

* No warnings or errors in the JBoss server.log file.
* The browser sees very long response times from the server for nearly all requests.

With the profiler, I could see that the PrettyFaces Servlet filter was configuring PrettyFaces from scratch on every single HTTP request.

EXPECTED:
* Some kind of warning in the log files, at least.
* Maybe application fails to deploy?

Environment:
* PrettyFaces 3.3.2 for JSF 2
* JBoss AS 7.0.2
* JSF 2, CDI, Seam 3