Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-656

NoSuchMethodError using shiro-core-1.4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • None
    • centos 7 using tomcat 8.5.x

    Description

      shiro.ini
      [main]

      1. for conf details see: http://shiro.apache.org/session-management.html
      2. before enabling this make sure shiro-ehcache is included in framework/build.gradle
      3. ehcacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
      1. NOTE: no credentialsMatcher set here, configured in Moqui conf file (moqui-conf.user-facade.password.@encrypt-hash-type)
        moquiRealm = org.moqui.impl.util.MoquiShiroRealm
      1. securityManager.cacheManager = $ehcacheManager
        securityManager.realms = $moquiRealm
         
        Call to setup security manager results in
        java.lang.NoSuchMethodError: org.apache.commons.beanutils.PropertyUtilsBean.addBeanIntrospector(Lorg/apache/commons/beanutils/BeanIntrospector;)V
        org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:127) ~[shiro-core-1.4.0.jar:1.4.0]
        org.apache.shiro.config.ReflectionBuilder.<init>(ReflectionBuilder.java:120) ~[shiro-core-1.4.0.jar:1.4.0]
        org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:64) ~[shiro-core-1.4.0.jar:1.4.0]
        org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:68) ~[shiro-core-1.4.0.jar:1.4.0]
        org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:73) ~[shiro-core-1.4.0.jar:1.4.0]
        org.moqui.impl.context.ExecutionContextFactoryImpl.getSecurityManager(ExecutionContextFactoryImpl.groovy:863) ~[moqui-framework-2.1.1.jar:2.1.1]
         
         

      Attachments

        1. build.gradle
          13 kB
          Stephen Agyepong
        2. catalina.out
          154 kB
          Stephen Agyepong

        Activity

          People

            Unassigned Unassigned
            agyepong17 Stephen Agyepong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: