This question is more appropriate for the user list.  Please move the
conversation there (the list has been added to the TO).

Also, please follow the directions for the CAS client in the wiki:
http://www.ja-sig.org/wiki/display/CASC/CAS+Client+for+Java+3.1

It even has examples.

Cheers,
Scott


On Wed, Jun 24, 2009 at 4:08 AM, Koby Ram <[email protected]> wrote:

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

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

Reply via email to