I've been experimenting with user roles in the default CAS application (3.4.2), 
and I've run into a problem where error pages will not render due to an 
exception: 

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

I've only made one change to the default CAS war file; I've added the following 
to deployerConfigContext.xml: 


    <sec:user-service id="userDetailsService">
        <sec:user name="ian" password="notused" authorities="ROLE_ADMIN" />
        <sec:user name="notian" password="notused" authorities="ROLE_NOTADMIN" 
/>
    </sec:user-service>


I'm using the built-in 'Services Management' application to test this, and when 
I authenticate using the user 'ian', I can access the application as expected. 
However, when I try to log in with the user 'notian' I get a 403 forbidden 
message, which is also expected, but instead of the expected casBlockedView.jsp 
page, I get a bare 403 error as returned by the servlet container, and I see 
the above exception in the logs (A full stack trace is below). 

Has anyone else seen this behavior, and if so have you been able to get the 
page to render? 

Regards,

--Ian Graham


Full stacktrace:


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)




-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to