Reply To: com.ocpsoft.pretty.PrettyException: Failed to load configuration

Splash Forums Rewrite Users com.ocpsoft.pretty.PrettyException: Failed to load configuration Reply To: com.ocpsoft.pretty.PrettyException: Failed to load configuration

#25866

It looks like the root cause is CDI failing to resolve a bean for field injection:

Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456 Argument resolvedBean must not be null

Additionally, it looks like you have both PrettyFaces and Rewrite in your application, but you don’t seem to be using PrettyFaces. Could you please list your dependencies? It’s possible that you have duplicates.

Also, on a related note, have you seen our recent i18n functionality? The idea was contributed by another community member 🙂 Check it out, it may simplify your configuration quite significantly: http://ocpsoft.org/rewrite/docs/configuration/i18n

Alternately, it’s possible that PrettyFaces/Rewrite is starting before CDI starts. You might want to check into that.

~Lincoln