Thanks, Scott. That moved me a little in the right direction. I'm now using
the following filter:
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>https://centhirene.centenarycollege.edu/cas/login</param-value>
</init-param>
<init-param>
<param-name>service</param-name>
<param-value>http://centhleslie.centenarycollege.edu:8080/ucal</param-value>
</init-param>
<init-param>
<param-name>serverName</param-name>
<param-value>centhleslie.centenarycollege.edu:8080</param-value>
</init-param>
</filter>
And receiving the error:
HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
javax.servlet.ServletException: org.hibernate.hql.ast.QuerySyntaxException:
unexpected token: order near line 1, column 51 [from
org.bedework.calfacade.BwCategory ent where order by ent.word]
org.bedework.webcommon.BwSvciFilter.doFilter(BwSvciFilter.java:166)
root cause
org.bedework.calfacade.exc.CalFacadeException:
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: order near line
1, column 51 [from org.bedework.calfacade.BwCategory ent where order by
ent.word]
org.bedework.calcore.hibernate.HibSessionImpl.commit(HibSessionImpl.java:248)
org.bedework.calcore.hibernate.CalintfImpl.endTransaction(CalintfImpl.java:437)
org.bedework.calsvc.CalSvc.endTransaction(CalSvc.java:508)
org.bedework.webcommon.BwAbstractAction$Callback.out(BwAbstractAction.java:1185)
org.bedework.webcommon.BwSvciFilter.doFilter(BwSvciFilter.java:140)
root cause
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: order near line
1, column 51 [from org.bedework.calfacade.BwCategory ent where order by
ent.word]
org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)
org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)
org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)
org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:281)
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:180)
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:134)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1650)
org.bedework.calcore.hibernate.HibSessionImpl.createQuery(HibSessionImpl.java:357)
org.bedework.calsvc.EventPropertiesImpl.get(EventPropertiesImpl.java:135)
org.bedework.calsvc.EventPropertiesImpl.get(EventPropertiesImpl.java:156)
org.bedework.webcommon.BwActionFormBase.getCategoryCollection(BwActionFormBase.java:3916)
org.bedework.webcommon.BwActionFormBase.getCategories(BwActionFormBase.java:2716)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1132)
org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290)
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:951)
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:232)
org.apache.jsp.docs.main_jsp._jspService(main_jsp.java:2558)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
edu.rpi.sss.util.servlets.XSLTFilter.doFilter(XSLTFilter.java:265)
org.bedework.webcommon.BwSvciFilter.doFilter(BwSvciFilter.java:127)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.28 logs.
Any guesses as to what might be the problem?
Thanks,
John
From: Scott Battaglia [mailto:[email protected]]
Sent: Wednesday, November 11, 2009 7:04 PM
To: [email protected]
Subject: Re: [cas-user] CAS + Bedework
This is just a guess, but you've deployed the Jasig CAS Client for Java with
configuration for the older deprecated Yale CAS Client.
You'll probably want to look at this configuration:
http://www.ja-sig.org/wiki/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+in+the+web.xml
Cheers,
Scott
On Wed, Nov 11, 2009 at 6:59 PM, Simone, John
<[email protected]<mailto:[email protected]>> wrote:
I'm running...
Bedework 3.5
Tomcat 5.5.28
CAS 3.1.3
I copied the CAS jar file into the common/lib directory:
cp /home/admin/cas-client-core-3.1.3.jar /usr/local/apache-tomcat/common/lib/
I've inserted the following into the
/usr/local/apache-tomcat/webapps/ucal/WEB-INF/web.xml file:
<filter>
<filter-name>CASFilter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://centhirene.centenarycollege.edu/cas/login</param-value<https://centhirene.centenarycollege.edu/cas/login%3c/param-value>>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https://centhirene.centenarycollege.edu/cas/serviceValidate</param-value<https://centhirene.centenarycollege.edu/cas/serviceValidate%3c/param-value>>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>10.200.2.237:8080<http://10.200.2.237:8080></param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CASFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Tomcat starts, but the catalina.out log shows:
Nov 11, 2009 3:05:26 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 11, 2009 3:05:26 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 737 ms
Nov 11, 2009 3:05:26 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 11, 2009 3:05:26 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.28
Nov 11, 2009 3:05:26 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 11, 2009 3:05:29 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Nov 11, 2009 3:05:29 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/ucal] startup failed due to previous errors
Nov 11, 2009 3:05:30 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive tzsvr.war
Nov 11, 2009 3:05:31 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 11, 2009 3:05:31 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009<http://0.0.0.0:8009>
Nov 11, 2009 3:05:31 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/79 config=null
Nov 11, 2009 3:05:31 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 11, 2009 3:05:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5512 ms
I can load any page in Bedework, except when I attempt to access
http://localhost:8080/ucal/ I get a 404 error.
The localhost log file doesn't reveal anything.
I've tried about a dozen variations on this setup, but to no avail. Please
help if you can.
Also: Do you know where I might be able to find commercial/consultant support
for Bedework and/or CAS?
Thanks & Regards,
John Simone
Software Engineer
Centenary College
o. +1 (908) 852-1400 x2362
c. +1 (973) 255-0106
f. +1 (973) 440-1650
P Please consider the environment - only print this e-mail if absolutely
necessary.
--
You are currently subscribed to
[email protected]<mailto:[email protected]> as:
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
--
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
--
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