SpringMVC+Shiro集成出现Unable to acquire AES algorithm. This is required to function.
来源:互联网 发布:天龙八部游戏 知乎 编辑:程序博客网 时间:2024/06/04 18:01
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shiro.web.mgt.DefaultWebSecurityManager]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to acquire AES algorithm. This is required to function.
八月 06, 2017 12:54:47 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shiro.web.mgt.DefaultWebSecurityManager]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to acquire AES algorithm. This is required to function.
八月 06, 2017 12:54:47 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.shiro.web.mgt.DefaultWebSecurityManager]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Unable to acquire AES algorithm. This is required to function.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
遇到这个问题,最初以后是jar包冲突问题,之后重新创建了一个maven项目,结果还是出现上述问题:
经过各种尝试无果,就想过了是不是eclipse中配置jdk跟jre的原因,因为在安装maven的时候,把eclipse中java 的jre跟成了jdk,现在改回来,错误消失。
如图:
阅读全文
1 0
- SpringMVC+Shiro集成出现Unable to acquire AES algorithm. This is required to function.
- iOS开发 提交应用出现this bundle is invalid. armv7s are required to include armv7 architecture
- Unable to acquire account data from realm [com.hongao.shiro.chapterOne.MyRealm2@2b80d80f]. The [org
- Unable to load graphics library [GDI+ is required]
- Unable to acquire Oracle environment handle
- cx_Oracle: unable to acquire oracle environment handle
- Unable to acquire PluginConverter service during generation
- Unable to acquire Oracle environment handle
- Full authentication is required to access this resource
- Full authentication is required to access this resource Unauthorized
- Python安装库的时候出现Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
- Python3.4安装scrapy库的时候出现Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat)
- The required Server component failed to start so Tomcat is unable to start
- The required Server component failed to start so Tomcat is unable to start问题解决
- The required Server component failed to start so Tomcat is unable to start问题解决
- The required Server component failed to start so Tomcat is unable to start.
- The required Servercomponent failed to start so Tomcat is unable to start问题解决
- Domain is currently unable to handle this request (open_basedir)
- android开发之Intent传参
- springboot处理静态资源文件
- bug解决心得
- 归并排序
- Windows下MySQL下载安装、配置与使用
- SpringMVC+Shiro集成出现Unable to acquire AES algorithm. This is required to function.
- js解析url查询参数
- 最全的机器学习中的优化算法介绍
- 15.数据库对象----存储过程(procedure)
- Ubuntu搭建BeegFS多节点集群
- Service的初步理解
- 虚继承和虚函数的相关问题浅析
- MongoDB(java操作)
- Plus One【加一】【容易】