Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-898

Validation of faces-config file with SYSTEM DTD failed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2.0.0.Beta1
    • 4.6.0.Final
    • jsf
    • None

    Description

      Hello,

      I develop currently an JSF application. My web.xml has an entry

      <context-param>
      <param-name>javax.faces.CONFIG_FILES</param-name>
      <param-value>
      /WEB-INF/faces-config.xml
      </param-value>
      </context-param>

      I get an error in the Red Hat Developer Studio:
      ================================================
      error: Attribute param-value references to /WEB-INF/faces-config.xml that is not a valid faces config file
      ================================================

      But what is wrong ? The file faces-config.xml is valid and begins with

      <?xml version="1.0"?>
      <!DOCTYPE faces-config SYSTEM "web-facesconfig_1_1.dtd">
      <faces-config>

      The DTD-Definition web-facesconfig_1_1.dtd is located in the same folder (under WEB-INF).

      The second problem occurs with faces-config.xml if we open one. I miss the 'tree' view to edit more easier the faces config file. If I paste

      <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

      instead of SYSTEM "web-facesconfig_1_1.dtd", all views are available. But PUBLIC DTD-Definition can be problematical in the offline mode (intranet applications).

      Best regards.
      Oleg Varaksin

      Attachments

        Activity

          People

            scabanovich Viacheslav Kabanovich (Inactive)
            ova_jira Oleg Varaksin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: