错误提示信息如下:
Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:annotation'.
- schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could
not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
cvc-complex-type.2.4.c:The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:registry'.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:reference'.
解决方法:
基本上是library 加载不完整,或者版本不一致造成的。将项目的jdk版本、开发工具的jdk 版本设置成与本机安装的jdk版本一致。Build Path >>> configure bulid path... >>>libraries 下删除 JRE System Library ,重新 Add Library >> JRE System Library 选择正确的版本。一般选择 Workspace default JRE就行了。毕竟在开发工具中已经配置过JDK了,那个已经是你本机安装的JDK。这样很大概率能解决上面的问题。
备注:myeclipse2017 (64位),jdk1.8.0.162(64位)