Hi,
I'm new to cxf and trying to get a signed message passed between a
client and server. I started from an existing ws-policy which works with
axis2/rampart, used the cxf version of wsdl2java to generate all the
code. Then merged a few things from
apache-cxf-2.2.1/samples/ws_security/interopfest/wssec10.
The message appears to be formatted and signed correctly by the client,
but the server gets a null pointer exception in
org.apache.ws.security.message.token.X509Security.getX509Certificate
(X509Security.java:92) when processing the incoming message. I looked at
the code and it has found the certificate and is faulting because crypt
is null.
I have double checked all the configuration files including using them
for the sample MutualCertificateSignandEncrypt (after tweaking them to
encrypt) and that all works. The samples work fine as well. I am using
maven to run the client and server and have copied the pom.xml from the
sample. The only difference I can find from the sample is that I only
timestamp and sign the message (not encrypt) and I'm using a jks keystore.
The only other clue I can come up with is that when I send an unsigned
message to the server it is happy. It's as though it doesn't know the
incoming message is supposed to be signed.
I have attached the fault trace, configuration files and wsdl.
Anyone suggestions as to what could be wrong would be greatly
appreciated as I have been poking at this for way too long.
Thanks, Mary