认真的咸鱼 2021-11-10 11:23 采纳率: 50%
浏览 39
已结题

springmvc项目使用tomacat启动后报错


十一月 10, 2021 11:16:08 上午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2021-11-10 11:16:08,865 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/lijiarong/IdeaProjects/sc_generaledition/target/ROOT/WEB-INF/classes/spring-context-jedis.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [com.fr.third.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
Caused by: org.springframework.beans.FatalBeanException: Class [com.fr.third.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface





org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/lijiarong/IdeaProjects/sc_generaledition/target/ROOT/WEB-INF/classes/spring-context-jedis.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [com.fr.third.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

  • 写回答

2条回答 默认 最新

  • a1767028198 2021-11-10 11:30
    关注

    你这个xml的头,有点问题吧

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 11月20日
  • 已采纳回答 11月12日
  • 创建了问题 11月10日

悬赏问题

  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”