org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grantingTicketExpirationPolicy' defined in ServletContext resource [/WEB-INF/spring-configuration/ticketExpirationPolicies.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect;

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I'm using cas 3.5.0 with the maven overlay method and have added config for some modules as supplied in the dowloaded cas server jar with the following additions to my overlay pom <dependencies> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.5.0</version> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-webapp</artifactId> <version>${cas.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-core</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-integration-ehcache</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-openid</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-extension-clearpass</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> </dependencies> I've not changed anything and tried a build and deploy to my VMware vFabric tc Server Developer Edition 2.6.1.RELEASE but get the below error (my WEB-INF/lib listing in below the error..) SafeContextLoaderListener: The Spring ContextLoaderListener we wrap threw on contextInitialized. But for our having caught this error, the web application context would not have initialized. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grantingTicketExpirationPolicy' defined in ServletContext resource [/WEB-INF/spring-configuration/ticketExpirationPolicies.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy.afterPropertiesSet(TicketGrantingTicketExpirationPolicy.java:1) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 21 more activation-1.1.jar antlr-2.7.7.jar aopalliance-1.0.jar aspectjrt-1.6.10.jar aspectjweaver-1.6.10.jar cas-client-core-3.2.1.jar cas-server-core-3.5.0.jar cas-server-extension-clearpass-3.5.0.jar cas-server-integration-ehcache-3.5.0.jar cas-server-support-ldap-3.5.0.jar cas-server-support-openid-3.5.0.jar commons-codec-1.4.jar commons-collections-3.2.1.jar commons-io-2.0.jar commons-jexl-1.1.jar commons-lang-2.4.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-1.1.jar dom4j-1.6.1.jar ehcache-core-2.5.0.jar guice-2.0.jar hibernate-commons-annotations-4.0.1.Final.jar hibernate-core-4.1.0.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.jar hibernate-validator-4.2.0.Final.jar httpclient-4.1.3.jar httpcore-4.1.4.jar inspektr-audit-1.0.7.GA.jar inspektr-common-1.0.7.GA.jar inspektr-error-1.0.7.GA.jar inspektr-support-spring-1.0.7.GA.jar javassist-3.15.0-GA.jar javassist-3.7.ga.jar jaxb-api-2.1.jar jaxb-impl-2.1.12.jar jboss-logging-3.1.0.CR2.jar jboss-transaction-api_1.1_spec-1.0.0.Final.jar jcip-annotations-1.0.jar jcl-over-slf4j-1.5.8.jar jdom-1.0.jar joda-time-2.1.jar jstl-1.1.2.jar junit-3.8.1.jar log4j-1.2.15.jar ognl-2.7.3.jar openid4java-nodeps-0.9.6.jar opensaml-1.1b.jar perf4j-0.9.14-log4jonly.jar person-directory-api-1.5.0-RC6.jar person-directory-impl-1.5.0-RC6.jar quartz-1.6.1.jar slf4j-api-1.5.8.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.5.8.jar spring-aop-3.1.1.RELEASE.jar spring-asm-3.1.1.RELEASE.jar spring-beans-3.1.1.RELEASE.jar spring-binding-2.3.0.RELEASE.jar spring-context-3.1.1.RELEASE.jar spring-context-support-3.1.1.RELEASE.jar spring-core-3.1.1.RELEASE.jar spring-expression-3.1.1.RELEASE.jar spring-jdbc-3.1.1.RELEASE.jar spring-js-2.3.0.RELEASE.jar spring-js-resources-2.3.0.RELEASE.jar spring-ldap-core-1.3.1.RELEASE.jar spring-ldap-core-tiger-1.3.1.RELEASE.jar spring-orm-3.1.1.RELEASE.jar spring-security-cas-3.1.0.RELEASE.jar spring-security-config-3.1.0.RELEASE.jar spring-security-core-3.1.0.RELEASE.jar spring-security-crypto-3.1.0.RELEASE.jar spring-security-web-3.1.0.RELEASE.jar spring-tx-3.1.1.RELEASE.jar spring-web-3.1.1.RELEASE.jar spring-webflow-2.3.0.RELEASE.jar spring-webmvc-3.1.1.RELEASE.jar standard-1.1.2.jar stax-api-1.0-2.jar validation-api-1.0.0.GA.jar xml-apis-1.0.b2.jar xmldsig-1.0.jar xmlsec-1.4.3.jar I've deployed the same war to a standalone tomcat 7.0.27 and this error does not occur.
    via by nomit,
  • I'm using cas 3.5.0 with the maven overlay method and have added config for some modules as supplied in the dowloaded cas server jar with the following additions to my overlay pom <dependencies> <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache-core</artifactId> <version>2.5.0</version> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-webapp</artifactId> <version>${cas.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-core</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-integration-ehcache</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-support-openid</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.jasig.cas</groupId> <artifactId>cas-server-extension-clearpass</artifactId> <version>${cas.version}</version> <scope>runtime</scope> </dependency> </dependencies> I've not changed anything and tried a build and deploy to my VMware vFabric tc Server Developer Edition 2.6.1.RELEASE but get the below error (my WEB-INF/lib listing in below the error..) SafeContextLoaderListener: The Spring ContextLoaderListener we wrap threw on contextInitialized. But for our having caught this error, the web application context would not have initialized. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grantingTicketExpirationPolicy' defined in ServletContext resource [/WEB-INF/spring-configuration/ticketExpirationPolicies.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy.afterPropertiesSet(TicketGrantingTicketExpirationPolicy.java:1) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 21 more activation-1.1.jar antlr-2.7.7.jar aopalliance-1.0.jar aspectjrt-1.6.10.jar aspectjweaver-1.6.10.jar cas-client-core-3.2.1.jar cas-server-core-3.5.0.jar cas-server-extension-clearpass-3.5.0.jar cas-server-integration-ehcache-3.5.0.jar cas-server-support-ldap-3.5.0.jar cas-server-support-openid-3.5.0.jar commons-codec-1.4.jar commons-collections-3.2.1.jar commons-io-2.0.jar commons-jexl-1.1.jar commons-lang-2.4.jar commons-lang-2.5.jar commons-logging-1.1.1.jar commons-logging-1.1.jar dom4j-1.6.1.jar ehcache-core-2.5.0.jar guice-2.0.jar hibernate-commons-annotations-4.0.1.Final.jar hibernate-core-4.1.0.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.jar hibernate-validator-4.2.0.Final.jar httpclient-4.1.3.jar httpcore-4.1.4.jar inspektr-audit-1.0.7.GA.jar inspektr-common-1.0.7.GA.jar inspektr-error-1.0.7.GA.jar inspektr-support-spring-1.0.7.GA.jar javassist-3.15.0-GA.jar javassist-3.7.ga.jar jaxb-api-2.1.jar jaxb-impl-2.1.12.jar jboss-logging-3.1.0.CR2.jar jboss-transaction-api_1.1_spec-1.0.0.Final.jar jcip-annotations-1.0.jar jcl-over-slf4j-1.5.8.jar jdom-1.0.jar joda-time-2.1.jar jstl-1.1.2.jar junit-3.8.1.jar log4j-1.2.15.jar ognl-2.7.3.jar openid4java-nodeps-0.9.6.jar opensaml-1.1b.jar perf4j-0.9.14-log4jonly.jar person-directory-api-1.5.0-RC6.jar person-directory-impl-1.5.0-RC6.jar quartz-1.6.1.jar slf4j-api-1.5.8.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.5.8.jar spring-aop-3.1.1.RELEASE.jar spring-asm-3.1.1.RELEASE.jar spring-beans-3.1.1.RELEASE.jar spring-binding-2.3.0.RELEASE.jar spring-context-3.1.1.RELEASE.jar spring-context-support-3.1.1.RELEASE.jar spring-core-3.1.1.RELEASE.jar spring-expression-3.1.1.RELEASE.jar spring-jdbc-3.1.1.RELEASE.jar spring-js-2.3.0.RELEASE.jar spring-js-resources-2.3.0.RELEASE.jar spring-ldap-core-1.3.1.RELEASE.jar spring-ldap-core-tiger-1.3.1.RELEASE.jar spring-orm-3.1.1.RELEASE.jar spring-security-cas-3.1.0.RELEASE.jar spring-security-config-3.1.0.RELEASE.jar spring-security-core-3.1.0.RELEASE.jar spring-security-crypto-3.1.0.RELEASE.jar spring-security-web-3.1.0.RELEASE.jar spring-tx-3.1.1.RELEASE.jar spring-web-3.1.1.RELEASE.jar spring-webflow-2.3.0.RELEASE.jar spring-webmvc-3.1.1.RELEASE.jar standard-1.1.2.jar stax-api-1.0-2.jar validation-api-1.0.0.GA.jar xml-apis-1.0.b2.jar xmldsig-1.0.jar xmlsec-1.4.3.jar I've deployed the same war to a standalone tomcat 7.0.27 and this error does not occur.
    via by nomit,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grantingTicketExpirationPolicy' defined in ServletContext resource [/WEB-INF/spring-configuration/ticketExpirationPolicies.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoSuchMethodError: org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect; at org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy.afterPropertiesSet(TicketGrantingTicketExpirationPolicy.java:1) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452) ... 21 more
    No Bugmate found.