Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D83A4245 for ; Mon, 27 Jun 2011 15:11:40 +0000 (UTC) Received: (qmail 35759 invoked by uid 500); 27 Jun 2011 15:11:39 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 35663 invoked by uid 500); 27 Jun 2011 15:11:39 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 35653 invoked by uid 99); 27 Jun 2011 15:11:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 15:11:38 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vivek2523@gmail.com designates 209.85.213.169 as permitted sender) Received: from [209.85.213.169] (HELO mail-yx0-f169.google.com) (209.85.213.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 15:11:32 +0000 Received: by yxn22 with SMTP id 22so2553775yxn.0 for ; Mon, 27 Jun 2011 08:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Jy6vYEAiC0hVb7HyRQAJJCvqYRh7Dk+WN3iaws6DZFs=; b=bawwKzAyt6nSRoahPTH1MJmStAI9f/VWrx3/lhOcFnM0wYwo1MRmEkJwqtug/Cj9kK UsQvpbAvqEyBbOnaCnnjvjZfAqLWjOQm0EF65OAyyC97E7zR4CJv7xETzhwklvxUofJI Z/8Q14laGH1Gu9YG/YvbHcStu7e8653jkFXLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=F+4q/5inFLG1O+BBjfxZ9erSGA4SLI2YN07k2091F7FPoA9e1dKXrt6yudJJTPHZb+ Nt7fN/LJ26a/bw37XcrlDoOBssD8Si2tELduVViDlLrOv29dL0JKm9qC8ZLwHnyZcQKI SAEbL0LXMhzJ/opgiiwvdK3EAFkkRW0rO3J7g= MIME-Version: 1.0 Received: by 10.101.175.1 with SMTP id c1mr6244762anp.99.1309187471516; Mon, 27 Jun 2011 08:11:11 -0700 (PDT) Received: by 10.100.142.17 with HTTP; Mon, 27 Jun 2011 08:11:11 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2011 11:11:11 -0400 Message-ID: Subject: Re: java.lang.NoSuchMethodError Exception While Using Apache CXF 2.4 and wss4j 1.5.11 From: Vivek Alampally To: users@cxf.apache.org, coheigea@apache.org Content-Type: multipart/alternative; boundary=001636c5c18c2f262904a6b2f650 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5c18c2f262904a6b2f650 Content-Type: text/plain; charset=ISO-8859-1 Hi Colm, Do you have any link pointing to how this can be done. I just need to have a username & password for existing web service. For this do I need to write a custom Validator. Can I use existing default UsernameTokenValidator? Thanks, Vivek. On Mon, Jun 27, 2011 at 10:55 AM, Colm O hEigeartaigh wrote: > In WSS4J 1.6 the password is not supplied to the CallbackHandler, only > the username. The CallbackHandler is expected to supply the password > to the default Validator (UsernameTokenValidator) in this case. If you > wish to implement some custom scenario, you must implement your own > Validator implementation. See here for more information: > > http://coheigea.blogspot.com/2011/04/wss4j-16-introducing-validators.html > > Colm. > > On Mon, Jun 27, 2011 at 3:36 PM, Vivek Alampally > wrote: > > Here is the actual problem when integrating CXF 2.4.1 with WSS4J 1.6.1. > So > > does this change require change in configuration.. Can anybody please > help > > me in fixing this issue. > > > > java.lang.NullPointerException > > at > > > com.fdt.sdl.security.authentication.util.ServerPasswordCallback.handle(ServerPasswordCallback.java:41) > > at > > > org.apache.ws.security.validate.UsernameTokenValidator.verifyDigestPassword(UsernameTokenValidator.java:168) > > at > > > org.apache.ws.security.validate.UsernameTokenValidator.verifyPlaintextPassword(UsernameTokenValidator.java:142) > > at > > > org.apache.ws.security.validate.UsernameTokenValidator.validate(UsernameTokenValidator.java:100) > > at > > > org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:118) > > at > > > org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:52) > > at > > > org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:396) > > at > > > org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:249) > > at > > > org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:85) > > at > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) > > at > > > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118) > > at > > > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208) > > at > > > org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223) > > at > > > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205) > > at > > > org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113) > > at > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184) > > at > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) > > at > > > org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164) > > at > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) > > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403) > > at > > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140) > > at > > > org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309) > > at > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > at > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > at java.lang.Thread.run(Thread.java:662) > > > > On Mon, Jun 27, 2011 at 10:22 AM, Vivek Alampally >wrote: > > > >> Sorry this exception got resolved when I removed XMLSchema1.4.7.jar > >> > >> > >> On Mon, Jun 27, 2011 at 10:14 AM, Vivek Alampally >wrote: > >> > >>> Hi, > >>> Thanks for your prompt response. > >>> > >>> When I add WSS4j 1.6.1 the below exception is coming. > >>> org.springframework.beans.factory.BeanDefinitionStoreException: Factory > >>> method [public java.lang.Object > >>> org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create()] threw exception; > nested > >>> exception is java.lang.NoSuchFieldError: QUALIFIED > >>> > >>> > >>> Does this change require any change in configuration as well. > >>> > >>> > >>> > >>> On Mon, Jun 27, 2011 at 9:53 AM, Colm O hEigeartaigh < > coheigea@apache.org > >>> > wrote: > >>> > >>>> They are incompatible - you must use WSS4J 1.6.x with CXF 2.4.x. > >>>> > >>>> Colm. > >>>> > >>>> On Mon, Jun 27, 2011 at 2:47 PM, Vivek Alampally > > >>>> wrote: > >>>> > Hi > >>>> > I am getting the following exception while replacing existing cxf > 2.3.3 > >>>> jar > >>>> > with Apache CXF 2.4.1 > >>>> > java.lang.NoSuchMethodError< > >>>> > http://download.oracle.com/javase/6/docs/api/java/lang/NoSuchMethodError.html > >>>> >: > >>>> > > >>>> > org.apache.ws.security.util.WSSecurityUtil.decodeAction(Ljava/lang/String;Ljava/util/List;)I > >>>> > > >>>> > Can anyone please tell me whether there are any compatibility issues > >>>> > with Apache CXF 2.4 and wss4j 1.5.11. > >>>> > > >>>> > >>>> > >>>> > >>>> -- > >>>> Colm O hEigeartaigh > >>>> > >>>> http://coheigea.blogspot.com/ > >>>> Talend - http://www.talend.com > >>>> > >>> > >>> > >> > > > > > > -- > Colm O hEigeartaigh > > http://coheigea.blogspot.com/ > Talend - http://www.talend.com > --001636c5c18c2f262904a6b2f650--