我是靠谱客的博主 谨慎未来,最近开发中收集的这篇文章主要介绍java遇到的错误,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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以上则没有问题。

 
3 我的jsp页面在运行时出现这个错误:     org.apache.jasper.JasperException:   The   absolute   uri:   http://java.sun.com/jsp/jsp1/core   cannot   be   resolved   in   either   web.xml   or   the   jar   files   deployed   with   this   application  确保在你的web-inf/lib下有     这2个包:         jstl.jar     standard.jar         还有,如果是jstl   1.0版本的话     应该是     <%@   taglib   prefix   =   "c"   uri   =   "http://java.sun.com/jstl/core"   %>     如果是1.1的话     <%@   taglib   prefix   =   "c"   uri   =   "http://java.sun.com/jsp/jstl/core"   %>  4、 Cannot find ActionMappings or ActionFormBeans collection、没有找到对应的 Action可能是配置问题或者调用方式问题

最后

以上就是谨慎未来为你收集整理的java遇到的错误的全部内容,希望文章能够帮你解决java遇到的错误所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部