关于dubbo创建服务和引用服务时,会报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...
2017-09-02 15:35
591 查看
在跟着做一个项目时,用到了dubbo,作为一个SOA架构的项目,分为表现层与服务层,自然地,为了各个层之间解耦合(或者最大限度地松耦合),我们使用了dubbo这样一个alibaba开源的分布式服务框架,该框架最大的特点就是利用分层的方式来架构,从服务模型的角度来看,Dubbo采用的是一种非常简单的模型,要么是提供方提供服务,要么是消费方消费服务,所以基于这一点可以抽象出服务提供方(Provider)和服务消费方(Consumer)两个角色。
但是在appplication-context-service.xml创建服务和在springmvc中引用服务时,我们设置了dubbo约束,但是仍然会报错,系统提示我们找不到dubbo:application、dubbo:registry、dubbo:reference等元素,这就说明系统没有找到dubbo.xsd,于是我手动添加dubbo.xsd
添加方法如下:
这里是手动导入dubbo.xsd的步骤,之前我在导入的时候,每次都会忘记第7步,即要在key的原有路径上加上dubbo.xsd。一定要记着!!!
这一步致使我一直报错,没有进展,郁闷了好久,后来查资料才改过来。最后maven update即可。千万注意!
但是在appplication-context-service.xml创建服务和在springmvc中引用服务时,我们设置了dubbo约束,但是仍然会报错,系统提示我们找不到dubbo:application、dubbo:registry、dubbo:reference等元素,这就说明系统没有找到dubbo.xsd,于是我手动添加dubbo.xsd
添加方法如下:
这里是手动导入dubbo.xsd的步骤,之前我在导入的时候,每次都会忘记第7步,即要在key的原有路径上加上dubbo.xsd。一定要记着!!!
这一步致使我一直报错,没有进展,郁闷了好久,后来查资料才改过来。最后maven update即可。千万注意!
相关文章推荐
- 关于dubbo创建服务和引用服务时,会报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 问题的解决
- 项目在引入Dubbo之后,XML文件报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration... 博客分类: FLEX CC++C#Fl
- dubbo 配置完出现cvc-complex-type.2.4.c: The matching wildcard is strict, but no declara
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for elemen
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- xml报错“cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element”
- Eclipse XML报错 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be fou
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration的解决
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for elemen
- cvc-complex-type.2.4.c:The matching wildcard is strict,but no declaration can be found for element '
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- xml bug之cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...