javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'.

Apereo Issues | Ian Graham | 7 years ago
  1. 0

    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.

    Apereo Issues | 7 years ago | Ian Graham
    javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'.
  2. 0

    CAS Users - Problem Resolving Themes in Error Pages

    nabble.com | 8 months ago
    javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'.
  3. 0

    JA-SIG Central Authentication Service - user list ()

    gmane.org | 6 months ago
    javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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.

    Apereo Issues | 7 years ago | Ian Graham
    javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'en_US'.
  6. 0

    How can I catch a spring message JstTagException?

    Stack Overflow | 5 years ago | Dave
    javax.servlet.jsp.JspTagException: No message found under code 'BLAH' for locale 'ko_KR'.

  1. abrazeneb 2 times, last 5 months ago
4 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Spring MVC
    RequestContextAwareTag.doStartTag
    1. org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:184)
    2. org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79)
    2 frames
  3. org.apache.jsp
    casBlockedView_jsp._jspService
    1. org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_spring_005ftheme_005f1(casBlockedView_jsp.java:338)
    2. org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fotherwise_005f0(casBlockedView_jsp.java:308)
    3. org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspx_meth_c_005fchoose_005f0(casBlockedView_jsp.java:198)
    4. org.apache.jsp.WEB_002dINF.view.jsp.default_.ui.casBlockedView_jsp._jspService(casBlockedView_jsp.java:96)
    4 frames
  4. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  6. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    3 frames
  7. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  8. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    7. org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:415)
    8. org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)
    9. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
    10. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    11. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    12. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    12 frames
  9. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    3 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame