Attribute-Resolver -- DBCP

Y Levine ylevine20 at gmail.com
Wed Jan 11 18:30:33 EST 2017


I am certain I am missing something obvious  - following the instructions
for
https://wiki.shibboleth.net/confluence/display/IDP30/BeanManagedConnection

Using Java 8, Tomcat 8.58, Oracle 12c

Any pointers what I've missed? Thanks.

*Receiving follow error in tomcat.logs:*
2017-01-11 14:59:13.936 [ WARN] :
net.shibboleth.ext.spring.context.DelimiterAwareApplicationContext:
Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.CannotLoadBeanClassException:
Cannot find class [org.apache.commons.dbcp2.BasicDataSource] for bean with
name 'OracleDataSource' defined in file
[/opt/shibboleth-idp/system/conf/../../conf/global.xml]; nested exception
is java.lang.ClassNotFoundException:
org.apache.commons.dbcp2.BasicDataSource


*In global.xml (but with real values):*

<bean id="OracleDataSource"
class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close"
    p:driverClassName="%{datasource.driverClass}"
    p:url="%{datasource.jdbcUrl}" p:username="%{datasource.user}"
p:password="%{datasource.password}"
    p:initialSize="5" p:maxTotal="50" p:maxIdle="5" p:maxWaitMillis="2000"
p:testOnBorrow="true"
    p:testWhileIdle="true" p:testOnReturn="true"
p:timeBetweenEvictionRunsMillis="120000"
    p:minEvictableIdleTimeMillis="120000" p:validationQuery="select 1 from
dual" p:validationQueryTimeout="4" />

*In **edit-webapp/WEB-INF/lib/:*

commons-dbcp2-2.1.1.jar
commons-pool2-2.4.2.jar
ojdbc7.jar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170111/7fded1f2/attachment.html>


More information about the users mailing list