ssm配置shiro抱错,Error creating bean with name 'shiroFilter' defined in class path resource application*

报错:

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0' 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]: Cannot resolve reference to bean 'myRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myRealm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'managerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'managerDao' defined in file [F:\Java\apache-tomcat-7.0.63-Eclipse\webapps\uucms\WEB-INF\classes\com\uucms\dao\ManagerDao.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [F:\Java\apache-tomcat-7.0.63-Eclipse\webapps\uucms\WEB-INF\classes\com\uucms\mappers\CategoryMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'CategoryResult'.  Cause: java.lang.ClassNotFoundException: Cannot find class: CategoryResult
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)
    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:615)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:465)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:434)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   ..................................................

我的applicationContext.xml


    
             class="com.alibaba.druid.pool.DruidDataSource">
        
        
        
    

    
    
        
        
        
        
        
    

    
    
        
        
    

    
             class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
        
    

    
    
      
    
    
      
          
    
 
    
    
      
          
        
          
         
          
          
            
                /login=anon
                /admin/**=authc
            
 
        

    
 
    
      
      
    
    
      
            
          
   
 
  
      
     
         
         
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
       
 
   
 
  
     
     
                    expression="execution(* com.uucms.service.*.*(..))" />  
         
   
 
    
   
    

spring-mvc.xml

...........
    
    
    
    

    
             class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        
        
    

    
             class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
        
          
        

    

    
    
 

web.xml



  aa
 
    index.jsp
 

 
    shiroFilter
    org.springframework.web.filter.DelegatingFilterProxy
   
      targetFilterLifecycle
      true
   

 

 
    shiroFilter
    /*
 

 
    contextConfigLocation
    classpath:applicationContext.xml
 

 
    encodingFilter
    org.springframework.web.filter.CharacterEncodingFilter
   
      encoding
      UTF-8
   

 

 
    encodingFilter
    /*
 

 
    org.springframework.web.context.ContextLoaderListener
 

 
    com.uucms.service.impl.InitComponent
 

 
    springMVC
    org.springframework.web.servlet.DispatcherServlet
   
      contextConfigLocation
      classpath:spring-mvc.xml
   

    1
 

 
    springMVC
    *.do
 

 
    springMVC
    *.html
 

 

请各位大佬帮忙看一下问题,给点建议,谢谢!

你可能感兴趣的:(错误)