Morning all, Between last night and today, my cxf-servlet.xml has developed a problem, without me changing anything. Bear with me, I know it sounds weird :-)
It looks like this: <?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:jaxws="http://cxf.apache.org/jaxws" xmlns:soap="http://cxf.apache.org/bindings/soap" xmlns:funcnet="http://cathdb.info/FuncNet_1_0/" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> <jaxws:endpoint id="FrontEndService" implementor="info.cathdb.funcnet.impl.FrontEndServiceProviderFacade" endpointName="funcnet:FrontEndPort" serviceName="funcnet:FrontEndService" address="/FrontEndService" wsdlLocation="WEB-INF/wsdl/Services.wsdl"> </jaxws:endpoint> </beans> Today, Eclipse has slapped a big red cross on the jaxws:endpoint entry (at the wsdlLocation line but I think this is arbitrary) which says: Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://cxf.apache.org/ schemas/jaxws.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 'jaxws:endpoint'. Now, I can go to http://cxf.apache.org/schemas/jaxws.xsd in my browser and it's fine. But when I highlight this URL in the xsi:schemaLocation in Eclipse, and hit F3 for go-to-definition, I see: Not Found The requested URL /schemas/jaxws.xsd" was not found on this server. Apache/2.2.9 (Unix) Server at cxf.apache.org Port 80 Note the spurious double-quote mark at the end of the URL. The same thing has happened in another project as well, exactly the same error in cxf-servlet.xml, but all the other XML files in my project are unaffected. I've upgraded to CXF 2.1.4 but this has made no difference. I've tried all the usual Eclipse tricks like cleaning and rebuilding all my projects, closing and re-opening them, cutting the endpoint definition out and pasting it back in again, and quitting and restarting Eclipse, but to no avail. Any ideas? Thanks in advance, Andrew. -- :: http://biotext.org.uk/ ::
