Steve Cohen wrote:

Sergey Beryozkin wrote:

1. Up until cxf-2.0.7, the cxf configuration file should be located in the ${webapp}/WEB-INF/classes for it be picked up by CXF 2. If the cxf configuration file is named 'cxf.xml' then it will be discovered by CXF automatically, otherwise $tomcathome/bin/catalina batch file needs to be updated with -Dcxf.config.file system property. For ex :

-Dcxf.config.file=client.xml

where the value of -Dcxf.config.file is a location relative to ${webapp}/WEB-INF/classes


Ah, thanks. That's what I wasn't getting. I was trying to make -Dcxf.config.file point to a full path spec. This may help.


This clarification DOES allow the -Dcxf.config.file to work.  Thanks very mu

Might I offer the suggestion that the documentation at

http://cwiki.apache.org/CXF20DOC/configuration.html

be amended from this:

CXF can discover XML configuration files which you have written. For both web service clients and servers, the default location that CXF will look for a configuration for is "/cxf.xml" on the class path. If you wish to override this location, you can specify a command line property: -Dcxf.config.file=some_other_config.xml.
to this, which would have been very helpful to me:

CXF can discover XML configuration files which you have written. For both web service clients and servers, the default location that CXF will look for a configuration for is "/cxf.xml" on the class path. If you wish to override this location, you can specify a command line property: -Dcxf.config.file=some_other_config.xml (where the value of -Dcxf.config.file is a location relative to ${webapp}/WEB-INF/classes).


Reply via email to