0

您好,我正在使用 maven、eclipse、tomcat 构建一个 Web 应用程序。解决了我的依赖后,我收到了这个错误。任何人都可以帮助如何解决这个问题?

cvc-complex-type.2.4.a: Invalid content was found starting with element 'http:basicAuthSupplier'.One of '{"http://cxf.apache.org/transports/http/configuration":client, "http://cxf.apache.org/transports/http/configuration":authorization, "http://cxf.apache.org/transports/http/configuration":proxyAuthorization,"http://cxf.apache.org/transports/http/configuration":tlsClientParameters, "http://cxf.apache.org/transports/http/configuration":authSupplier, "http://cxf.apache.org/transports/http/configuration":trustDecider}' is expected.  jaxws-web-context.xml 

这里是出现此错误的代码:

<http:conduit name="*.http-conduit">
    <http:basicAuthSupplier class="org.skyway.spring.util.webservice.cxf.HttpBasicAuthenticationSupplier" />
</http:conduit>
4

1 回答 1

1

错误消息列出了所有允许的 XML 元素。

正如您在列表中看到的,没有前缀basicAuthSupplier。请尝试authSupplier

<http:authSupplier class="org.skyway.spring.util.webservice.cxf.HttpBasicAuthenticationSupplier" />

有关的:

于 2013-08-30T07:23:26.963 回答