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

form-login-page verification failure with correct data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M4
    • common
    • None

      In a web.xml file we have this bit of code:

        <servlet>
          <description></description>
          <display-name>LoginServlet</display-name>
          <servlet-name>LoginServlet</servlet-name>
          <servlet-class&gt;dk.jyskebank.core.jsf.login.FacesLoginServlet</servlet-class&gt;
        </servlet>
        <servlet-mapping>
          <servlet-name>LoginServlet</servlet-name>
          <url-pattern>/loginServlet</url-pattern>
        </servlet-mapping>
        <login-config>
          <auth-method>FORM</auth-method>
          <form-login-config>
            <form-login-page>/loginServlet</form-login-page>
            <form-error-page>/login/loginfail.jsp</form-error-page>
          </form-login-config>
        </login-config>
      

      The 'Check form-login-page attribute' verification rule marks this as a failure, saying:

      error: Attribute form-login-page references to /loginServlet that does not exist in web content

      In a way, the verifier is right; the jar with the LoginServlet.class lives outside the web content folder, but it copied into WEB-INF/lib as part of Deployment Assembly.
      And the jar is on build classpath, obviously.

      I tried copying the jar into the web content folder directly, but it has no effect on the verifier.

            scabanovich Viacheslav Kabanovich (Inactive)
            jskov-1 Jesper Skov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: