Excellent, Thanks.  Sorry for the brain farts below, I do think this
client is the answer to our problems (through apparently better
compliance with servlet standards).  Anything I can do to help in the
wiki area, just point the way...I believe we are definitely in the CAS
camp now...specifically because of the excellent responses from the
community.  When I am really done with this to my satisfaction (pretty
close now, I think) I would like to add a wiki page on integration of
CAS with ESRI ArcIMS GIS access control...there are quite a few nuances
for it to merit a category of its own like.  If there is one already
please let me know...I certainly did not see anything here.

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Scott Battaglia
Sent: Wednesday, May 09, 2007 3:20 AM
To: Yale CAS mailing list
Subject: Re: CAS Java Client 3.0.0 Install ERROR Report

 

I've updated the page in Wiki with this information.

Thanks!
-Scott

On 5/8/07, Uday Kari <[EMAIL PROTECTED] > wrote:

1.  Contents of securityConfiguration.xml identical to
http://www.ja-sig.org/products/cas/client/client-java/index.html

2.  Seems like version mismatch between the illustrative XML in the
example and the version in CAS Java Client 3.0.0 for the following
class: 
org.jasig.cas.client.validation.Cas20ProxyTicketValidator

Specifically, example on above URL has six (6) number of constructor
args in the securityConfiguration.xml and the actual code accepts either
five (5) or eight (8).  Ugh! Sloppy, sloppy...I guess that URL needs to 
be updated)...

XML Sample
-----------

<bean id="ticketValidator"
      class="org.jasig.cas.client.validation.Cas20ProxyTicketValidator">
  <constructor-arg index="0" value="${ cas.server.url}"/>
  <constructor-arg index="1" value="${cas.server.renew}"/>
  <constructor-arg index="2" ref="httpClient"/>
  <!--

  //////////////////////////////////////////////////////// 
  //  Looks like we need to comment this bad boy out
  //

  <constructor-arg index="3">
   <bean class="org.jasig.cas.authentication.principal.SimpleService">
     <constructor-arg value="${ cas.client.proxyCallbackUrl}"/>
    </bean>
  </constructor-arg>


  ////////////////////////////////////////////////////////
  //  And change the following to 3, 4 respectively
  // 
  -->

  <constructor-arg index="3"><list></list></constructor-arg>
  <constructor-arg index="4" value="true"/>
</bean>


Code within CAS Java Client 3.0.0
-----------------------------------
public Cas20ProxyTicketValidator(final String casServerUrl,
                                 final boolean renew,
                                 final HttpClient httpClient, 
                                 List proxyChains,
                                 boolean acceptAnyProxy)

public Cas20ProxyTicketValidator(final String casServerUrl,
                                 final boolean renew, 
                                 final HttpClient httpClient,
                                 final Service proxyCallbackUrl,
                                 List proxyChains,
                                 boolean acceptAnyProxy, 
                                 final ProxyGrantingTicketStorage
                                 proxyGrantingTicketStorage,
                                 final ProxyRetriever proxyRetriever)



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Uday Kari 
Sent: Tuesday, May 08, 2007 3:52 PM
To: Yale CAS mailing list
Subject: CAS Java Client 3.0.0 Install ERROR Report

Please note the error below:

Exception sending context initialized event to listener instance of 
class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'ticketValidator' defined in
ServletContext resource [/WEB-INF/securityConfiguration.xml]: 6 
constructor arguments specified but no matching constructor found in
bean 'ticketValidator'
(hint: specify index and/or type arguments for simple parameters to
avoid type ambiguities)...

SORRY: WHAT DID I MISS?  SIMPLE DETAILED REPROCUTION BELOW 


1.  Download apache-tomcat-5.5.23.exe
    Install as Windows Service on XP machine.
2.  Create a new "test" context with the following directory structure
    under webapps using instructions for contents under WEB-INF 
    from "JA-SIG CAS Client for Java"; URL:
    http://www.ja-sig.org/products/cas/client/client-java/index.html

    (the hw.jsp just says out.print("Hello World")...
     but this is irrelevant)



    test
     |
     |__ hw.jsp
     |
     |__ protected
     |       |
     |       |__ hw.jsp
     | 
     |__ WEB-INF
            |
            |__ cas-client.properties
            |
            |__ securityConfiguration.xml
            |
            |__ web.xml
            |
            |__ lib 
                 |
                 |__ (drop all jars from
cas-client-java-3.0.0.zip...RIGHT?)


3.  Stop Tomcat, Clean Logs, Start Tomcat
4.  This is what I see in localhost.2007-05-08.log
   (all other log files are size zero): 

May 8, 2007 3:41:18 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule :
Target string: News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org] <http://jakarta.apache.org%5d> ]
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 8, 2007 3:41:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
May 8, 2007 3:41:21 PM
org.apache.catalina.core.StandardContextlistenerStart
SEVERE: Exception sending context initialized event to listener instance

of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'ticketValidator' defined in ServletContext resource
[/WEB-INF/securityConfiguration.xml]: 6 constructor arguments specified
but no matching constructor found in bean 'ticketValidator' (hint:
specify index and/or type arguments for simple parameters to avoid type 
ambiguities)
        at
org.springframework.beans.factory.support.ConstructorResolver.autowireCo
nstructor(ConstructorResolver.java:117)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac

tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java :621)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec

t(AbstractBeanFactory.java:245)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(Ab
stractBeanFactory.java:242)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre

InstantiateSingletons(DefaultListableBeanFactory.java:290)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:348)
        at
org.springframework.web.context.support.AbstractRefreshableWebApplicatio

nContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(ContextLoader.java:246)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext
(
ContextLoader.java:184)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized
(ContextLoaderListener.java:49)
        at
org.apache.catalina.core.StandardContext.listenerStart
(StandardContext.j
ava:3764)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216
)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:760) 
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDirectory
(HostConfig.java:9
20)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:883)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSu
pport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke (Method.java:585)
        at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
May 8, 2007 3:41:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext


(END OF ERROR REPORT)





_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia 

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to