Your XML configuration should work. The HttpClient3FactoryBean is a
FactoryBean which should return an instance of an HttpClient so everything
should be okay.

If you've been using older versions of CAS, I would make sure that there are
no older versions of the CAS jars on the classpath.

-Scott

On 8/1/07, Matt Turner <[EMAIL PROTECTED]> wrote:
>
> I am struggling with my CAS configuration.
> I'm using the 3.0.7 server and 2.1.1 client.
>
> In my deployerConfigContext.xml I have this (3.0.7's default)......
>
> <
> bean
>
> class="
> org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
> ">
>
> <property
>
> name="httpClient"
>
> ref="httpClient" /> </bean>
>
> In my applicationContext.xml I have this (3.0.7's default)...
>
> <bean
>
> id="httpClient"
>
> class="org.jasig.cas.util.HttpClient3FactoryBean">
>
> <property
>
> name="soTimeout"
>
> value="5000" />
>
> <property
>
> name="connectionManagerTimeout"
>
> value="5000" />
>
> <property
>
> name="connectionTimeout"
>
> value="5000" />
>
> <property
>
> name="defaultMaxConnectionsPerHost"
>
> value="50" />
>
> <property
>
> name="maxTotalConnections"
>
> value="50" /> </bean>
>
>
> And in my error log I have this..
>
> Exception: Invalid property 'httpClient' of bean class [
> org.jasig.cas.authentication.handler.support.HttpBasedServiceCre
> dentialsAuthenticationHandler]: Bean property 'httpClient' is not writable
> or has an invalid setter method. Does the par
> ameter type of the setter match the return type of the getter?
>
> Which is not surprising given that 
> HttpBasedServiceCredentialsAuthenticationHandler
> doesn't take a HttpClient3FactoryBean.
>
> import org.apache.commons.httpclient.HttpClient;
>
>     /** Sets the HttpClient which will do all of the connection stuff. */
>     public void setHttpClient(final HttpClient httpClient) {
>         this.httpClient = httpClient;
>     }
>
> Am I doing something wrong ?  Am I mixing and matching incompatible
> versions of something ??
> If I have to change the defaults, what should my configuration look like ?
> I've had everything working some time ago (using much older versions,
> can't remember which now)...but now I am stumped..
>
> matt.
>
>
> ------------------------------
> The future of MSN Messenger! Windows Live 
> Messenger<http://imagine-msn.com/messenger/launch/en-GB/>
>
> _______________________________________________
> 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