<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 14, 2015 at 9:43 AM, Stefan Santesson <span dir="ltr"><<a href="mailto:stefan@aaa-sec.com" target="_blank">stefan@aaa-sec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I tried to change to BeanManagedConnection.<br>
<br>
I used the example from the Wiki:<br>
<a href="https://wiki.shibboleth.net/confluence/display/IDP30/BeanManagedConnection" rel="noreferrer" target="_blank">https://wiki.shibboleth.net/confluence/display/IDP30/BeanManagedConnection</a><br>
<br>
I had to add commons-dbcp-1.4.jar to the lib.<br>
I added the bean declaration in global.xml.<br>
<br>
I get an error trying to start the IdP, saying that the drivarClass<br>
property is not writable:<br>
<br>
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid<br>
property 'driverClass' of bean class<br>
[org.apache.commons.dbcp.BasicDataSource]: Bean property 'driverClass' is<br>
not writable or has an invalid setter method. Does the parameter type of<br>
the setter match the return type of the getter?<br></blockquote><div><br></div><div>That looks like a typo in the docs. Try using this instead:</div><div><br></div><bean id="MyDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"<br>    p:driverClassName="%{datasource.driverClass}"<br>    p:url="%{datasource.jdbcUrl}" p:username="%{datasource.user}" p:password="%{datasource.password}"<br>    p:maxActive="10" p:maxIdle="5" p:maxWait="2000" p:testOnBorrow="true"<br>    p:validationQuery="select 1" p:validationQueryTimeout="5" /><div><br></div><div>--Daniel Fisher</div><div><br></div></div></div></div>