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

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

1 participant

@spring-issuemaster

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 () 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(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 "JSP" to the security.tld file fixes the problem.
I have attached the tld file that loads ok in JBoss 6.

@spring-issuemaster

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

@spring-issuemaster

Dumitru Postoronca said:

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

@spring-issuemaster 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