Hi,
Can someone comment on this?
regards,
Giannis
On 01/07/13 14:44, Kapetanakis Giannis wrote:
Hi,
I've recently upgraded to 3.5.2 (from 3.5.0) and having trouble
accessing the service management page.
I get "There was an error trying to complete your request. Please
notify your support desk or try again."
While trying to debug it I get these on the cas.log
2013-07-01 14:01:58,146 DEBUG
[org.jasig.cas.web.support.CasArgumentExtractor] - Extractor generated
service for:
https://idp.example.com/cas/services/j_acegi_cas_security_check
2013-07-01 14:01:58,149 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to
retrieve ticket
[TGT-1-4IiwKdzEkhlemlh62iUdXyG1B69TjNwTW6puuJgapsuzWRjA7T-cas01.example.com]
2013-07-01 14:01:58,149 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket
[TGT-1-4IiwKdzEkhlemlh62iUdXyG1B69TjNwTW6puuJgapsuzWRjA7T-cas01.example.com]
found in registry.
2013-07-01 14:01:58,156 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Added ticket
[ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com] to registry.
2013-07-01 14:01:58,157 INFO
[org.jasig.cas.CentralAuthenticationServiceImpl] - Granted service
ticket [ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com] for service
[https://idp.example.com/cas/services/j_acegi_cas_security_check] for
user [[email protected]]
2013-07-01 14:01:58,157 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to
retrieve ticket
[TGT-1-4IiwKdzEkhlemlh62iUdXyG1B69TjNwTW6puuJgapsuzWRjA7T-cas01.example.com]
2013-07-01 14:01:58,157 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket
[TGT-1-4IiwKdzEkhlemlh62iUdXyG1B69TjNwTW6puuJgapsuzWRjA7T-cas01.example.com]
found in registry.
2013-07-01 14:01:58,157 INFO
[com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] -
Audit trail record BEGIN
=============================================================
WHO: [email protected]
WHAT: ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com for
https://idp.example.com/cas/services/j_acegi_cas_security_check
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Mon Jul 01 14:01:58 EEST 2013
CLIENT IP ADDRESS: 147.52.179.66
SERVER IP ADDRESS: idp.example.com
=============================================================
2013-07-01 14:01:58,187 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] -
Placing URL parameters in map.
2013-07-01 14:01:58,187 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] -
Calling template URL attribute map.
2013-07-01 14:01:58,187 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] -
Loading custom parameters from configuration.
2013-07-01 14:01:58,188 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] -
Constructing validation url:
https://idp.example.com/cas/serviceValidate?ticket=ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com&service=https%3A%2F%2Fidp.example.com%2Fcas%2Fservices%2Fj_acegi_cas_security_check
2013-07-01 14:01:58,188 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] -
Retrieving response from server.
2013-07-01 14:01:58,225 DEBUG
[org.jasig.cas.web.support.CasArgumentExtractor] - Extractor generated
service for:
https://idp.example.com/cas/services/j_acegi_cas_security_check
2013-07-01 14:01:58,232 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to
retrieve ticket [ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com]
2013-07-01 14:01:58,232 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket
[ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com] found in registry.
2013-07-01 14:01:58,247 DEBUG
[org.jasig.cas.CentralAuthenticationServiceImpl] - Principal id to
return for service [Services] is [[email protected]]. The default
principal id is [[email protected]].
2013-07-01 14:01:58,251 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Removing
ticket [ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com] from registry
2013-07-01 14:01:58,254 DEBUG
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to
retrieve ticket [ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com]
2013-07-01 14:01:58,254 INFO
[com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] -
Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com
ACTION: SERVICE_TICKET_VALIDATED
APPLICATION: CAS
WHEN: Mon Jul 01 14:01:58 EEST 2013
CLIENT IP ADDRESS: 147.95.16.174
SERVER IP ADDRESS: idp.example.com
=============================================================
2013-07-01 14:01:58,274 DEBUG
[org.jasig.cas.web.ServiceValidateController] - Successfully validated
service ticket: ST-1-fgHRyv1wVWkPnGEWjU4V-cas01.example.com
2013-07-01 14:01:58,300 DEBUG
[org.jasig.cas.client.validation.Cas20ServiceTicketValidator] - Server
response:
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
<cas:authenticationSuccess>
<cas:user>[email protected]</cas:user>
</cas:authenticationSuccess>
</cas:serviceResponse>
2013-07-01 14:01:58,386 DEBUG
[org.jasig.cas.web.support.CasArgumentExtractor] - Extractor did not
generate service.
2013-07-01 14:01:58,386 DEBUG
[org.jasig.cas.web.support.SamlArgumentExtractor] - Extractor did not
generate service.
==================
Configuration:
My pom.xml contains:
<properties>
<hibernate.validator.version>4.2.0.Final</hibernate.validator.version>
<hibernate.core.version>4.1.0.Final</hibernate.core.version>
</properties>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.core.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.core.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.25</version>
<scope>provided</scope>
</dependency>
cas.properties:
server.name=https://idp.example.com
server.prefix=${server.name}/cas
cas.securityContext.serviceProperties.service=${server.prefix}/services/j_acegi_cas_security_check
cas.securityContext.serviceProperties.adminRoles=ROLE_ADMIN
cas.securityContext.casProcessingFilterEntryPoint.loginUrl=${server.prefix}/login
cas.securityContext.ticketValidator.casServerUrlPrefix=${server.prefix}
cas.securityContext.casProxyTicketValidator.casValidate=${server.prefix}/proxyValidate
database.hibernate.dialect=org.hibernate.dialect.MySQLDialect
deployerConfigContext.xml:
<bean id="serviceRegistryDao"
class="org.jasig.cas.services.JpaServiceRegistryDaoImpl"
p:entityManagerFactory-ref="entityManagerFactory" />
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="jpaVendorAdapter">
<bean
class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="generateDdl" value="true"/>
<property name="showSql" value="true" />
</bean>
</property>
<property name="jpaProperties">
<props>
<prop
key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
</bean>
<bean id="transactionManager"
class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory"/>
</bean>
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean
id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource"
p:driverClassName="com.mysql.jdbc.Driver"
p:url="jdbc:mysql://mysql-server:3306/cas_services?autoReconnect=true"
p:password="password"
p:username="username" />
==================
Same configuration works fine on 3.5.0.
The system runs on Centos 6.4 x64 up2date and SUN jdk1.7.0_25
Thanks in advance for any help,
Giannis
--
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