You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Pankaj Gaur <ga...@yahoo.com.INVALID> on 2017/02/14 11:55:48 UTC
Build error
Hi All,I forked the repo and tried building (mvn install -Pfastinstall -Psetup.eclipse ) i was facing this error
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SamlTokenInterceptor.java:[189,17] method handleToken in class org.apache.wss4j.dom.processor.SAMLTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/AbstractSupportingTokenPolicyValidator.java:[326,43] incompatible types: org.apache.wss4j.policy.model.EncryptedParts cannot be converted to org.apache.wss4j.policy.model.SignedParts[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/UsernameTokenInterceptor.java:[230,18] method handleToken in class org.apache.wss4j.dom.processor.UsernameTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java:[1589,51] incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to org.apache.wss4j.common.crypto.AlgorithmSuite[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/BinarySecurityTokenInterceptor.java:[118,14] method handleToken in class org.apache.wss4j.dom.processor.BinarySecurityTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length
please let me know what am i missing in this case.-pankaj
Re: Build error
Posted by Colm O hEigeartaigh <co...@apache.org>.
Could you try deleting the org/apache/wss4j directory from your local Maven
repo + try again? It works for me...
Colm.
On Wed, Feb 15, 2017 at 12:01 PM, Pankaj Gaur <gaur_pankaj@yahoo.com.invalid
> wrote:
> Still its a no-go. Itried to look into 2.0.10 version for WSS4J and it
> resolved my problem however it caused other compile issues.Any help is
> appreciated.-pankaj
>
> From: Colm O hEigeartaigh <co...@apache.org>
> To: "dev@cxf.apache.org" <de...@cxf.apache.org>; Pankaj Gaur <
> gaur_pankaj@yahoo.com>
> Sent: Wednesday, 15 February 2017 2:52 PM
> Subject: Re: Build error
>
> Have you tried updating the WSS4J source that you have? Alternatively try
> using maven with "-U".
>
> Colm.
>
> On Wed, Feb 15, 2017 at 8:38 AM, Pankaj Gaur <ga...@yahoo.com.invalid>
> wrote:
>
> I checked with the cxf-parent and they have used 2.20-snapshot as well
> however the class in concern has diff. signature.-pankaj
>
> From: Pankaj Gaur <gaur_pankaj@yahoo.com.INVALID >
> To: "dev@cxf.apache.org" <de...@cxf.apache.org>
> Sent: Wednesday, 15 February 2017 1:55 PM
> Subject: Re: Build error
>
> Hi All,I tried with latest i.e 2.2.0-SNAPSHOT for WSS4J however the
> signatures are diff.Is the cxf trunk compiled with earlier WSS4J
> version.thanks,pankaj
>
> From: Freeman Fang <fr...@gmail.com>
> To: dev@cxf.apache.org; Pankaj Gaur <ga...@yahoo.com>
> Sent: Tuesday, 14 February 2017 5:48 PM
> Subject: Re: Build error
>
> Hi,
>
> Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
> svn co https://svn.apache.org/repos/ asf/webservices/wss4j/trunk <
> https://svn.apache.org/repos/ asf/webservices/wss4j/trunk>
>
> and build the wss4j project first, and this won’t take long time
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
>
>
>
> > On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <gaur_pankaj@yahoo.com.INVALID
> > wrote:
> >
> > Hi All,I forked the repo and tried building (mvn install -Pfastinstall
> -Psetup.eclipse ) i was facing this error
> >
> > Failed to execute goal org.apache.maven.plugins:
> maven-compiler-plugin:3.3: compile (default-compile) on project
> cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR]
> /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/
> apache/cxf/ws/security/wss4j/ SamlTokenInterceptor.java:[ 189,17] method
> handleToken in class org.apache.wss4j.dom. processor.SAMLTokenProcessor
> cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.
> apache.wss4j.dom.handler. RequestData[ERROR] found:
> org.w3c.dom.Element,org. apache.wss4j.dom.handler.
> RequestData,org.apache.wss4j. dom.WSDocInfo[ERROR] reason: actual and
> formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/ security/src/main/java/org/
> apache/cxf/ws/security/wss4j/ policyvalidators/
> AbstractSupportingTokenPolicyV alidator.java:[326,43] incompatible types:
> org.apache.wss4j.policy.model. EncryptedParts cannot be converted to
> org.apache.wss4j.policy.model. SignedParts[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/ security/src/main/java/org/
> apache/cxf/ws/security/wss4j/ UsernameTokenInterceptor.java: [230,18]
> method handleToken in class org.apache.wss4j.dom. processor.
> UsernameTokenProcessor cannot be applied to given types;[ERROR] required:
> org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData[ERROR]
> found: org.w3c.dom.Element,org. apache.wss4j.dom.handler.
> RequestData,org.apache.wss4j. dom.WSDocInfo[ERROR] reason: actual and
> formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/ security/src/main/java/org/
> apache/cxf/ws/security/trust/ AbstractSTSClient.java:[1589, 51]
> incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to
> org.apache.wss4j.common. crypto.AlgorithmSuite[ERROR]
> /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/
> apache/cxf/ws/security/wss4j/ BinarySecurityTokenInterceptor .java:[118,14]
> method handleToken in class org.apache.wss4j.dom. processor.
> BinarySecurityTokenProcessor cannot be applied to given types;[ERROR]
> required: org.w3c.dom.Element,org. apache.wss4j.dom.handler.
> RequestData[ERROR] found: org.w3c.dom.Element,org.
> apache.wss4j.dom.handler. RequestData,org.apache.wss4j.
> dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in
> length
> > please let me know what am i missing in this case.-pankaj
>
>
>
>
>
>
>
>
> --
> Colm O hEigeartaigh
>
> Talend Community Coder
> http://coders.talend.com
>
>
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Build error
Posted by Pankaj Gaur <ga...@yahoo.com.INVALID>.
Still its a no-go. Itried to look into 2.0.10 version for WSS4J and it resolved my problem however it caused other compile issues.Any help is appreciated.-pankaj
From: Colm O hEigeartaigh <co...@apache.org>
To: "dev@cxf.apache.org" <de...@cxf.apache.org>; Pankaj Gaur <ga...@yahoo.com>
Sent: Wednesday, 15 February 2017 2:52 PM
Subject: Re: Build error
Have you tried updating the WSS4J source that you have? Alternatively try using maven with "-U".
Colm.
On Wed, Feb 15, 2017 at 8:38 AM, Pankaj Gaur <ga...@yahoo.com.invalid> wrote:
I checked with the cxf-parent and they have used 2.20-snapshot as well however the class in concern has diff. signature.-pankaj
From: Pankaj Gaur <gaur_pankaj@yahoo.com.INVALID >
To: "dev@cxf.apache.org" <de...@cxf.apache.org>
Sent: Wednesday, 15 February 2017 1:55 PM
Subject: Re: Build error
Hi All,I tried with latest i.e 2.2.0-SNAPSHOT for WSS4J however the signatures are diff.Is the cxf trunk compiled with earlier WSS4J version.thanks,pankaj
From: Freeman Fang <fr...@gmail.com>
To: dev@cxf.apache.org; Pankaj Gaur <ga...@yahoo.com>
Sent: Tuesday, 14 February 2017 5:48 PM
Subject: Re: Build error
Hi,
Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
svn co https://svn.apache.org/repos/ asf/webservices/wss4j/trunk <https://svn.apache.org/repos/ asf/webservices/wss4j/trunk>
and build the wss4j project first, and this won’t take long time
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <gaur_pankaj@yahoo.com.INVALID > wrote:
>
> Hi All,I forked the repo and tried building (mvn install -Pfastinstall -Psetup.eclipse ) i was facing this error
>
> Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin:3.3: compile (default-compile) on project cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR] /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/ apache/cxf/ws/security/wss4j/ SamlTokenInterceptor.java:[ 189,17] method handleToken in class org.apache.wss4j.dom. processor.SAMLTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData[ERROR] found: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData,org.apache.wss4j. dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/ apache/cxf/ws/security/wss4j/ policyvalidators/ AbstractSupportingTokenPolicyV alidator.java:[326,43] incompatible types: org.apache.wss4j.policy.model. EncryptedParts cannot be converted to org.apache.wss4j.policy.model. SignedParts[ERROR] /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/ apache/cxf/ws/security/wss4j/ UsernameTokenInterceptor.java: [230,18] method handleToken in class org.apache.wss4j.dom. processor. UsernameTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData[ERROR] found: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData,org.apache.wss4j. dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/ apache/cxf/ws/security/trust/ AbstractSTSClient.java:[1589, 51] incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to org.apache.wss4j.common. crypto.AlgorithmSuite[ERROR] /C:/Users/pankaj.gaur/ gitcodebase/cxf/rt/ws/ security/src/main/java/org/ apache/cxf/ws/security/wss4j/ BinarySecurityTokenInterceptor .java:[118,14] method handleToken in class org.apache.wss4j.dom. processor. BinarySecurityTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData[ERROR] found: org.w3c.dom.Element,org. apache.wss4j.dom.handler. RequestData,org.apache.wss4j. dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length
> please let me know what am i missing in this case.-pankaj
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Build error
Posted by Colm O hEigeartaigh <co...@apache.org>.
Have you tried updating the WSS4J source that you have? Alternatively try
using maven with "-U".
Colm.
On Wed, Feb 15, 2017 at 8:38 AM, Pankaj Gaur <ga...@yahoo.com.invalid>
wrote:
> I checked with the cxf-parent and they have used 2.20-snapshot as well
> however the class in concern has diff. signature.-pankaj
>
> From: Pankaj Gaur <ga...@yahoo.com.INVALID>
> To: "dev@cxf.apache.org" <de...@cxf.apache.org>
> Sent: Wednesday, 15 February 2017 1:55 PM
> Subject: Re: Build error
>
> Hi All,I tried with latest i.e 2.2.0-SNAPSHOT for WSS4J however the
> signatures are diff.Is the cxf trunk compiled with earlier WSS4J
> version.thanks,pankaj
>
> From: Freeman Fang <fr...@gmail.com>
> To: dev@cxf.apache.org; Pankaj Gaur <ga...@yahoo.com>
> Sent: Tuesday, 14 February 2017 5:48 PM
> Subject: Re: Build error
>
> Hi,
>
> Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
> svn co https://svn.apache.org/repos/asf/webservices/wss4j/trunk <
> https://svn.apache.org/repos/asf/webservices/wss4j/trunk>
>
> and build the wss4j project first, and this won’t take long time
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
>
>
>
> > On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <ga...@yahoo.com.INVALID>
> wrote:
> >
> > Hi All,I forked the repo and tried building (mvn install -Pfastinstall
> -Psetup.eclipse ) i was facing this error
> >
> > Failed to execute goal org.apache.maven.plugins:
> maven-compiler-plugin:3.3:compile (default-compile) on project
> cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR]
> /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/
> apache/cxf/ws/security/wss4j/SamlTokenInterceptor.java:[189,17] method
> handleToken in class org.apache.wss4j.dom.processor.SAMLTokenProcessor
> cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.
> apache.wss4j.dom.handler.RequestData[ERROR] found:
> org.w3c.dom.Element,org.apache.wss4j.dom.handler.
> RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and
> formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/security/src/main/java/org/
> apache/cxf/ws/security/wss4j/policyvalidators/
> AbstractSupportingTokenPolicyValidator.java:[326,43] incompatible types:
> org.apache.wss4j.policy.model.EncryptedParts cannot be converted to
> org.apache.wss4j.policy.model.SignedParts[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/security/src/main/java/org/
> apache/cxf/ws/security/wss4j/UsernameTokenInterceptor.java:[230,18]
> method handleToken in class org.apache.wss4j.dom.processor.UsernameTokenProcessor
> cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.
> apache.wss4j.dom.handler.RequestData[ERROR] found:
> org.w3c.dom.Element,org.apache.wss4j.dom.handler.
> RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and
> formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/
> gitcodebase/cxf/rt/ws/security/src/main/java/org/
> apache/cxf/ws/security/trust/AbstractSTSClient.java:[1589,51]
> incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to
> org.apache.wss4j.common.crypto.AlgorithmSuite[ERROR]
> /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/
> apache/cxf/ws/security/wss4j/BinarySecurityTokenInterceptor.java:[118,14]
> method handleToken in class org.apache.wss4j.dom.processor.BinarySecurityTokenProcessor
> cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.
> apache.wss4j.dom.handler.RequestData[ERROR] found:
> org.w3c.dom.Element,org.apache.wss4j.dom.handler.
> RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and
> formal argument lists differ in length
> > please let me know what am i missing in this case.-pankaj
>
>
>
>
>
>
--
Colm O hEigeartaigh
Talend Community Coder
http://coders.talend.com
Re: Build error
Posted by Pankaj Gaur <ga...@yahoo.com.INVALID>.
I checked with the cxf-parent and they have used 2.20-snapshot as well however the class in concern has diff. signature.-pankaj
From: Pankaj Gaur <ga...@yahoo.com.INVALID>
To: "dev@cxf.apache.org" <de...@cxf.apache.org>
Sent: Wednesday, 15 February 2017 1:55 PM
Subject: Re: Build error
Hi All,I tried with latest i.e 2.2.0-SNAPSHOT for WSS4J however the signatures are diff.Is the cxf trunk compiled with earlier WSS4J version.thanks,pankaj
From: Freeman Fang <fr...@gmail.com>
To: dev@cxf.apache.org; Pankaj Gaur <ga...@yahoo.com>
Sent: Tuesday, 14 February 2017 5:48 PM
Subject: Re: Build error
Hi,
Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
svn co https://svn.apache.org/repos/asf/webservices/wss4j/trunk <https://svn.apache.org/repos/asf/webservices/wss4j/trunk>
and build the wss4j project first, and this won’t take long time
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <ga...@yahoo.com.INVALID> wrote:
>
> Hi All,I forked the repo and tried building (mvn install -Pfastinstall -Psetup.eclipse ) i was facing this error
>
> Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SamlTokenInterceptor.java:[189,17] method handleToken in class org.apache.wss4j.dom.processor.SAMLTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/AbstractSupportingTokenPolicyValidator.java:[326,43] incompatible types: org.apache.wss4j.policy.model.EncryptedParts cannot be converted to org.apache.wss4j.policy.model.SignedParts[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/UsernameTokenInterceptor.java:[230,18] method handleToken in class org.apache.wss4j.dom.processor.UsernameTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java:[1589,51] incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to org.apache.wss4j.common.crypto.AlgorithmSuite[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/BinarySecurityTokenInterceptor.java:[118,14] method handleToken in class org.apache.wss4j.dom.processor.BinarySecurityTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length
> please let me know what am i missing in this case.-pankaj
Re: Build error
Posted by Pankaj Gaur <ga...@yahoo.com.INVALID>.
Hi All,I tried with latest i.e 2.2.0-SNAPSHOT for WSS4J however the signatures are diff.Is the cxf trunk compiled with earlier WSS4J version.thanks,pankaj
From: Freeman Fang <fr...@gmail.com>
To: dev@cxf.apache.org; Pankaj Gaur <ga...@yahoo.com>
Sent: Tuesday, 14 February 2017 5:48 PM
Subject: Re: Build error
Hi,
Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
svn co https://svn.apache.org/repos/asf/webservices/wss4j/trunk <https://svn.apache.org/repos/asf/webservices/wss4j/trunk>
and build the wss4j project first, and this won’t take long time
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <ga...@yahoo.com.INVALID> wrote:
>
> Hi All,I forked the repo and tried building (mvn install -Pfastinstall -Psetup.eclipse ) i was facing this error
>
> Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SamlTokenInterceptor.java:[189,17] method handleToken in class org.apache.wss4j.dom.processor.SAMLTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/AbstractSupportingTokenPolicyValidator.java:[326,43] incompatible types: org.apache.wss4j.policy.model.EncryptedParts cannot be converted to org.apache.wss4j.policy.model.SignedParts[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/UsernameTokenInterceptor.java:[230,18] method handleToken in class org.apache.wss4j.dom.processor.UsernameTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java:[1589,51] incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to org.apache.wss4j.common.crypto.AlgorithmSuite[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/BinarySecurityTokenInterceptor.java:[118,14] method handleToken in class org.apache.wss4j.dom.processor.BinarySecurityTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length
> please let me know what am i missing in this case.-pankaj
Re: Build error
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Seems the wss4j 2.2-SNAPSHOT you pulling isn’t the latest. You can
svn co https://svn.apache.org/repos/asf/webservices/wss4j/trunk <https://svn.apache.org/repos/asf/webservices/wss4j/trunk>
and build the wss4j project first, and this won’t take long time
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
> On Feb 14, 2017, at 7:55 PM, Pankaj Gaur <ga...@yahoo.com.INVALID> wrote:
>
> Hi All,I forked the repo and tried building (mvn install -Pfastinstall -Psetup.eclipse ) i was facing this error
>
> Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project cxf-rt-ws-security: Compilation failure: Compilation failure:[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SamlTokenInterceptor.java:[189,17] method handleToken in class org.apache.wss4j.dom.processor.SAMLTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyvalidators/AbstractSupportingTokenPolicyValidator.java:[326,43] incompatible types: org.apache.wss4j.policy.model.EncryptedParts cannot be converted to org.apache.wss4j.policy.model.SignedParts[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/UsernameTokenInterceptor.java:[230,18] method handleToken in class org.apache.wss4j.dom.processor.UsernameTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/AbstractSTSClient.java:[1589,51] incompatible types: org.apache.wss4j.dom.WSDocInfo cannot be converted to org.apache.wss4j.common.crypto.AlgorithmSuite[ERROR] /C:/Users/pankaj.gaur/gitcodebase/cxf/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/BinarySecurityTokenInterceptor.java:[118,14] method handleToken in class org.apache.wss4j.dom.processor.BinarySecurityTokenProcessor cannot be applied to given types;[ERROR] required: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData[ERROR] found: org.w3c.dom.Element,org.apache.wss4j.dom.handler.RequestData,org.apache.wss4j.dom.WSDocInfo[ERROR] reason: actual and formal argument lists differ in length
> please let me know what am i missing in this case.-pankaj