Hi,
Can anyone send me an example of his web.xml file?
I have the entire thing working until I try to validate a ticket I always get  
an exception saying the ticket is not recognized.

This is how the CAS part of my web.xml look like

<filter>
  <filter-name>CAS Validation Filter</filter-name>
  
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
  <init-param>
    <param-name>casServerUrlPrefix</param-name>
    <param-value>https://kobyr-desktop.kenshootlv.local:8443/cas</param-value>
  </init-param>
  <init-param>
    <param-name>serverName</param-name>
    <param-value>http://kobyr-desktop.kenshootlv.local:8080</param-value>
  </init-param>
</filter>



   <filter>
           <filter-name>CAS Filter</filter-name>
           
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
           <init-param>
               
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
               
<param-value>https://kobyr-desktop.kenshootlv.local:8443/cas/login</param-value>
           </init-param>
           <init-param>
               
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
               
<param-value>https://kobyr-desktop.kenshootlv.local:8443/cas/serviceValidate</param-value>
           </init-param>
           <init-param>
               
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
               <param-value>kobyr-desktop.kenshootlv.local:8080</param-value>
           </init-param>
           <init-param>
             
<param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
             <param-value>true</param-value>
            </init-param>
       </filter>


       <filter-mapping>
           <filter-name>CAS Filter</filter-name>
           <url-pattern>/*</url-pattern>
       </filter-mapping>



Many thanks.

From: Ram Mohan [mailto:[email protected]]
Sent: Wednesday, June 24, 2009 8:35 AM
To: [email protected]
Subject: Re: [cas-dev] Exception while using Restful API

The problem is resolved. It seems i provided incorrect parameters and also my 
customized beans are not supporting this restful API.
the necessary corrections were made in the bean. its working fine.

Thanks,
Ram
On Mon, Jun 22, 2009 at 11:06 PM, Ram Mohan 
<[email protected]<mailto:[email protected]>> wrote:
yes, these statements are getting printed.
the return code of TGT is 501. and the exception reported is the message body.
as there was an exception while TGT generation, TGT is returned as null.
the log, which Marvin is talking about is generated while trying to get ST with 
this TGT.

-Ram

On Mon, Jun 22, 2009 at 8:34 PM, Marvin Addison 
<[email protected]<mailto:[email protected]>> wrote:
I see you have some print statements for printing out the TGT.  Can
you even get that far?  In the stack trace you sent, it appears you
aren't sending a TGT, thus the line:

<Attempting to retrieve ticket [null]>

M

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev



--

You are currently subscribed to 
[email protected]<mailto:[email protected]> as: [email protected]

To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

-- 
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-dev

Reply via email to