title: CXF: corrupted schemaLocation in xsd:import
body: <p>I'm deploying a SOAP webservice using Apache CXF on different servers. The WSDL contains this line:</p>
  
  <pre><code>&lt;xsd:import 
  namespace="http://schemas.xxx.net/xsd/gameserver/types/types_v1_0"
  schemaLocation="types_v1_0.xsd"&gt;
  </code></pre>
  
  <p>when a client accesses the WSDL, the <code>schemaLocation</code> is completed to form an absolute path:</p>
  
  <pre><code>&lt;xsd:import 
  namespace="http://schemas.xxx.net/xsd/gameserver/type/types_v1_0" 
  schemaLocation="http://moss.xxx.local:8080/gameserver/webservices/base_v1?xsd=types_v1_0.xsd"&gt;
  </code></pre>
  
  <p>My problem: on some of the servers, this produces corrupt URLs:</p>
  
  <pre><code>&lt;xsd:import 
  namespace="http://schemas.xxx.net/xsd/gameserver/types/types_v1_0" 
  schemaLocation="http://localhost8888gameserver/webservices/base_v1?xsd=types_v1_0.xsd"&gt;
  </code></pre>
  
  <p>or even</p>
  
  <pre><code>&lt;xsd:import 
  namespace="http://schemas.xxx.net/xsd/gameserver/types/types_v1_0" 
  schemaLocation="jen.x.local8080gameserver/webservices/base_v1?xsd=types_v1_0.xsd"&gt;
  </code></pre>
  
  <p>Has anyone encountered this problem? What could cause it? It seems to have appeared suddenly today when deploying a current version of the application, but I cannot find any suspicious changes - specifically that WSDL was not changed at all.</p>