dubbo环境搭建报错

听水Ts 发布于 2016/04/24 19:23
阅读 739
收藏 0

有人遇到这个问题吗?弄了一天了,还是一直报错

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.

    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
           http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">

    <dubbo:application name="dubbo-rets" />
    <dubbo:registry address="zookeeper://127.0.0.1:2181" />
    <dubbo:reference id="userService" interface="com.huc.service.impl.UserServiceImpl" />
</beans>
加载中
0
螃蟹大叔
螃蟹大叔
xml配置是不是有特殊字符呀什么的呀
0
飞扬的梦
飞扬的梦
dubbo包没有引入?
0
z
zhaozhiwen
应该是dubbo相关jar包没有引入,或导入到工程运行环境下所导致的
返回顶部
顶部