More logs that might help :

2016-04-06 14:31:19,771 DEBUG [org.springframework.web.servlet.view.JstlView] - <Forwarding to resource [/WEB-INF/view/jsp/default/ui/casLoginView.jsp] in InternalResourceView 'casLoginView'> 2016-04-06 14:31:19,786 DEBUG [org.jasig.cas.web.support.CasArgumentExtractor] - <Extractor did not generate service.> 2016-04-06 14:31:19,790 DEBUG [org.springframework.ui.context.support.ResourceBundleThemeSource] - <Theme created: name 'cas-theme-default', basename [cas-theme-default]>

Looks like, theme 'cas-theme-default' is selected for casLoginView.jsp while theme 'theme' is selected for errors.jsp

Jérôme Nenert <jerome.nen...@u-paris2.fr> a écrit :

No logs from org.jasig

More logs from org.springframework ( DEBUG mode ) :

2016-04-06 14:25:04,257 DEBUG [org.springframework.ui.context.support.ResourceBundleThemeSource] - <Theme created: name 'theme', basename [theme]> 2016-04-06 14:25:04,259 WARN [org.springframework.context.support.ResourceBundleMessageSource] - <ResourceBundle [theme] not found for MessageSource: Can't find bundle for base name theme, locale fr_FR> 2016-04-06 14:25:04,261 ERROR [org.springframework.web.servlet.tags.ThemeTag] - <Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'fr_FR'.> javax.servlet.jsp.JspTagException: Theme 'theme': No message found under code 'standard.custom.css.file' for locale 'fr_FR'. at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:185) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:80) at org.apache.jsp.WEB_002dINF.view.jsp.errors_jsp._jspx_meth_spring_005ftheme_005f0(errors_jsp.java:199) at org.apache.jsp.WEB_002dINF.view.jsp.errors_jsp._jspService(errors_jsp.java:100)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:488) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:476) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:345) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:210) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)



Misagh Moayyed <mmoay...@unicon.net> a écrit :

Any other errors in the CAS/Container logs? This is usually not the cause.

-----Original Message-----
From: cas-user@apereo.org [mailto:cas-user@apereo.org] On Behalf Of Jérôme
Nenert
Sent: Wednesday, April 6, 2016 1:38 AM
To: cas-user@apereo.org
Subject: [cas-user] Default theme cas-theme-default generates
JspTagException
errors


Hello,

Using CAS v4.0.x or v4.1.x and the default theme configuration ( the one
in cas-
server-webapp/src )  :

cas.properties : cas.themeResolver.defaultThemeName=cas-theme-default

WEB-INF/cas-servlet.xml

<bean id="themeResolver"
class="org.jasig.cas.services.web.ServiceThemeResolver"
     p:defaultThemeName="${cas.themeResolver.defaultThemeName}"
     p:servicesManager-ref="servicesManager"
     p:argumentExtractors-ref="argumentExtractors" />

WEB-INF/classes/cas-theme-default.properties

standard.custom.css.file=/css/cas.css
cas.javascript.file=/js/cas.js

Each time we have 501 error, the following error is generated by the CAS
server
:

avr. 06, 2016 10:04:32 AM
org.apache.catalina.core.ApplicationDispatcher invoke
GRAVE: "Servlet.service()" pour la servlet jsp a lancé une exception
javax.servlet.jsp.JspTagException: Theme 'theme': No message found under
code 'standard.custom.css.file' for locale 'fr_FR'
avr. 06, 2016 10:04:32 AM org.apache.catalina.core.StandardHostValve
custom
GRAVE: Exception Processing ErrorPage[errorCode=501, location=/WEB-
INF/view/jsp/errors.jsp]
org.apache.jasper.JasperException: javax.servlet.ServletException:
javax.servlet.jsp.JspTagException: Theme 'theme': No message found under
code 'standard.custom.css.file' for locale 'fr_FR'.
Caused by: javax.servlet.ServletException:
javax.servlet.jsp.JspTagException: Theme 'theme': No message found under
code 'standard.custom.css.file' for locale 'fr_FR'.
Caused by: javax.servlet.jsp.JspTagException: Theme 'theme': No message
found
under code 'standard.custom.css.file' for locale 'fr_FR'.

How to fix this issue ?

Regards.

Jerome NENERT.
IT Services.
Pantheon Assas University ( Paris 2 )

--
You received this message because you are subscribed to the Google Groups
"CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email
to cas-user+unsubscr...@apereo.org.
Visit this group at
https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-
user/20160406103814.Horde.kJav5BHvY3u-o4ahlbfLpdW%40courriel.u-
paris2.fr.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

--
You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/001001d18ff7%2482c1ad40%24884507c0%24%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

--
You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/20160406143022.Horde.plaTVHfCa5DcfExTGTogOGZ%40courriel.u-paris2.fr.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.


--
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/20160406144316.Horde.HqhnXj1mwQkTUNveiV6CLBj%40courriel.u-paris2.fr.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to