Thanks Pedro. This worked for me.
On 10/19/12 12:33 PM, "Pedro Costa" <[email protected]> wrote: >Hi Tim > >I have seen this one, the cglib-full jar was being included in >the packaged war for some reason. you need to remove it. > >I used: > ><overlays> > <overlay> > ><groupId>org.jasig.cas</groupId> > ><artifactId>cas-server-webapp</artifactId> > <excludes> > <!-- >This breaks the REST API in tomcat --> > ><exclude>WEB-INF/lib/cglib-full-*.jar</exclude> > </excludes> > </overlay> > </overlays> > >in the war plugin configuration > >Cheers >Pedro > >2012/10/19 Tim Robinson <[email protected]>: >> Attached a sanitized and mvn clean version of my overlay project. >>Thanks >> for taking a look. >> >> >> Tim >> >> On 10/18/12 11:39 PM, "Scott Battaglia" <[email protected]> >>wrote: >> >>> >>> >>> >>>That's a new one. Do you have a Maven overlay project you can zip up >>>and >>>include here? I'll try it out if you do (remove any secret passwords, >>>etc. :-)) >>> >>> >>>On Thu, Oct 18, 2012 at 11:32 AM, Tim Robinson >>><[email protected]> wrote: >>> >>>I am having trouble activating the RESTful API on CAS 3.5.1. >>> >>> >>>Using the WAR overlay method to package CAS I added the following to >>>pom.xml: >>> >>> >>> <dependency> >>> <groupId>org.jasig.cas</groupId> >>> <artifactId>cas-server-integration-restlet</artifactId> >>> <version>${cas.version}</version> >>> <type>jar</type> >>> <exclusions> >>> <exclusion> >>> <groupId>org.springframework</groupId> >>> <artifactId>spring-web</artifactId> >>> </exclusion> >>> <exclusion> >>> <groupId>javax.servlet</groupId> >>> <artifactId>servlet-api</artifactId> >>> </exclusion> >>> </exclusions> >>> </dependency> >>> >>> >>> >>> >>>Deploying the produced WAR on Tomcat 6 throws the following exception: >>> >>> >>>2012-10-18 11:02:54,257 ERROR >>>[com.noelios.restlet.ext.spring.RestletFrameworkServlet] - <Context >>>initialization failed> >>>org.springframework.beans.factory.BeanCreationException: Error creating >>>bean with name 'root' defined in ServletContext resource >>>[/WEB-INF/restlet-servlet.xml]: Cannot create inner bean >>>'org.restlet.ext.spring.SpringFinder#68dd6317' of type >>>[org.restlet.ext.spring.SpringFinder] >>> while setting bean property 'attachments' with key [TypedStringValue: >>>value [/tickets], target type [null]]; nested exception is >>>org.springframework.beans.factory.BeanCreationException: Error creating >>>bean with name 'org.restlet.ext.spring.SpringFinder#68dd6317' >>> defined in ServletContext resource [/WEB-INF/restlet-servlet.xml]: >>>Instantiation of bean failed; nested exception is >>>java.lang.StackOverflowError >>>at >>>org.springframework.beans.factory.support.BeanDefinitionValueResolver.re >>>so >>>lveInnerBean(BeanDefinitionValueResolver.java:281) >>>at >>>org.springframework.beans.factory.support.BeanDefinitionValueResolver.re >>>so >>>lveValueIfNecessary(BeanDefinitionValueResolver.java:120) >>>at >>>org.springframework.beans.factory.support.BeanDefinitionValueResolver.re >>>so >>>lveManagedMap(BeanDefinitionValueResolver.java:378) >>> >>> >>> >>>Has anyone seen this before? Perhaps a dependency/version issue? >>>Playing with CAS is my first foray into Java dev so any help would be >>>appreciated. >>> >>> >>>Thanks. >>>Tim >>> >>> >>> >>> >>> >>> >>> >>>-- >>>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 >> >> >> -- >> 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
