Error on startup when Digester tries to parse web.xml's DTD

Splash Forums PrettyFaces Users Error on startup when Digester tries to parse web.xml's DTD

This topic contains 2 replies, has 2 voices, and was last updated by  Christian Kaltepoth 6 years, 6 months ago.

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

    jcmwright80
    Participant

    I have just tried to add prettyfaces-jsf12-3.1.0.jar to my existing jsf app. I have made sure I have all the dependent jars in my project and I have created an empty pretty-config.xml in WEB-INF and I have added the rellevant filter and filter-mapping to my web.xml.

    When I start tomcat 6 up I get the following error:

    com.ocpsoft.pretty.PrettyException: Could not retrieve DynaViewId.

    Which ultimately is caused by the web.xml being parsed and the DTD being attempted to be downloaded from sun.

    I am under the impression that it should be getting this DTD from the servlet.jar like tomcat does rather than download it. I can’t see any parameters to change this behaviour and from looking around forums and google nobody else seems to be getting the same problem. Could anyone shed some light on what I’m doing wrong or missing?

    Thanks

    James

    #20344

    Could you please post the complete stacktrace? And additionally the logs regarding the DTD download?

    #20345

    I think I found the cause of this issue and fixed it. Could you try the latest snapshot?

    You can download the JAR here:

    http://ocpsoft.com/repository/com/ocpsoft/prettyfaces-jsf12/3.1.1-SNAPSHOT/prettyfaces-jsf12-3.1.1-20101104.170541-44.jar

    If you are using Maven update to 3.1.1-SNAPSHOT and add the following repository:

    <repository>
    <id>ocpsoft</id>
    <name>OcpSoft</name>
    <url>http://ocpsoft.com/repository/</url>
    <releases>
    <enabled>true</enabled>
    </releases>
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    </repository>

    Thank you for reporting this! :-)

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

You must be logged in to reply to this topic.

Comments are closed.