Hello,
I tried adding those beans in a way that is shown by the
cas-openid-server-demo here
<https://github.com/leleuj/cas-openid-demo/blob/master/cas-openid-server-demo/src/main/webapp/WEB-INF/deployerConfigContext.xml>.
Now I am not getting the error but the problem is not resolved. Still see
the server hostname in place of username. Below is the new
deplyerConfigContext.xml. thanks.
Enter <?xml version="1.0" encoding="UTF-8"?>
<!-- zeb customized -->
<!--
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a
copy of the License at the following location:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
| deployerConfigContext.xml centralizes into one file some of the
declarative configuration that
| all CAS deployers will need to modify.
|
| This file declares some of the Spring-managed JavaBeans that make up a
CAS deployment.
| The beans declared in this file are instantiated at context
initialization time by the Spring
| ContextLoaderListener declared in web.xml. It finds this file because
this
| file is among those declared in the context parameter
"contextConfigLocation".
|
| By far the most common change you will need to make in this file is to
change the last bean
| declaration to replace the default authentication handler with
| one implementing your approach for authenticating usernames and passwords.
+-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:c="http://www.springframework.org/schema/c"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<!--
| The authentication manager defines security policy for
authentication by specifying at a minimum
| the authentication handlers that will be used to authenticate
credential. While the AuthenticationManager
| interface supports plugging in another implementation, the default
PolicyBasedAuthenticationManager should
| be sufficient in most cases.
+-->
<bean id="authenticationManager"
class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
<constructor-arg>
<map>
<!--
| IMPORTANT
| Every handler requires a unique name.
| If more than one instance of the same handler class is
configured, you must explicitly
| set its name to something other than its default name
(typically the simple class name).
-->
<entry key-ref="proxyAuthenticationHandler"
value-ref="proxyPrincipalResolver" />
<entry key-ref="openIdHandler" value-ref="openIdResolver" />
<entry key-ref="ldapAuthenticationHandler"><null/></entry>
<!-- <entry key-ref="spnegoAuthenticationHandler"
value-ref="ldapPrincipalResolver" />-->
</map>
</constructor-arg>
<!-- Uncomment the metadata populator to allow clearpass to capture
and cache the password
This switch effectively will turn on clearpass.
<property name="authenticationMetaDataPopulators">
<util:list>
<bean
class="org.jasig.cas.extension.clearpass.CacheCredentialsMetaDataPopulator"
c:credentialCache-ref="encryptedMap" />
</util:list>
</property>
-->
<!--
| Defines the security policy around authentication. Some
alternative policies that ship with CAS:
|
| * NotPreventedAuthenticationPolicy - all credential must
either pass or fail authentication
| * AllAuthenticationPolicy - all presented credential must be
authenticated successfully
| * RequiredHandlerAuthenticationPolicy - specifies a handler
that must authenticate its credential to pass
-->
<property name="authenticationPolicy">
<bean
class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
</property>
<!-- <property name="OpenIdCredentialsToPrincipalResolver">
<bean id="openidResolver"
class="org.jasig.cas.support.openid.authentication.principal.OpenIdPrincipalResolver"
/>
</property>
<property name="authenticationHandler">
<bean
class="org.jasig.cas.support.openid.authentication.handler.support.OpenIdCredentialsAuthenticationHandler"
p:ticketRegistry-ref="ticketRegistry" />
</property>
-->
</bean>
<!-- Leleuj example -->
<bean id="openIdHandler"
class="org.jasig.cas.support.openid.authentication.handler.support.OpenIdCredentialsAuthenticationHandler"
p:ticketRegistry-ref="ticketRegistry" />
<bean id="openIdResolver"
class="org.jasig.cas.support.openid.authentication.principal.OpenIdPrincipalResolver"
/>
<!-- Required for proxy ticket mechanism. -->
<bean id="proxyAuthenticationHandler"
class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
p:httpClient-ref="httpClient" />
<!--
| TODO: Replace this component with one suitable for your enviroment.
|
| This component provides authentication for the kind of credential
used in your environment. In most cases
| credential is a username/password pair that lives in a system of
record like an LDAP directory.
| The most common authentication handler beans:
|
| * org.jasig.cas.authentication.LdapAuthenticationHandler
| * org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler
| *
org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler
| *
org.jasig.cas.support.spnego.authentication.handler.support.JCIFSSpnegoAuthenticationHandler
-->
<!--
<bean id="primaryAuthenticationHandler"
class="org.jasig.cas.authentication.AcceptUsersAuthenticationHandler">
<property name="users">
<map>
<entry key="casuser" value="Mellon"/>
</map>
</property>
</bean>
-->
<!-- Required for proxy ticket mechanism -->
<bean id="proxyPrincipalResolver"
class="org.jasig.cas.authentication.principal.BasicPrincipalResolver" />
<!--
Sample, in-memory data store for the ServiceRegistry. A real
implementation
would probably want to replace this with the JPA-backed ServiceRegistry
DAO
The name of this bean should remain "serviceRegistryDao".
+-->
<bean id="serviceRegistryDao"
class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"
p:registeredServices-ref="registeredServicesList" />
<util:list id="registeredServicesList">
<bean class="org.jasig.cas.services.RegexRegisteredService"
p:id="0" p:name="HTTP and IMAP" p:description="Allows HTTP(S)
and IMAP(S) protocols"
p:serviceId="^(https?|imaps?)://.*"
p:evaluationOrder="10000001" />
<!--
Use the following definition instead of the above to further
restrict access
to services within your domain (including sub domains).
Note that example.com must be replaced with the domain you wish to
permit.
This example also demonstrates the configuration of an attribute
filter
that only allows for attributes whose length is 3.
-->
<!--
<bean class="org.jasig.cas.services.RegexRegisteredService">
<property name="id" value="1" />
<property name="name" value="HTTP and IMAP on example.com" />
<property name="description" value="Allows HTTP(S) and IMAP(S)
protocols on example.com" />
<property name="serviceId"
value="^(https?|imaps?)://([A-Za-z0-9_-]+\.)*example\.com/.*" />
<property name="evaluationOrder" value="0" />
<property name="attributeFilter">
<bean
class="org.jasig.cas.services.support.RegisteredServiceRegexAttributeFilter"
c:regex="^\w{3}$" />
</property>
</bean>
-->
</util:list>
<bean id="auditTrailManager"
class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" />
<bean id="healthCheckMonitor"
class="org.jasig.cas.monitor.HealthCheckMonitor"
p:monitors-ref="monitorsList" />
<util:list id="monitorsList">
<bean class="org.jasig.cas.monitor.MemoryMonitor"
p:freeMemoryWarnThreshold="10" />
<!--
NOTE
The following ticket registries support SessionMonitor:
* DefaultTicketRegistry
* JpaTicketRegistry
Remove this monitor if you use an unsupported registry.
-->
<bean class="org.jasig.cas.monitor.SessionMonitor"
p:ticketRegistry-ref="ticketRegistry"
p:serviceTicketCountWarnThreshold="5000"
p:sessionCountWarnThreshold="100000" />
</util:list>
</beans>
here...
On Monday, 4 May 2015 16:52:07 UTC+2, j shaik wrote:
>
> Hello Moayyed,
>
> As per the instructions the beans should be included in the credentials to
> principal property and authentication handler property respectively.
> However I could not find this properties in the file nor on the example on
> github. So I included the beans in the file. Could you please let me know
> if this configuration is correct. I also tried creating a property like this
>
> <!-- <property name="credentialsToPrincipalResolvers">
> The openid credentials to principal resolver
> <bean
> class="org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver"
>
> />
> </property> -->
> but it also did not work. I have attached the file and the error stack
> trace below.
>
>
> deployerConfigContext.xml
> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
> xmlns:p="http://www.springframework.org/schema/p" xmlns:c="
> http://www.springframework.org/schema/c" xmlns:tx="
> http://www.springframework.org/schema/tx"
> xmlns:util="http://www.springframework.org/schema/util" xmlns:sec="
> http://www.springframework.org/schema/security"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
> http://www.springframework.org/schema/security
> http://www.springframework.org/schema/security/spring-security-3.2.xsd
> http://www.springframework.org/schema/util
> http://www.springframework.org/schema/util/spring-util.xsd">
> <!-- | The authentication manager defines security policy for
> authentication by specifying at a minimum | the authentication
> handlers that will be used to authenticate credential. While the
> AuthenticationManager | interface supports plugging in another
> implementation, the default PolicyBasedAuthenticationManager should
> | be sufficient in most cases. + -->
> <bean id="authenticationManager"
> class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
> <constructor-arg>
> <map>
> <!-- | IMPORTANT | Every handler requires a unique name. | If
> more than one instance of the same handler class
> is configured, you must explicitly | set its name to
> something other than its default name (typically the simple class name). -->
> <entry key-ref="proxyAuthenticationHandler"
> value-ref="proxyPrincipalResolver" />
> <entry key-ref="openIDAuthenticationHandler"
> value-ref="openIDPrincipalResolver" />
> <entry key-ref="ldapAuthenticationHandler">
> <null />
> </entry>
> <!-- <entry key-ref="spnegoAuthenticationHandler"
> value-ref="ldapPrincipalResolver" /> -->
> </map>
> </constructor-arg>
> <!-- Uncomment the metadata populator to allow clearpass to capture
> and cache the password This switch effectively
> will turn on clearpass. <property
> name="authenticationMetaDataPopulators"> <util:list> <bean
> class="org.jasig.cas.extension.clearpass.CacheCredentialsMetaDataPopulator"
> c:credentialCache-ref="encryptedMap" /> </util:list> </property>
> -->
> <!-- | Defines the security policy around authentication. Some
> alternative policies that ship with CAS: | | *
> NotPreventedAuthenticationPolicy
> - all credential must either pass or fail authentication | *
> AllAuthenticationPolicy - all presented credential must be authenticated
> successfully | * RequiredHandlerAuthenticationPolicy - specifies
> a handler that must authenticate its credential to pass -->
>
> <property name="authenticationPolicy">
> <bean
> class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
> </property>
> </bean>
>
>
> <!-- The open id authentication handler -->
> <bean
> class="org.jasig.cas.support.openid.authentication.handler.support.OpenIdCredentialsAuthenticationHandler"
>
> p:ticketRegistry-ref="ticketRegistry" />
> <!-- The openid credentials to principal resolver -->
> <bean
> class="org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver"
>
> />
>
> <!-- Required for proxy ticket mechanism. -->
> <bean id="proxyAuthenticationHandler"
> class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
> p:httpClient-ref="httpClient" />
> <!-- | TODO: Replace this component with one suitable for your
> enviroment. | | This component provides authentication
> for the kind of credential used in your environment. In most cases |
> credential is a username/password pair that lives in
> a system of record like an LDAP directory. | The most common
> authentication handler beans: | | *
> org.jasig.cas.authentication.LdapAuthenticationHandler
> | * org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler |
> *
> org.jasig.cas.adaptors.x509.authentication.handler.support.X509CredentialsAuthenticationHandler
>
> | *
> org.jasig.cas.support.spnego.authentication.handler.support.JCIFSSpnegoAuthenticationHandler
>
> -->
> <!-- <bean id="primaryAuthenticationHandler"
> class="org.jasig.cas.authentication.AcceptUsersAuthenticationHandler">
> <property
> name="users"> <map> <entry key="casuser" value="Mellon"/> </map>
> </property> </bean> -->
> <!-- Required for proxy ticket mechanism -->
> <bean id="proxyPrincipalResolver"
> class="org.jasig.cas.authentication.principal.BasicPrincipalResolver" />
> <!-- Sample, in-memory data store for the ServiceRegistry. A real
> implementation would probably want to replace this with
> the JPA-backed ServiceRegistry DAO The name of this bean should
> remain "serviceRegistryDao". + -->
> <bean id="serviceRegistryDao"
> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"
> p:registeredServices-ref="registeredServicesList" />
> <util:list id="registeredServicesList">
> <bean class="org.jasig.cas.services.RegexRegisteredService" p:id="0"
> p:name="HTTP and IMAP"
> p:description="Allows HTTP(S) and IMAP(S) protocols"
> p:serviceId="^(https?|imaps?)://.*" p:evaluationOrder="10000001" />
> <!-- Use the following definition instead of the above to further
> restrict access to services within your domain (including
> sub domains). Note that example.com must be replaced with the
> domain you wish to permit. This example also demonstrates the
> configuration of an attribute filter that only allows for
> attributes whose length is 3. -->
> <!-- <bean class="org.jasig.cas.services.RegexRegisteredService">
> <property name="id" value="1" /> <property name="name"
> value="HTTP and IMAP on example.com" /> <property
> name="description" value="Allows HTTP(S) and IMAP(S) protocols on
> example.com"
> /> <property name="serviceId"
> value="^(https?|imaps?)://([A-Za-z0-9_-]+\.)*example\.com/.*" /> <property
> name="evaluationOrder"
> value="0" /> <property name="attributeFilter"> <bean
> class="org.jasig.cas.services.support.RegisteredServiceRegexAttributeFilter"
> c:regex="^\w{3}$" /> </property> </bean> -->
> </util:list>
> <bean id="auditTrailManager"
> class="com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager" />
> <bean id="healthCheckMonitor"
> class="org.jasig.cas.monitor.HealthCheckMonitor"
> p:monitors-ref="monitorsList" />
> <util:list id="monitorsList">
> <bean class="org.jasig.cas.monitor.MemoryMonitor"
> p:freeMemoryWarnThreshold="10" />
> <!-- NOTE The following ticket registries support SessionMonitor: *
> DefaultTicketRegistry * JpaTicketRegistry Remove
> this monitor if you use an unsupported registry. -->
> <bean class="org.jasig.cas.monitor.SessionMonitor"
> p:ticketRegistry-ref="ticketRegistry"
> p:serviceTicketCountWarnThreshold="5000"
> p:sessionCountWarnThreshold="100000" />
> </util:list>
> </beans>
>
> Error Log:
> Mai 04, 2015 4:38:11 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> J:\jdks\jdk1.7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oracle\ora112\bin;C:\oracle\ora102\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
>
> Files\Intel\WiFi\bin\;C:\Program Files\Common
> Files\Intel\WirelessCommon\;C:\Program Files (x86)\Lenovo\Access
> Connections\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program
> Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files
> (x86)\Plantronics\PlantronicsURE\;C:\bin;C:\Program Files\TortoiseSVN\bin;.
> Mai 04, 2015 4:38:12 PM org.apache.tomcat.util.digester.SetPropertiesRule
> begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'org.eclipse.jst.j2ee.server:jenkins' did not find a
> matching property.
> Mai 04, 2015 4:38:12 PM org.apache.tomcat.util.digester.SetPropertiesRule
> begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'org.eclipse.jst.jee.server:cfgmgnt.cas.sso' did not
> find a matching property.
> Mai 04, 2015 4:38:12 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-bio-9080"]
> Mai 04, 2015 4:38:12 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["http-nio-5555"]
> Mai 04, 2015 4:38:12 PM org.apache.tomcat.util.net.NioSelectorPool
> getSharedSelector
> INFO: Using a shared selector for servlet write/read
> Mai 04, 2015 4:38:12 PM org.apache.coyote.AbstractProtocol init
> INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
> Mai 04, 2015 4:38:12 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1435 ms
> Mai 04, 2015 4:38:12 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Mai 04, 2015 4:38:12 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
> Jenkins home directory: C:\Users\mshaikh\.jenkins found at:
> $user.home/.jenkins
> Mai 04, 2015 4:38:24 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started initialization
> Mai 04, 2015 4:38:25 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Listed all plugins
> Mai 04, 2015 4:38:25 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Prepared all plugins
> Mai 04, 2015 4:38:25 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Started all plugins
> Mai 04, 2015 4:38:25 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Augmented all extensions
> Mai 04, 2015 4:38:25 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Loaded all jobs
> Mai 04, 2015 4:38:27 PM org.apache.catalina.core.ApplicationContext log
> INFO: No Spring WebApplicationInitializer types detected on classpath
> Mai 04, 2015 4:38:28 PM org.apache.catalina.core.ApplicationContext log
> INFO: Initializing Spring root WebApplicationContext
> Mai 04, 2015 4:38:31 PM org.openid4java.server.RealmVerifier setEnforceRpId
> WARNING: RP discovery / realm validation disabled;
> 2015-05-04 16:38:33,011 DEBUG [org.ldaptive.pool.BlockingConnectionPool] -
> <beginning pool initialization for
> [org.ldaptive.pool.BlockingConnectionPool@840671624::poolConfig=[org.ldaptive.pool.PoolConfig@8599419::minPoolSize=3,
>
> maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false,
> validatePeriodically=true, validatePeriod=300], activator=null,
> passivator=null,
> validator=[org.ldaptive.pool.SearchValidator@899759299::searchRequest=[org.ldaptive.SearchRequest@-848110199::baseDn=,
>
> searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*),
> parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0,
> sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null,
> sortBehavior=UNORDERED, searchEntryHandlers=null,
> searchReferenceHandlers=null, controls=null, followReferrals=false,
> intermediateResponseHandlers=null]]
> pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@1354718835::prunePeriod=300,
>
> idleTime=600], connectOnCreate=true,
> connectionFactory=[org.ldaptive.DefaultConnectionFactory@1441199371::provider=org.ldaptive.provider.jndi.JndiProvider@4e2bedd9,
>
> config=[org.ldaptive.ConnectionConfig@2028758644::ldapUrl=ldap://zeb.de,
> connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false,
> useStartTLS=false, connectionInitializer=null]], initialized=false,
> availableCount=0, activeCount=0]>
> 2015-05-04 16:38:33,014 DEBUG [org.ldaptive.pool.BlockingConnectionPool] -
> <checking connection pool size >= 3 for
> [org.ldaptive.pool.BlockingConnectionPool@840671624::poolConfig=[org.ldaptive.pool.PoolConfig@8599419::minPoolSize=3,
>
> maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false,
> validatePeriodically=true, validatePeriod=300], activator=null,
> passivator=null,
> validator=[org.ldaptive.pool.SearchValidator@899759299::searchRequest=[org.ldaptive.SearchRequest@-848110199::baseDn=,
>
> searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*),
> parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0,
> sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null,
> sortBehavior=UNORDERED, searchEntryHandlers=null,
> searchReferenceHandlers=null, controls=null, followReferrals=false,
> intermediateResponseHandlers=null]]
> pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@1354718835::prunePeriod=300,
>
> idleTime=600], connectOnCreate=true,
> connectionFactory=[org.ldaptive.DefaultConnectionFactory@1441199371::provider=org.ldaptive.provider.jndi.JndiProvider@4e2bedd9,
>
> config=[org.ldaptive.ConnectionConfig@2028758644::ldapUrl=ldap://zeb.de,
> connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false,
> useStartTLS=false, connectionInitializer=null]], initialized=false,
> availableCount=0, activeCount=0]>
> 2015-05-04 16:38:33,112 DEBUG [org.ldaptive.pool.BlockingConnectionPool] -
> <initialized available queue:
> [org.ldaptive.pool.Queue@1822613804::queueType=LIFO,
> queue=[org.ldaptive.pool.AbstractConnectionPool$DefaultPooledConnectionProxy@396e2573,
>
> org.ldaptive.pool.AbstractConnectionPool$DefaultPooledConnectionProxy@356cfeef,
>
> org.ldaptive.pool.AbstractConnectionPool$DefaultPooledConnectionProxy@4de558c5]]>
> 2015-05-04 16:38:33,116 DEBUG [org.ldaptive.pool.BlockingConnectionPool] -
> <prune pool task scheduled for
> [org.ldaptive.pool.BlockingConnectionPool@840671624::poolConfig=[org.ldaptive.pool.PoolConfig@8599419::minPoolSize=3,
>
> maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false,
> validatePeriodically=true, validatePeriod=300], activator=null,
> passivator=null,
> validator=[org.ldaptive.pool.SearchValidator@899759299::searchRequest=[org.ldaptive.SearchRequest@-848110199::baseDn=,
>
> searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*),
> parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0,
> sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null,
> sortBehavior=UNORDERED, searchEntryHandlers=null,
> searchReferenceHandlers=null, controls=null, followReferrals=false,
> intermediateResponseHandlers=null]]
> pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@1354718835::prunePeriod=300,
>
> idleTime=600], connectOnCreate=true,
> connectionFactory=[org.ldaptive.DefaultConnectionFactory@1441199371::provider=org.ldaptive.provider.jndi.JndiProvider@4e2bedd9,
>
> config=[org.ldaptive.ConnectionConfig@2028758644::ldapUrl=ldap://zeb.de,
> connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false,
> useStartTLS=false, connectionInitializer=null]], initialized=false,
> availableCount=3, activeCount=0]>
> 2015-05-04 16:38:33,120 DEBUG [org.ldaptive.pool.BlockingConnectionPool] -
> <validate pool task scheduled for
> [org.ldaptive.pool.BlockingConnectionPool@840671624::poolConfig=[org.ldaptive.pool.PoolConfig@8599419::minPoolSize=3,
>
> maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false,
> validatePeriodically=true, validatePeriod=300], activator=null,
> passivator=null,
> validator=[org.ldaptive.pool.SearchValidator@899759299::searchRequest=[org.ldaptive.SearchRequest@-848110199::baseDn=,
>
> searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*),
> parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0,
> sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null,
> sortBehavior=UNORDERED, searchEntryHandlers=null,
> searchReferenceHandlers=null, controls=null, followReferrals=false,
> intermediateResponseHandlers=null]]
> pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@1354718835::prunePeriod=300,
>
> idleTime=600], connectOnCreate=true,
> connectionFactory=[org.ldaptive.DefaultConnectionFactory@1441199371::provider=org.ldaptive.provider.jndi.JndiProvider@4e2bedd9,
>
> config=[org.ldaptive.ConnectionConfig@2028758644::ldapUrl=ldap://zeb.de,
> connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false,
> useStartTLS=false, connectionInitializer=null]], initialized=false,
> availableCount=3, activeCount=0]>
> 2015-05-04 16:38:33,122 INFO [org.ldaptive.pool.BlockingConnectionPool] -
> <pool initialized
> [org.ldaptive.pool.BlockingConnectionPool@840671624::poolConfig=[org.ldaptive.pool.PoolConfig@8599419::minPoolSize=3,
>
> maxPoolSize=10, validateOnCheckIn=false, validateOnCheckOut=false,
> validatePeriodically=true, validatePeriod=300], activator=null,
> passivator=null,
> validator=[org.ldaptive.pool.SearchValidator@899759299::searchRequest=[org.ldaptive.SearchRequest@-848110199::baseDn=,
>
> searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*),
> parameters={}], returnAttributes=[1.1], searchScope=OBJECT, timeLimit=0,
> sizeLimit=1, derefAliases=null, typesOnly=false, binaryAttributes=null,
> sortBehavior=UNORDERED, searchEntryHandlers=null,
> searchReferenceHandlers=null, controls=null, followReferrals=false,
> intermediateResponseHandlers=null]]
> pruneStrategy=[org.ldaptive.pool.IdlePruneStrategy@1354718835::prunePeriod=300,
>
> idleTime=600], connectOnCreate=true,
> connectionFactory=[org.ldaptive.DefaultConnectionFactory@1441199371::provider=org.ldaptive.provider.jndi.JndiProvider@4e2bedd9,
>
> config=[org.ldaptive.ConnectionConfig@2028758644::ldapUrl=ldap://zeb.de,
> connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false,
> useStartTLS=false, connectionInitializer=null]], initialized=true,
> availableCount=3, activeCount=0]>
> Mai 04, 2015 4:38:33 PM org.jenkinsci.main.modules.sshd.SSHD start
> INFO: Started SSHD at port 53283
> Mai 04, 2015 4:38:33 PM jenkins.InitReactorRunner$1 onAttained
> INFO: Completed initialization
> 2015-05-04 16:38:33,662 INFO
> [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services.>
> Mai 04, 2015 4:38:33 PM
> org.springframework.web.context.support.StaticWebApplicationContext
> prepareRefresh
> INFO: Refreshing
> org.springframework.web.context.support.StaticWebApplicationContext@7da89d47:
> display name [Root WebApplicationContext]; startup date [Mon May 04
> 16:38:33 CEST 2015]; root of context hierarchy
> Mai 04, 2015 4:38:33 PM
> org.springframework.web.context.support.StaticWebApplicationContext
> obtainFreshBeanFactory
> INFO: Bean factory for application context
> [org.springframework.web.context.support.StaticWebApplicationContext@7da89d47]:
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1d8128e5
> Mai 04, 2015 4:38:33 PM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1d8128e5:
>
> defining beans [filter,legacy]; root of factory hierarchy
> Mai 04, 2015 4:38:34 PM hudson.WebAppMain$3 run
> INFO: Jenkins is fully up and running
> 2015-05-04 16:38:34,434 ERROR
> [org.springframework.web.context.ContextLoader] - <Context initialization
> failed>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'scheduler' defined in ServletContext resource
> [/WEB-INF/spring-configuration/applicationContext.xml]: Invocation of init
> method failed; nested exception is
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class
> [org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver]
>
> for bean with name
> 'org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver#0'
>
> defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml];
> nested exception is java.lang.ClassNotFoundException:
> org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
> at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
> at
> org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.springframework.beans.factory.CannotLoadBeanClassException:
> Cannot find class
> [org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver]
>
> for bean with name
> 'org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver#0'
>
> defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml];
> nested exception is java.lang.ClassNotFoundException:
> org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1281)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:575)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1350)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:355)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:334)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:434)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:428)
> at
> org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1182)
> at
> org.jasig.cas.util.AutowiringSchedulerFactoryBean.afterPropertiesSet(AutowiringSchedulerFactoryBean.java:51)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
> ... 22 more
> Caused by: java.lang.ClassNotFoundException:
> org.jasig.cas.support.openid.authentication.principal.OpenIdCredentialsToPrincipalResolver
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
> at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:416)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1302)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1273)
> ... 32 more
> 2015-05-04 16:38:34,440 ERROR [org.jasig.cas.web.init.SafeContextLoader
> ...
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user