Hmmm, my examples were tested just on Tomcat 6 w/JDK 6. You might wish to first try that architecture, confirm it works, then downgrade to JDK 5, and then finally JBoss AS until the problem reappears. My guess is that between JBoss and JDK 5 somewhere an older, CXF-incompatible parser ends up being used. It could also be that there was some backward-incompatible change recently for which I would have to update my tutorial.

Glen

On 21.01.2011 02:29, 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.



--
Glen Mazza
Software Engineer, Talend (http://www.talend.com)
blog: http://www.jroller.com/gmazza


Reply via email to