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可能是配置问题或者调用方式问题
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值