java遇到的错误

来源:互联网 发布:微信授权登录demo源码 编辑:程序博客网 时间:2024/04/30 00:02
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可能是配置问题或者调用方式问题