javax.servlet.jsp.JspTagException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When an authenticated user attempts to access an application for which they are not authorized, the default '403 Forbidden' page is displayed by the container, and the following exception is thrown: 2010-05-07 15:22:11,062 DEBUG [org.springframework.ui.context.support.ResourceBundleThemeSource] - Theme created: name 'theme', basename [theme] 2010-05-07 15:22:11,064 WARN [org.springframework.context.support.ResourceBundleMessageSource] - ResourceBundle [theme] not found for MessageSource: Can't find bundle for base name theme, locale en_US 2010-05-07 15:22:11,066 WARN [org.springframework.context.support.ResourceBundleMessageSource] - ResourceBundle [theme] not found for MessageSource: Can't find bundle for base name theme, locale en_US 2010-05-07 15:22:11,067 ERROR [org.springframework.web.servlet.tags.ThemeTag] - Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'. javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'. at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:184) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_spring_005ftheme_005f1(casBlockedView_jsp.java:338) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fotherwise_005f0(casBlockedView_jsp.java:308) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fchoose_005f0(casBlockedView_jsp.java:198) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspService(casBlockedView_jsp.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:415) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) To reproduce, deploy the example CAS server, version 3.4.2, and add something like the following to deployerConfigContext.xml: <sec:user-service id="userDetailsService"> <sec:user name="administrator" password="notused" authorities="ROLE_ADMIN" /> <sec:user name="user" password="notused" authorities="ROLE_USER" /> </sec:user-service> Start up CAS, and log into the Services Manager application. Note that the 'administrator' user is able to log in, as expected, but when 'user' attempts to log in, they get the raw '403 Forbidden' error message, and the above exception is thrown. As far as I can tell, this is happening because the 403 error page is defined as a servlet container error page and it's being invoked directly instead of going through Spring's Dispatcher servlet. As a result, the error page, casBlockedView.jsp, does not have access to the themeContext, and throws the Exception complaining about not being able to find the message code.
    via by Ian Graham,
  • When an authenticated user attempts to access an application for which they are not authorized, the default '403 Forbidden' page is displayed by the container, and the following exception is thrown: 2010-05-07 15:22:11,062 DEBUG [org.springframework.ui.context.support.ResourceBundleThemeSource] - Theme created: name 'theme', basename [theme] 2010-05-07 15:22:11,064 WARN [org.springframework.context.support.ResourceBundleMessageSource] - ResourceBundle [theme] not found for MessageSource: Can't find bundle for base name theme, locale en_US 2010-05-07 15:22:11,066 WARN [org.springframework.context.support.ResourceBundleMessageSource] - ResourceBundle [theme] not found for MessageSource: Can't find bundle for base name theme, locale en_US 2010-05-07 15:22:11,067 ERROR [org.springframework.web.servlet.tags.ThemeTag] - Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'. javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'. at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:184) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_spring_005ftheme_005f1(casBlockedView_jsp.java:338) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fotherwise_005f0(casBlockedView_jsp.java:308) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fchoose_005f0(casBlockedView_jsp.java:198) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspService(casBlockedView_jsp.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:415) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) To reproduce, deploy the example CAS server, version 3.4.2, and add something like the following to deployerConfigContext.xml: <sec:user-service id="userDetailsService"> <sec:user name="administrator" password="notused" authorities="ROLE_ADMIN" /> <sec:user name="user" password="notused" authorities="ROLE_USER" /> </sec:user-service> Start up CAS, and log into the Services Manager application. Note that the 'administrator' user is able to log in, as expected, but when 'user' attempts to log in, they get the raw '403 Forbidden' error message, and the above exception is thrown. As far as I can tell, this is happening because the 403 error page is defined as a servlet container error page and it's being invoked directly instead of going through Spring's Dispatcher servlet. As a result, the error page, casBlockedView.jsp, does not have access to the themeContext, and throws the Exception complaining about not being able to find the message code.
    via by Ian Graham,
  • Cannot locate message in MessageSource
    via Stack Overflow by Rachel
    ,
  • Spring Roo Tomcat issue
    via Stack Overflow by Yiannis Gkoufas
    ,
    • javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'. at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:184) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_spring_005ftheme_005f1(casBlockedView_jsp.java:338) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fotherwise_005f0(casBlockedView_jsp.java:308) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fchoose_005f0(casBlockedView_jsp.java:198) at org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspService(casBlockedView_jsp.java:96) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:415) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    abrazeneb
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    1 more bugmates