当前位置: 首页 > news >正文

nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException

记一次启动tomcat时,遇到的无法加载[spring/dubbo-service.xml][spring/spring-context.xml]问题。

今天在生产环境部署一个dubbo项目,遇到如下报错:

2022-03-23 17:12:24.553 ERROR TraceId[] From[] To[] org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [dubbo-service.xml] Offending resource: class path resource [spring/spring-context.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [dubbo-consumer.xml] Offending resource: class path resource [spring/dubbo-service.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from class path resource [spring/dubbo-consumer.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://code.alibabatech.com/schema/dubbo/dubbo.xsd; lineNumber: 6; columnNumber: 68; TargetNamespace.1: Expecting namespace 'http://code.alibabatech.com/schema/dubbo', but the target namespace of the schema document is 'http://dubbo.apache.org/schema/dubbo'. at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)

Expecting namespace ‘http://code.alibabatech.com/schema/dubbo’, but the target namespace of the schema document is ‘http://dubbo.apache.org/schema/dubbo’.

问题原因:

dubbo 版本冲突!!!

找到lib目录里的dubbo包,删掉低版本的即可,问题解决

http://www.jsqmd.com/news/222006/

相关文章:

  • Nginx 请求转发配置指南
  • Thinkphp-Laravel大学校园后勤移动报修系统 小程序app
  • 1小时打造简易SQL注入检测工具原型
  • Vue3-06 setup() 函数及返回值
  • Undertow CVE-2025-12543
  • Nginx 安装及配置教程(Windows)【安装】
  • 成本优化:用Llama Factory实现高效GPU资源利用
  • 华为OD机试真题双机位C卷【打印机队列】 C语言实现
  • AI如何提升FORTIFY代码扫描效率?
  • yyt0618.15-2019详细解读
  • 【ai搜索】谷歌搜索与数眼智能联网搜索多角度对比
  • AI智能体可能被黑客攻击的 5 种方式(以及如何防范每一种攻击)
  • Thinkphp-Laravel本科生优秀作业交流网站vue
  • Nacos Namespaces未授权访问漏洞的防御策略
  • 模块化多电平变换器MMC(交流380V-直流800V整流)仿真,动稳态性能良好,附带仿真介绍文...
  • 电商大促期间:普罗米修斯监控实战全记录
  • 移远5G-A王炸模组上线!AI+Wi-Fi 8+卫星通信,三重Buff叠满
  • Thinkphp-Laravelvue药品招标采购系统的设计与实现
  • 快速理解 ImportError: libcudart.so.11.0 的定位与修复流程
  • 陪诊小程序开发运营全解析:技术架构+落地逻辑+合规要点
  • 基于正则化极限学习机的数据回归预测算法matlab实现
  • 解决问题 —— 用方程解决复杂应用题专项
  • 高速ADC FMC HPC采集卡ADS54J60,16bit 4通道,原理图PCB代码,F...
  • MATLAB2024B云端体验:免安装即时试用方案
  • python之asynccontextmanager学习
  • Thinkphp-Laravel北京地铁票务APP小程序
  • “入职背景调查”,构建职场信任的第一道防线
  • 更弱智的算法学习 day24
  • 最近在折腾西门子200PLC和施耐德ATV610变频器的Modbus通讯,发现这俩设备配合起来干活是真方便。直接上干货,咱们从最基础的通信配置开始说
  • Thinkphp-Laravel+uniapp微信小程序的毕业论文选题系统设计与实现