dubbo实战---lineNumber: 13;columnNumber: 82; cvc-elt.1: Cannot find the declaration of element 'beans'
来源:互联网 发布:java字符流写文件 编辑:程序博客网 时间:2024/06/06 13:58
将dubbo服务发布的时候,报了如下错误:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line 13 in XML document from URL[jar:file:/ServiceJars/dub-service-demo.jar!/META-INF/spring/dubbo-demo-provider.xml]is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13;columnNumber: 82; cvc-elt.1: Cannot find the declaration of element 'beans'
错误原因:
因为服务器没有连接到外网,当不下来需要的jar包.
解决方法:
将dubbo的provider的配置文件的头文件中的路径改为classpath:的形式
之前的头文件:
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsdhttp://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">
修改后的头文件:
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns="http://www.springframework.org/schema/beans"xsi:schemaLocation="http://www.springframework.org/schema/beans classpath:/org/springframework/beans/factory/xml/spring-beans-2.0.xsdhttp://code.alibabatech.com/schema/dubbo classpath:/META-INF/dubbo.xsd">
这样发布后就不会报错了..
阅读全文
1 0
- dubbo实战---lineNumber: 13;columnNumber: 82; cvc-elt.1: Cannot find the declaration of element 'beans'
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring cvc-elt.1: Cannot find the declaration of element 'beans'.
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- spring cvc-elt.1: Cannot find the declaration of element 'beans'解决办法
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- maven项目报错:cvc-elt.1: Cannot find the declaration of element 'beans'.
- spring cvc-elt.1: Cannot find the declaration of element 'beans'解决办法
- spring项目启动报错 cvc-elt.1: Cannot find the declaration of element 'beans'.
- mysql 基本操作 存储过程和函数详解 (第四章)
- vb.net 教程 8-3 数据库操作1
- ORA-28000: the account is locked 解决方法
- 引用类型和基本数据类型的传参问题
- bzoj2124 等差子序列 (树状数组 维护hash值)
- dubbo实战---lineNumber: 13;columnNumber: 82; cvc-elt.1: Cannot find the declaration of element 'beans'
- 概率论-最大似然估计
- HashSet添加对象去重
- 如何选择桌面云?
- Java多线程之Callable、Future和FutureTask
- aliyun,gdy云主机单双网卡/双IP/单双网关,同时上内外网新方案和总结
- 欢迎使用CSDN-markdown编辑器
- 用递归输出n的阶乘
- 实训第四天