glassfish
  1. glassfish
  2. GLASSFISH-3556

[V2 RC4] Will not validate a simple jsp file

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: PC

    • Issuezilla Id:
      3,556

      Description

      Vista 64, GlassFish V2 RC4

      Throwing exceptions during validation of a simple jsp.

      I have a working web application. All I change is the web.xml from BASIC auth to
      FORM, with...

      <login-config>
      <auth-method>FORM</auth-method>
      <realm-name>grenade</realm-name>
      <form-login-config>
      <form-login-page>login.jsp</form-login-page>
      <form-error-page>fail_login.xhtml</form-error-page>
      </form-login-config>
      </login-config>

      ...create a war, and then reload the app. I get...

      Deploying application in domain failed; Error loading deployment descriptors for
      module [client] Line 80 Column 54 – Deployment descriptor file WEB-INF/web.xml
      in archive [client]. cvc-pattern-valid: Value 'login.jsp' is not facet-valid
      with respect to pattern '/.*' for type 'null'.

      My 'jsp' has no jsp in it...

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
      <title></title>
      </head>
      <body>
      <form method="post" action="j_security_check">
      Username: <input type="text" name="j_username"/><br/>
      Password: <input type="password" name="j_password"/><br/>
      <br/>
      <input type="submit" value="Login"/>
      <input type="reset" value="Reset"/>
      </form>
      </body>
      </html>

        Activity

        Hide
        gfbugbridge added a comment -

        <BT6599018>

        Show
        gfbugbridge added a comment - <BT6599018>
        Hide
        jluehe added a comment -

        Please add a leading slash to your form login and error page resources, i.e.,

        <form-login-page>/login.jsp</form-login-page>

        Verifier error message:

        cvc-pattern-valid: Value 'login.jsp' is not facet-valid with respect to
        pattern '/.*' for type 'null'

        could be improved, though: Not sure why type is "null".

        Downgrading to P4.

        Show
        jluehe added a comment - Please add a leading slash to your form login and error page resources, i.e., <form-login-page>/login.jsp</form-login-page> Verifier error message: cvc-pattern-valid: Value 'login.jsp' is not facet-valid with respect to pattern '/.*' for type 'null' could be improved, though: Not sure why type is "null". Downgrading to P4.
        Hide
        dberkman added a comment -

        Ah, yes, of course. OK, meaningful error message, like 'You forgot the leading
        slash dumbass' would be appreciated. Not facet-valid with respect to pattern
        '/.*' is a bit baroque, never mind the nice 'null'.

        Oh well, thanks for looking at this.

        Show
        dberkman added a comment - Ah, yes, of course. OK, meaningful error message, like 'You forgot the leading slash dumbass' would be appreciated. Not facet-valid with respect to pattern '/.*' is a bit baroque, never mind the nice 'null'. Oh well, thanks for looking at this.
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            dberkman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: