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没配置好吧

    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?