hi am building a web application using maven,eclipse,tomcat.
after resolving my dependency, am getting this error. anyone can help how to solve this?

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   

here the code where am getting this error:

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

Not a Maven error, it is your spring configuration. Ages since I did it, but do you have jaxws-web-context.xml in resources/jaxws/?

yes i have it in resources.

That error means that your XML file doesn't conform to the XML schema specified for that particular file. So basically it's trying to say that http:basicAuthSupplier is not a valid child for the element http:conduit. I haven't worked on CXF but you should have a look at this CXF wiki page or look at the XSD schema to check the valid combination.

commented: Well done :) +15

Problem solved. I changes it to <http:authSupplier class="org.skyway.spring.util.webservice.cxf.HttpBasicAuthenticationSupplier" />.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.