title: cxf webservice in standalone spring application
body: <p>I try to implement a webservice in an existing standalone spring application.</p>
  
  <p>I configured spring:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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:util="http://www.springframework.org/schema/util"
         xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd
  http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"&gt;
  
  
      &lt;import resource="classpath:beans/webservice.xml" /&gt;
  </code></pre>
  
  <p>....</p>
  
  <p>webservice.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:jaxws="http://cxf.apache.org/jaxws"
     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"&gt;
  
  
  &lt;bean id="CheckService" class="test.ws.CheckService"&gt;
  &lt;/bean&gt;
  
  &lt;jaxws:endpoint 
      id="checkService" 
      implementor="#CheckService"
      address="http://localhost:9000/CheckService" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I made the configuration according to official documentation and samples from books. I get exception:</p>
  
  <pre><code>03/11/2010 09:34:12 WARN Ignored XML validation warning
  org.xml.sax.SAXParseException: 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 &lt;xsd:schema&gt;.
          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
          at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
  </code></pre>
  
  <p>...</p>
  
  <p><a href="http://cxf.apache.org/schemas/jaxws.xsd" rel="nofollow">http://cxf.apache.org/schemas/jaxws.xsd</a> is accessible from browser and I think it is well formed (official xsd).</p>
  
  <p>I suspect that the problem is not related to cxf rather swing configuration related.</p>
  
  <p>Thanks, </p>
  
  <p>Hubidubi</p>