Dear all, I'm using mywebapp ( http://www.ja-sig.org/wiki/display/CASC/JA-SIG+Java+Client+Simple+WebApp+Sample ) *If I remove all mentions to proxy ticket within the web.xml, it works perfectly.* Trying to use proxy ticket, it fails such way :
cas-web.log : 2009-06-29 14:51:54,138 INFO [org.jasig.cas.web.flow.InitialFlowSetupAction] - Setting path for cookies to: /cas-web 2009-06-29 14:51:54,145 DEBUG [org.jasig.cas.web.support.CasArgumentExtractor] - Extractor generated service for: http://localhost:8080/mywebapp/protected/ 2009-06-29 14:52:00,313 DEBUG [org.jasig.cas.CentralAuthenticationServiceImpl] - Attempting to create TicketGrantingTicket for [username: nquenant] 2009-06-29 14:52:00,410 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - AuthenticationHandler: org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler successfully authenticated the user which provided the following credentials: [username: nquenant] 2009-06-29 14:52:00,410 DEBUG [org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver] - Attempting to resolve a principal... 2009-06-29 14:52:00,410 DEBUG [org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver] - Creating SimplePrincipal for [nquenant] 2009-06-29 14:52:00,422 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Added ticket [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas] to registry. 2009-06-29 14:52:00,430 DEBUG [org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - Removed cookie with name [CASPRIVACY] 2009-06-29 14:52:00,431 DEBUG [org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - Added cookie with name [CASTGC] and value [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas] 2009-06-29 14:52:00,432 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Attempting to retrieve ticket [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas] 2009-06-29 14:52:00,432 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Ticket [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas] found in registry. 2009-06-29 14:52:00,434 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - Added ticket [ST-1-5LIuerMga5fEV7dBN7ho-cas] to registry. 2009-06-29 14:52:00,434 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - Granted service ticket [ST-1-5LIuerMga5fEV7dBN7ho-cas] for service [ http://localhost:8080/mywebapp/protected/] for user [nquenant] 2009-06-29 14:52:00,583 DEBUG [org.jasig.cas.web.support.CasArgumentExtractor] - Extractor generated service for: http://localhost:8080/mywebapp/protected/ 2009-06-29 14:52:00,583 DEBUG [org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler] - Attempting to resolve credentials for [callbackUrl: https://localhost:8443/mywebapp/proxyCallback] catalina.out : 2009-06-29 14:52:00,430 DEBUG [org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - <Removed cookie with name [CASPRIVACY]> 2009-06-29 14:52:00,431 DEBUG [org.jasig.cas.web.support.CookieRetrievingCookieGenerator] - <Added cookie with name [CASTGC] and value [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas]> 2009-06-29 14:52:00,432 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Attempting to retrieve ticket [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas]> 2009-06-29 14:52:00,432 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Ticket [TGT-1-KWZjG6EgcYkuzKnc6HtgGyj69xGS3Od3zmVF2bdN1VV2iDeY7y-cas] found in registry.> 2009-06-29 14:52:00,434 DEBUG [org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Added ticket [ST-1-5LIuerMga5fEV7dBN7ho-cas] to registry.> 2009-06-29 14:52:00,434 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - <Granted service ticket [ST-1-5LIuerMga5fEV7dBN7ho-cas] for service [ http://localhost:8080/mywebapp/protected/] for user [nquenant]> 2009-06-29 14:52:00,583 DEBUG [org.jasig.cas.web.support.CasArgumentExtractor] - <Extractor generated service for: http://localhost:8080/mywebapp/protected/> 2009-06-29 14:52:00,583 DEBUG [org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler] - <Attempting to resolve credentials for [callbackUrl: https://localhost:8443/mywebapp/proxyCallback]> Jun 29, 2009 2:52:00 PM org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator retrieveResponseFromServer SEVERE: java.io.IOException: Server returned HTTP response code: 500 for URL: https://localhost:8443/cas-web/serviceValidate?service=http%3A%2F%2Flocalhost%3A8080%2Fmywebapp%2Fprotected%2F&ticket=ST-1-5LIuerMga5fEV7dBN7ho-cas&pgtUrl=https%3A%2F%2Flocalhost%3A8443%2Fmywebapp%2FproxyCallback java.io.IOException: Server returned HTTP response code: 500 for URL: https://localhost:8443/cas-web/serviceValidate?service=http%3A%2F%2Flocalhost%3A8080%2Fmywebapp%2Fprotected%2F&ticket=ST-1-5LIuerMga5fEV7dBN7ho-cas&pgtUrl=https%3A%2F%2Flocalhost%3A8443%2Fmywebapp%2FproxyCallback at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1170) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.retrieveResponseFromServer(AbstractCasProtocolUrlBasedTicketValidator.java:35) at org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:178) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:132) ... And indeed, if I do manually a GET http://localhost:8080/mywebapp/proxyCallback https://localhost:8443/mywebapp/proxyCallback I retrieve a blank page (neither 500 or 404). Some of the applications I need to cassify require proxy ticket, do you have some ideas ? Thanks in advance, Nicolas. -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user