Just in case anyone does the same thing, this turned out to be a classpath
issue.
I've been trying to get it to build using maven and was missing a couple of
JARs.
matt.
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: HttpClient configurationDate:
Thu, 2 Aug 2007 23:05:13 +0000
Thanks - I deployed in a new WL domain just to be on the safe side and I'm over
that hurdle. Helped to know that I was looking in the wrong place ! However
I've now hit something else which is driving me crazy - not sure whether it's a
CAS question really but just wondered if anyone had any ideas what might be
causing it. When I fire up my CAS (3.0.7) webapp I get the following error...
I haven't change cas-servlet.xml at all (and have only made minor mods to
depolyerconfigcontext) so I guess there must be something more fundamental
wrong - I'm really not sure where to start looking though. Could anyone advise
? matt.
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate NamespaceHandler for namespace
[http://www.springframework.org/schema/webflow-config]Offending resource:
ServletContext resource [/WEB-INF/cas-servlet.xml] at
org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
at
org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:261)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1111)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1104)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:133)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader
Date: Wed, 1 Aug 2007 11:35:49 -0400From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
Re: HttpClient configurationYour 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.HttpBasedServiceCredentialsAuthenticationHandler]:
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_______________________________________________Yale CAS mailing [EMAIL
PROTECTED]://tp.its.yale.edu/mailman/listinfo/cas-- -Scott BattagliaLinkedIn:
http://www.linkedin.com/in/scottbattaglia
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
_________________________________________________________________
Celeb spotting – Play CelebMashup and win cool prizes
https://www.celebmashup.com/index2.html_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas