概述
Acegi中jdk1。5版本会出现 cache.put(element); unhandled exception type cacheException 在1。4版本中没有问题 但是出现这样的错误Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contactManagerSecurity' defined in ServletContext resource [/WEB-INF/applicationContext-basic.xml]: Can't resolve reference to bean 'authenticationManager' while setting property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Can't resolve reference to bean 'daoAuthenticationProvider' while setting property 'providers[0]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Can't resolve reference to bean 'userCache' while setting property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [net.sf.ehcache.Cache] to required type [net.sf.ehcache.Ehcache] for property 'cache'] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Can't resolve reference to bean 'daoAuthenticationProvider' while setting property 'providers[0]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Can't resolve reference to bean 'userCache' while setting property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [net.sf.ehcache.Cache] to required type [net.sf.ehcache.Ehcache] for property 'cache'] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Can't resolve reference to bean 'userCache' while setting property 'userCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [net.sf.ehcache.Cache] to required type [net.sf.ehcache.Ehcache] for property 'cache'] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCache' defined in ServletContext resource [/WEB-INF/applicationContext-security-acegi.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [net.sf.ehcache.Cache] to required type [net.sf.ehcache.Ehcache] for property 'cache'] PropertyAccessExceptionsException (1 errors)却还能正常使用,不知道为什么 好像是配置文件冲突了 2、 Servlet /Spring-WebMvc threw load() exception org.xml.sax.SAXParseException: Document root element " beans", must match DOCTYPE root " null". jar包的冲突,spring-1.2.6.jar和spring.jar出现在一个war的目录中 spring的jar包版本要2以上则没有问题。
最后
以上就是谨慎未来为你收集整理的java遇到的错误的全部内容,希望文章能够帮你解决java遇到的错误所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复