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;

Apereo Issues | nomit | 4 years ago
  1. 0

    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.

    Apereo Issues | 4 years ago | 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;
  2. 0

    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.

    Apereo Issues | 4 years ago | 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;
  3. 0

    [cas-dev] cas-management webapp authentication vs cas webapp authentication

    Google Groups | 1 year ago | sin
    java.lang.NoSuchMethodError: org.jasig.cas.logout.LogoutRequest.getService()Lorg/jasig/cas/logout/SingleLogoutService;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cleartk error in instance extraction

    Stack Overflow | 4 years ago | aryan
    java.lang.NoSuchMethodError: org.uimafit.util.JCasUtil.selectCovered(Lorg/apache/uima/jcas/JCas;Ljava/lang/Class; Lorg/apache/uima/cas/text/AnnotationFS;)Ljava/util/List;
  6. 0

    NoSuchMethodError aspectOf() at runtime from building with iajc

    Stack Overflow | 5 years ago | Cygnusx1
    java.lang.NoSuchMethodError: com.xxx.yyy.aop.aspect.ExceptionHandlerAspect.aspectOf()Lcom/xxx/yyy/aop/aspect/ExceptionHandlerAspect;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.jasig.cas.aspect.LogAspect.aspectOf()Lorg/jasig/cas/aspect/LogAspect;

      at org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy.afterPropertiesSet()
    2. Jasig CAS Core
      TicketGrantingTicketExpirationPolicy.afterPropertiesSet
      1. org.jasig.cas.ticket.support.TicketGrantingTicketExpirationPolicy.afterPropertiesSet(TicketGrantingTicketExpirationPolicy.java:1)
      1 frame
    3. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
      6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
      9 frames
    4. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
      2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
      2 frames
    5. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
      2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
      3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
      3 frames
    6. Jasig CAS Core
      SafeContextLoaderListener.contextInitialized
      1. org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeContextLoaderListener.java:75)
      1 frame
    7. Glassfish Core
      StandardContext$1.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
      2. org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
      3. org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
      3 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames