SEC-1675: Fix security.tld file to be compatible with JBoss 6 #1902

spring-issuemaster opened this Issue Feb 11, 2011 · 2 comments


None yet
1 participant

Dumitru Postoronca (Migrated from SEC-1675) said:

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] Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: /pages/login.jsp(37,7) null
at org.apache.jasper.compiler.DefaultErrorHandler.jspError( [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.dispatch( [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.jspError( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.processIncludeDirective( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseIncludeDirective( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseDirective( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parse( [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.doParse( [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.parse( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.generateJava( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
at org.apache.jasper.JspCompilationContext.compile( [:6.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service( [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile( [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.service( [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service( [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( [:6.0.0.Final]

Adding "JSP" to the security.tld file fixes the problem.
I have attached the tld file that loads ok in JBoss 6.

Luke Taylor said:

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

Dumitru Postoronca said:

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

spring-issuemaster added this to the 3.1.0.RC2 milestone Feb 5, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment