That's not the name of the Restlet servlet (the Restlet servlet does not
live in the CAS packages).  I don't have the name handy, but I can't imagine
the documentation was wrong unless you're using a different version of
Restlet.

Also, the RESTful API is NOT to be used for AJAX calls.  Its for
service-to-service authentication.

Cheers,
Scott

2010/4/28 José Miguel Parrella Romero <[email protected]>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi,
>
> I'm trying to access the RESTful interface on CAS 3.3.5. I copied over
> the modules/cas-server-integration-restlet-3.3.5.jar to the WEB-INF/lib
> directory of the deployed application on Tomcat, added this snippet to
> WEB-INF/web.xml:
>
> <servlet>
>        <servlet-name>restlet</servlet-name>
>        <servlet-class>org.jasig.cas.integration.restlet</servlet-class>
>        <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
>        <servlet-name>restlet</servlet-name>
>        <url-pattern>/v1/*</url-pattern>
> </servlet-mapping>
>
> as directed by the Wiki page, just changing the package name, since it's
> now called o.j.c.integration.restlet (the Wiki page uses an older pkg
> name) I checked the inners of the jar file and the source code and it's
> called this way.
>
> However, Tomcat insists that the class is not found and refuses to load
> the servlet, and I can't access the RESTful interface. I'm getting stuff
> such as:
>
> - --8<--
> Apr 27, 2010 5:04:24 PM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /cas threw load() exception
> java.lang.ClassNotFoundException: org.jasig.cas.integration.restlet
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
> - --8<--
>
> I previously copied over cas-server-support-ldap-3.3.5.jar to the
> WEB-INF/lib in order to enable the LDAP backend and it's working, so I
> don't think it's a matter of where in Tomcat is the .jar dropped.
>
> Any pointers? It'd be great if I can get TGTs and STs using REST from my
> AJAX framework -- not that I have _anything_ against the login form, I
> have read a lot about how important it is for our users to get to CAS
> properly, but the RESTful interface is there for a reason and I really
> want to use it :)
>
> Thanks in advance and keep up the good work,
>
> - --
> José Miguel Parrella Romero (bureado.com.ve)          PGP: 0×88D4B7DF
> Debian Developer                                Caracas, VE/Quito, EC
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQIcBAEBCAAGBQJL17tVAAoJEMAyQqmI1LffO80QAIgBraphmlMk18apUO7J8eYK
> NoBD9b259HDmcSE7Ih5asuDiFZN9mqvDtFA4CY2bnTY7mySEAgzRSKybbRr6FWzI
> hsvkLdGeJHxT6lvwQYgalI34IGPre3vMLLL+SK/yuXrhZ1lgDGroccJipopYqFT0
> 5UElZ+w3b4ofU78yh2LQPFg4hFMWk4a+0/EAox2L3M4SXIOU6A2xiM6lJxwIjoUf
> BPQg7kTQ7L7EO9Y0I4Nikg/l2GZ0mlRbYvhZpdQSPnbhj/BhCzYZdsIK1VnMA8Ay
> ClW2PDMLX/xOMgCeQzM+EqlcsbB20d/30IKYzsHK2A8vth2XTwM8O9Y+UsakpXht
> 7n0aaJdNl4l+t2jATBNtaqUitip9hV+QZ0pG5idRKfB6RJuBT4JgK+HGau3oYPl/
> ylKdo73LDtq+S/w7ubJZtLPp/l/uKdnqBTwUTDTTjvu/SmvgUbqqcXit433x9/jF
> Vo82d7qUpXKtTEzIvckgu1kQaRbRHOCub9nw4lnRwvXP8ct4yblGkmA9dCpWCUn2
> +gHBIGevKJKj0N3Tt2nvEZl9sbqHPUDRNjF4CRXrVHfC2kb/8af8C7RajTKFz2kK
> p7wCoVvdMhB5RcQi9ZfePmqLepB9D2micsd+f+Q00CSBWhRE03HVkrEUHvkL1unZ
> wGRIHIvTm+8JGRpJ/K3z
> =veWE
> -----END PGP SIGNATURE-----
>
> --
> 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
>

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