Spring Security
  1. Spring Security
  2. SEC-1675

Fix security.tld file to be compatible with JBoss 6

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 3.1.0.RC2, 3.0.6
    • Component/s: Taglibs
    • Labels:
      None
    • Environment:
      Jboss 6.0 GA

      Description

      I'm trying to migrate an app from JBoss 5.1 to 6.0.
      Jboss 6.0 fails to compile any JSP file that contains spring security tags (<security:authorize ... >) with the following error:

      2011-02-07 19:18:40,713 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] (http-127.0.0.1-8080-1) Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: /pages/login.jsp(37,7) null
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) [:6.0.0.Final]
      at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) [:6.0.0.Final]
      at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88) [:6.0.0.Final]
      at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:300) [:6.0.0.Final]
      at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:333) [:6.0.0.Final]
      at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:440) [:6.0.0.Final]
      at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1398) [:6.0.0.Final]
      at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.Final]
      at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.Final]
      at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.Final]
      at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.Final]
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.Final]
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.Final]
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.Final]
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.0.0.Final]
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.0.0.Final]
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.Final]
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.Final]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

      HOW TO FIX:
      Adding "<body-content>JSP</body-content>" to the security.tld file fixes the problem.
      I have attached the tld file that loads ok in JBoss 6.

      1. security.tld
        5 kB
        Dumitru Postoronca

        Activity

        Hide
        Luke Taylor added a comment -

        Thanks. I've added the missing tags to the tld and also updated it to use an XML schema instead of the DTD in the mater branch for 3.1

        Show
        Luke Taylor added a comment - Thanks. I've added the missing tags to the tld and also updated it to use an XML schema instead of the DTD in the mater branch for 3.1
        Hide
        Dumitru Postoronca added a comment -

        Could you please fix this also in the 2.0.x branch?

        Show
        Dumitru Postoronca added a comment - Could you please fix this also in the 2.0.x branch?

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Dumitru Postoronca
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: