On 03/26/2012 04:37 PM, Kristian Rink wrote:
Am 26.03.2012 22:17, schrieb David Mansfield:

FWIW when in a (webapp) context, where would META-INF/cxf/.. have to be?
By now META-INF is on the same level as WEB-INF, I suspect this should
do?

No, I don't think so. The "META-INF" is in the "root" of each entry in
the classpath. For a web-app, along with all of the jars, the
WEB-INF/classes is on the classpath, so you need
WEB-INF/classes/META-INF. Of course, you should be able to put the
resources in a jar as well, in which case they go in the META-INF in the
jar.
Thanks David, this definitely was part of the issue. By now, at the very
least, I see a definite change in the logging spewed out with having
anything org.apache.cxf set to Log Level "all" in logback config.
However, I now see loads of debugging stuff including some HTTP headers
yet the SOAP message content is still missing from the logs. Guess now
it's about figuring out which level for which loggers.

And you need the log interceptors added to your bus. Do you see this kind of crap in your log:

  setup [PolicyOutInterceptor]
pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]
  post-logical [SoapPreProtocolOutInterceptor]
  prepare-send [MessageSenderInterceptor]
pre-stream [LoggingOutInterceptor, AttachmentOutInterceptor, StaxOutInterceptor]
  pre-protocol [WSS4JOutInterceptor]
  write [SoapOutInterceptor]
  marshal [BareOutInterceptor]
  post-protocol [WSS4JOutInterceptorInternal]
  write-ending [SoapOutEndingInterceptor]
  pre-protocol-ending [SAAJOutEndingInterceptor]
  pre-stream-ending [StaxOutEndingInterceptor]
  prepare-send-ending [MessageSenderEndingInterceptor]

It shows how the interceptors are "wired", and you should see the LoggingOutInterceptor (and an "in" one, on the input side) or else you know it's a config problem.

I had great difficulty at first trying to use the "cxf.xml", but since I was already using spring, I got it working using a different xml referenced from my "main" spring xml.

I tried all three ways in the file, and the only one that worked at first was the first technique, described as "don't do this"...

HTH,
David

Reply via email to