-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Scott Battaglia escribió: > 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.
You're right. My experience with Java was NIL before I started to get interested in CAS. Just for the record, in my case, running Apache Tomcat, I needed to do the following to get RESTful services in CAS: 1. Get latest stable release from restlet.org http://www.restlet.org/downloads/ and from the release, the following jars under lib/: org.restlet.jar org.restlet.ext.spring_2.5.jar com.noelios.restlet.jar com.noelios.restlet.ext.spring_2.5.jar com.noelios.restlet.ext.servlet_2.5.jar 2. Latest stable jars from CGlib http://sourceforge.net/projects/cglib/files/ 3. Latest stable jars from ASM/OW2 http://forge.ow2.org/projects/asm/ (all these jars should go inside the WEB-INF/lib path in Tomcat as well as the cas-server-integration-restlet jar) 4. Add the following snippet to web.xml inside the webapps/ (as stated in the wiki) <servlet> <servlet-name>restlet</servlet-name> <servlet-class>com.noelios.restlet.ext.spring.RestletFrameworkServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>restlet</servlet-name> <url-pattern>/v1/*</url-pattern> </servlet-mapping> I can get TGTs and STs now using the RESTful API, e.g., with the example Python client: 201 Created http://localhost:8080/cas/v1/tickets/TGT-3-D5qjM5oeQtMYpZ1FRUiArgLvT6Iecf4a1Yc9gqCxXJptFGVVBq-cas 200 OK service: http://foo.bar/baz st : ST-2-VHSHBfaPRCBpcpCetsas-cas HTH, - -- 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/ iQIcBAEBCAAGBQJL4p3AAAoJEMAyQqmI1Lff+KUQAKmpEEiwIaPG5DJLsNd3g/+7 wlVgoQVHcUCF4aNaOpiCysvrLpIw/LjZCCruDy9GJE6oDRGIjqTu1qHxcu+Jm8hT KwxDeGOyztz9/bnSq0atsrI+1/qHTK4lnDajkhgOoFAtqEKuIJnmtrM2gKb4V076 nvVGU/Ht9RHS4gmszo1tN+2KlDbjYdoZwmiWMLWlKWdBcuk+DJu6Bn5vEV593bCJ imyo7gR63UQLkQGFXzu1HQMqOyWshqaWc9iMwL/mm6bt4ObZ6cEonF6x78qVwZPL xbD5HJjgYiRZPqV5Ps2nHXosMeIICbABQ0PJcPIhUVZt3/y999ImV80CF3V4zSRF IH1B3RElBw3W1lQvsE8WTXlhta55S+IY/h3iDBPdecSTVZlNLtrU14rJK3i7dsCL 2v2OS52hzBdEo6oGbDwxFzqXzVnbifGZBUJstF8kvDDuQzrFVVjzuuG52CtyPxM5 JOOkrEuFsQMItOzKMI9pVV0R8udisSwdiQkYSZVcq8pWO9E7mqcxKqqm3SaoyF7y RhliCCMYLZVAKvqSPY/9XLcyXA4tKensXjChR1hmv3kAyNMXd+WsnE4KhAtl8alS 83rnc7TZHoNDXfSCECF6VRdcZCrdb5JAyrvK8Fw/Y8F4olzFSQbgQt0SkuhfG3Pb 6NuT4G0w60S1F1sjOAty =s5He -----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
