Re: PrettyFaces in EAR

Splash Forums PrettyFaces Users PrettyFaces in EAR Re: PrettyFaces in EAR

#23187

enigmasse
Participant

After adding the filter, it is now showing PrettyFilter starting up... in the log file.

Right after though, I am receiving the error message below even though `WEB-INFpretty-config.xml’ is in my WAR file. Since I am using an EAR structure, do I need to place this file elsewhere?

19:15:59,561 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-3) Exception starting filter Pretty Filter: com.ocpsoft.pretty.PrettyException: Failed to load configuration.
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:90) [prettyfaces-jsf2-3.3.3.jar:]
at com.ocpsoft.pretty.PrettyFilter.init(PrettyFilter.java:337) [prettyfaces-jsf2-3.3.3.jar:]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_32]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_32]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]
Caused by: java.lang.NullPointerException
at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:126) [prettyfaces-jsf2-3.3.3.jar:]
at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:195) [prettyfaces-jsf2-3.3.3.jar:]
at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:195) [prettyfaces-jsf2-3.3.3.jar:]
at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:195) [prettyfaces-jsf2-3.3.3.jar:]
at com.ocpsoft.pretty.faces.config.annotation.WebClassesFinder.processDirectory(WebClassesFinder.java:195) [prettyfaces-jsf2-3.3.3.jar:]