You need to define the namespace in your cxf.xml file:
http://cxf.apache.org/docs/server-http-transport.html#ServerHTTPTransport-Namespace

Otherwise Spring has no clue what namespace "http-conf" is referring to.

Glen

On 05/20/2013 02:30 PM, Jeff Ramin wrote:

Thank you!

I've added the appropriate spring jars to my classpath, and the cxf.xml file is now
being processed. However, I have a new error when I run my app:

Caused by: org.xml.sax.SAXParseException: The prefix "http-conf" for element "http-conf:destination" is not bound.

Here's the start of my cxf.xml file, up to the offending tag. Any ideas?

<beans xmlns="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:sec="http://cxf.apache.org/configuration/security";
xmlns:http="http://cxf.apache.org/transports/http/configuration";
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration";
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
  xsi:schemaLocation="
           http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/transports/http-jetty/configuration
http://cxf.apache.org/schemas/configuration/http-jetty.xsd
           http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

<http-conf:destination name="{http://standalone.jaxws.cxf.polarsparc.com}SimpleInterestCalculatorImplPort.http-destination";>
  </http-conf:destination>

On 05/20/2013 10:44 AM, Glen Mazza wrote:
The logging output will normally indicate when the file is being picked up. If you see nothing, it probably isn't.

If you want it to be used, and it's not, the usual culprit is that you need to add the spring-context dependency to your code: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_https/pom.xml?revision=1482878&view=markup#l225

HTH,
Glen

On 05/20/2013 09:48 AM, Jeff Ramin wrote:

Hi folks.

I have a cxf.xml file on my classpath, but it doesn't appear as though it's being used by CXF. Is there some debug switch I could use to indicate if/when
config files like this are processed?

Thanks.




Reply via email to