Even when overriding the wsdlLocation with my own wsdl, the schemalocation for swaref gets overridden with the localhost-bug. I have tried looking in the cxf-library that is used and it looks OK by me, so it is almost impossible to pinpoint where the bug is.
And when the server starts, it says: 10:30:56,580 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-3) JBWS024074: WSDL published to: file:/C:/jboss-eap-6.2/......
And this WSDL is correct. So I am starting to wonder if it is jbossws or something that intercepts and rewrite the wsdl when I request it in the browser. Any ideas where in the jboss source I can look?