Caused by: com.ocpsoft.pretty.PrettyException: Failed to parse PrettyFaces confi

Splash Forums Rewrite Users Caused by: com.ocpsoft.pretty.PrettyException: Failed to parse PrettyFaces confi

This topic contains 2 replies, has 2 voices, and was last updated by  mahmoud 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26537

    mahmoud
    Participant

    Hi everybody,
    I’m beginner in PrettyFaces, I want add prettyfaces in my personnel project, I folow all of things in the tutoriel, but I didn’t success.

    I use JSF 2.

    The error is :

    SEVERE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener
    com.ocpsoft.pretty.PrettyException: Failed to load configuration.
    	at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:90)
    	at org.ocpsoft.rewrite.prettyfaces.PrettyConfigContextListener.contextInitialized(PrettyConfigContextListener.java:41)
    	at org.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener.contextInitialized(RewriteServletContextListener.java:38)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    	at java.lang.Thread.run(Thread.java:724)
    Caused by: com.ocpsoft.pretty.PrettyException: Failed to parse PrettyFaces configuration from /WEB-INF/pretty-config.xml
    	at com.ocpsoft.pretty.faces.config.spi.DefaultXMLConfigurationProvider.loadConfiguration(DefaultXMLConfigurationProvider.java:60)
    	at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:63)
    	... 12 more
    Caused by: java.lang.NullPointerException
    	at org.ocpsoft.shade.org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
    	at org.ocpsoft.shade.org.apache.commons.digester.Digester.parse(Digester.java:1887)
    	at com.ocpsoft.pretty.faces.config.DigesterPrettyConfigParser.parse(DigesterPrettyConfigParser.java:69)
    	at com.ocpsoft.pretty.faces.config.spi.DefaultXMLConfigurationProvider.loadConfiguration(DefaultXMLConfigurationProvider.java:56)
    	... 13 more

    PLZ helpe me !!

    Attachments:
    1. Capture
    #26539

    Looks like a weird problem with Apache Digester. Could you check your classpath? There are many reports of this exception if you search for the message. Like this one:

    https://colorcoding.wordpress.com/2010/02/17/unsupportedoperationexception-and-xml-parser-versions/

    Try to remove things like Xerces from the classpath. You typically don’t need them as the JDK provides everything you need.

    #26540

    mahmoud
    Participant

    Thank you Mr Christian, it’s very helpful

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.