Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Won't Fix Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: Web (Tomcat) service
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Estimated Difficulty:
      Medium
    • Similar Issues:
      Show 10 results 

      Description

      When you deploy the attached web application, you will see a NPE as follows:

      ===============================
      20:01:06,311 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.NullPointerException
      at org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:502)
      at org.jboss.web.tomcat.security.JBossWebRealm.findSecurityConstraints(JBossWebRealm.java:459)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:426)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)
      ================================================

      The line that is failing in RealmBase is:
      ===================================================
      // Check each defined security constraint
      String uri = request.getRequestPathMB().toString();
      =================================================

      after this line, the url becomes null.

        Activity

        Hide
        Anil Saldhana
        added a comment -

        Please deploy the lambda.war in the deploy dir of JBAS trunk and when you try:

        http://localhost:8080/lambda

        you see the NPE.

        Show
        Anil Saldhana
        added a comment - Please deploy the lambda.war in the deploy dir of JBAS trunk and when you try: http://localhost:8080/lambda you see the NPE.
        Hide
        Anil Saldhana
        added a comment -

        If I remove the path attribute from context.xml, I do not see the NPE.

        Show
        Anil Saldhana
        added a comment - If I remove the path attribute from context.xml, I do not see the NPE.
        Hide
        Remy Maucherat
        added a comment -

        Ok, so path is now a special attribute, which should fix this horrible problem.

        Show
        Remy Maucherat
        added a comment - Ok, so path is now a special attribute, which should fix this horrible problem.
        Hide
        Jason Greene
        added a comment -

        There will not be a 5.1.1, moving to 5.2 for now

        Show
        Jason Greene
        added a comment - There will not be a 5.1.1, moving to 5.2 for now
        Hide
        Jason Greene
        added a comment -

        Marking this "won't fix" to match Remy's resolution

        Show
        Jason Greene
        added a comment - Marking this "won't fix" to match Remy's resolution

          People

          • Assignee:
            Jean-Frederic Clere
            Reporter:
            Anil Saldhana
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: