qq_30513665 2016-05-16 03:21 采纳率: 0%
浏览 2747

maven 项目 启动 jetty:run 报错

第一次使用,毫无头绪

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[WARNING] Failed startup of context o.m.j.p.JettyWebAppContext{/home,file:/E:/workspace/maven.1463123350245/WHT/WHT-Main/src/main/webapp/},file:/E:/workspace/maven.1463123350245/WHT/WHT-Main/src/main/webapp/
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/spring-config-shiro.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 [spring/spring-config-shiro.xml]: Cannot resolve reference to bean 'userRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher] for bean with name 'credentialsMatcher' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher] for bean with name 'credentialsMatcher' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.credentials.RetryLimitCredentialsMatcher
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [cn.whtedu.apache.shiro.realm.UserRealm] for bean with name 'userRealm' defined in class path resource [spring/spring-config-shiro.xml]; nested exception is java.lang.ClassNotFoundException: cn.whtedu.apache.shiro.realm.UserRealm

  • 写回答

3条回答 默认 最新

  • ZhangPan18 2016-05-16 03:28
    关注

    应该是log4j没配置好吧

    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突