Not sure what might be going wrong with Glen's examples, but you can try the ones I used in my WS-Security with CXF article: http://www.ibm.com/developerworks/java/library/j-jws13.html
- Dennis Dennis M. Sosnoski Java SOA and Web Services Consulting <http://www.sosnoski.com/consult.html> Axis2/CXF/Metro SOA and Web Services Training <http://www.sosnoski.com/training.html> Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html> On 01/21/2011 08:29 PM, manojbvm wrote: > Hi All, > > I'm new to CXF and was trying to use ws-security standards like > UsernameToken, Encryption, Signature and etc with CXF services. > > CXF 2.3.1 works just fine with Username Token. > > I was trying a sample as provided in > http://www.jroller.com/gmazza/entry/cxf_x509_profile for certificate > encryption and I get is the error "NullPointerException in > StaxUtils.java:961". I check the topics and looks like already a issue > CXF-3170 has been opened on this. > > CXF-3170 says that the NPE occurs because of some configuration of Jetty and > CXF. I tried the example in > http://www.jroller.com/gmazza/entry/cxf_x509_profile with JBoss 4.2.3 GA and > JBoss 5 with Java 1.5 and still get that same exception. I also tried with > older versions of CXF (2.3.0 to 2.2.x) and it still has the same exception. > > Any inputs, suggestions, help for a work around is much appreciated. > > Thanks in advance. > >
