You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Jim Ma <ma...@gmail.com> on 2022/03/21 07:26:09 UTC

Systest failures with wss4j-3.0.0-SNAPSHOT

Hi Colm,
After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in CXF,
I got the following ws-security systests failures.
Could you please help look at if there is still something we need to fix in
wss4j ? Or we need to fix it in CXF ?

Thanks,
Jim

--------------------------------
[ERROR]
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
 Time elapsed: 0.076 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)

[ERROR]
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
 Time elapsed: 0.069 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)

[ERROR]
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
 Time elapsed: 0.048 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException:
javax.xml.stream.XMLStreamException:
org.apache.wss4j.common.ext.WSSecurityException: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
Caused by: org.apache.cxf.binding.soap.SoapFault:
javax.xml.stream.XMLStreamException:
org.apache.wss4j.common.ext.WSSecurityException: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)

[ERROR]
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
 Time elapsed: 0.062 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException:
javax.xml.stream.XMLStreamException:
org.apache.wss4j.common.ext.WSSecurityException: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
Caused by: org.apache.cxf.binding.soap.SoapFault:
javax.xml.stream.XMLStreamException:
org.apache.wss4j.common.ext.WSSecurityException: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
[INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
[ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
 Time elapsed: 0.079 s  <<< ERROR!
jakarta.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find portType named {http://xkms_wsdl._03._
2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
 Time elapsed: 0.051 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
 Time elapsed: 0.047 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
 Time elapsed: 0.065 s  <<< ERROR!
jakarta.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find portType named {http://xkms_wsdl._03._
2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:streaming]
 Time elapsed: 0.053 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
 Time elapsed: 0.036 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
 Time elapsed: 0.07 s  <<< ERROR!
jakarta.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find portType named {http://xkms_wsdl._03._
2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
 Time elapsed: 0.052 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
 Time elapsed: 0.037 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
 Time elapsed: 0.077 s  <<< ERROR!
jakarta.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find portType named {http://xkms_wsdl._03._
2002.w3.org/}XKMSPortType
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:streaming]
 Time elapsed: 0.054 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)

[ERROR]
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
 Time elapsed: 0.039 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
Could not find wsdl:binding operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
apache.org]. Error: Could not find wsdl:binding operation info for web
method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
operation info for web method locate.
at
org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
A security e...
[ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
A security e...
[ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
javax.xml.st...
[ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
javax.xml.st...
[ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
fails for cert...
[ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
fails for cert...
[ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
fails for cert...
[ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
fails for cert...
[ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
org.apache.cxf.service.factory....
[ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
org.apache.cxf.service.factory....
[ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
org.apache.cxf.service.factory....
[ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
org.apache.cxf.service.factory....
[ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
fails for certi...
[ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
fails for certi...
[ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
fails for certi...
[ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
fails for certi...
[INFO]
[ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
--------------------------------------------

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Colm O hEigeartaigh <co...@apache.org>.
Sorry, I should have checked first - it looks like the Jenkins build
is broken, I manually deploy a SNAPSHOT for now.

Colm.

On Sun, Apr 17, 2022 at 7:46 PM Colm O hEigeartaigh <co...@apache.org> wrote:
>
> Hey Andriy,
>
> I think it's what I said on the PR, that the Jakarta profile in the
> root pom doesn't have the Apache snapshot repo to get the WSS4J
> SNAPSHOTs.
>
> Colm.
>
> On Sun, Apr 17, 2022 at 3:21 PM Andriy Redko <dr...@gmail.com> wrote:
> >
> > Hey Jim, Colm,
> >
> > I merged the Opensaml + WSSJ4 changes [1] into the Jakarta branch [2], there is still an issue with non-existing artifact(s):
> >
> > [ERROR] Failed to execute goal on project cxf-rt-security-saml: Could not resolve dependencies for project org.apache.cxf:cxf-rt-security-saml:bundle:4.0.0-SNAPSHOT: Could not find artifact org.apache.wss4j:wss4j-ws-security-dom:jar:3.0.0-SNAPSHOT in spring.milestone (https://repo.spring.io/milestone/) -> [Help 1]
> >
> > It seems like wss4j-ws-security-dom is gone in 3.x [3], any replacement we could use?
> > Thanks!
> >
> > [1] https://github.com/apache/cxf/pull/927
> > [2] https://github.com/apache/cxf/pull/912
> > [3] https://repository.apache.org/content/repositories/snapshots/org/apache/wss4j/wss4j-ws-security-dom/
> >
> > Best Regards,
> >     Andriy Redko
> >
> > JM> Thanks for the merge, Andriy.
> > JM> I just checked this test with this merge, I still get the same failure.
> >
> >
> > JM> On Sat, Mar 26, 2022 at 11:46 PM Andriy Redko <dr...@gmail.com> wrote:
> >
> > >> Hey Jim, Colm,
> >
> > >> I have created this pull request [1] to merge changes from OpenSaml4 to
> > >> Jakarta
> > >> branch, looks like everything is in, @Colm could you please take a look?
> > >> Thank you!
> >
> > >> [1] https://github.com/apache/cxf/pull/927/files
> >
> > >> JM> Hi Colm,
> > >> JM> You are right. My working branch missed several commits.
> > >> JM> This is a good idea to merge these missed things to jakarta branch.
> > >> I'll
> > >> JM> have a test again
> > >> JM> after @Andriy Redko <dr...@gmail.com> merge these changes.
> >
> > >> JM> Thanks,
> > >> JM> Jim
> >
> > >> JM> On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <
> > >> coheigea@apache.org>
> > >> JM> wrote:
> >
> > >> >> Hi Jim,
> >
> > >> >> Your branch is behind CXF master with regards several commits. I think
> > >> >> it would be better if we just worked off one official branch at CXF.
> > >> >> @Andriy Redko maybe we should just incorporate
> > >> >> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
> > >> >> so that I can look at what's failing with WSS4J 3.0.0?
> >
> > >> >> Colm.
> >
> > >> >> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
> > >> >> >
> > >> >> > Thanks for the quick fix, Colm.
> > >> >> >
> > >> >> > It seems there is another failure under
> > >> services/sts/systests/advanced:
> > >> >> >
> > >> >> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
> > >> >> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
> > >> elapsed:
> > >> >> 10.297 s <<< FAILURE! - in
> > >> org.apache.cxf.systest.sts.renew.SAMLRenewTest
> > >> >> > [ERROR]
> > >> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens
> > >> Time
> > >> >> elapsed: 9.671 s  <<< ERROR!
> > >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> > >> encountered
> > >> >> when verifying the message
> > >> >> > at
> > >> >>
> > >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> > >> >> > at
> > >> >>
> > >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> > >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> > >> >> encountered when verifying the message
> > >> >> > at
> > >> >>
> > >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> > >> >> > at
> > >> >>
> > >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> > >> >> >
> > >> >> > I checked these spring configuration files and other places, and
> > >> didn't
> > >> >> find the place we need to change to the jakarta namespace.
> > >> >> > Is there anything else we need to check ?
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <
> > >> coheigea@apache.org>
> > >> >> wrote:
> > >> >> >>
> > >> >> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
> > >> >> >> fixed it in CXF master here:
> > >> >> >>
> > >> >>
> > >> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
> > >> >> >>
> > >> >> >> Colm.
> > >> >> >>
> > >> >> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com>
> > >> wrote:
> > >> >> >> >
> > >> >> >> > Hi Colm,
> > >> >> >> >
> > >> >> >> > Please checkout my working branch :
> > >> >> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> > >> >> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
> > >> >> >> > then go to systests/ws-security, run these tests and you'll get
> > >> these
> > >> >> test failures.
> > >> >> >> > Please let me know if you have other issues when trying this out.
> > >> >> >> >
> > >> >> >> > Thanks,
> > >> >> >> > Jim
> > >> >> >> >
> > >> >> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
> > >> >> coheigea@apache.org> wrote:
> > >> >> >> >>
> > >> >> >> >> Hi Jim,
> > >> >> >> >>
> > >> >> >> >> Which branch are you testing this on in CXF?
> > >> >> >> >>
> > >> >> >> >> Colm.
> > >> >> >> >>
> > >> >> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com>
> > >> wrote:
> > >> >> >> >> >
> > >> >> >> >> > Hi Colm,
> > >> >> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta
> > >> version)
> > >> >> in CXF,
> > >> >> >> >> > I got the following ws-security systests failures.
> > >> >> >> >> > Could you please help look at if there is still something we
> > >> need
> > >> >> to fix in
> > >> >> >> >> > wss4j ? Or we need to fix it in CXF ?
> > >> >> >> >> >
> > >> >> >> >> > Thanks,
> > >> >> >> >> > Jim
> > >> >> >> >> >
> > >> >> >> >> > --------------------------------
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> > >> >> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> > >> >> encountered
> > >> >> >> >> > when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> > >> >> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> > >> >> encountered
> > >> >> >> >> > when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> > >> >> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> > >> >> >> >> > javax.xml.stream.XMLStreamException:
> > >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> > >> >> >> >> > javax.xml.stream.XMLStreamException:
> > >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> > >> >> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> > >> >> >> >> > javax.xml.stream.XMLStreamException:
> > >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> > >> >> >> >> > javax.xml.stream.XMLStreamException:
> > >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> > >> error
> > >> >> was
> > >> >> >> >> > encountered when verifying the message
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >>
> > >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > >> >> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> > >> >> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
> > >> >> elapsed:
> > >> >> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws
> > >> .xkms.XKMSTest
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> > >> >> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.WebServiceException:
> > >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> > >> Could
> > >> >> not find
> > >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> > Caused by:
> > >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> > >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> > >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
> > >> >> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> > >> >> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> > >> >> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.WebServiceException:
> > >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> > >> Could
> > >> >> not find
> > >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> > Caused by:
> > >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> > >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> > >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> > >> >> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> > >> >> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> > >> >> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.WebServiceException:
> > >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> > >> Could
> > >> >> not find
> > >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> > Caused by:
> > >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> > >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> > >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
> > >> >> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> > >> >> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> > >> >> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.WebServiceException:
> > >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> > >> Could
> > >> >> not find
> > >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> > Caused by:
> > >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> > >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> > >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > >> <http://2002.w3.org/%7DXKMSPortType>
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> > >> >> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > >> >> >> >> >
> > >> >> >> >> > [ERROR]
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> > >> >> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
> > >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> > >> for
> > >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > >> apache.org].
> > >> >> Error:
> > >> >> >> >> > Could not find wsdl:binding operation info for web method
> > >> locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> > >> XKMS
> > >> >> locate
> > >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> > >> >> OU=eng, O=
> > >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> > >> >> for web
> > >> >> >> >> > method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> > >> >> wsdl:binding
> > >> >> >> >> > operation info for web method locate.
> > >> >> >> >> > at
> > >> >> >> >> > org.apache.cxf.systest.ws
> > >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > >> >> >> >> >
> > >> >> >> >> > [INFO]
> > >> >> >> >> > [INFO] Results:
> > >> >> >> >> > [INFO]
> > >> >> >> >> > [ERROR] Errors:
> > >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> > >> »
> > >> >> SOAPFault
> > >> >> >> >> > A security e...
> > >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> > >> »
> > >> >> SOAPFault
> > >> >> >> >> > A security e...
> > >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> > >> »
> > >> >> SOAPFault
> > >> >> >> >> > javax.xml.st...
> > >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> > >> »
> > >> >> SOAPFault
> > >> >> >> >> > javax.xml.st...
> > >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for cert...
> > >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for cert...
> > >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for cert...
> > >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for cert...
> > >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > >> >> >> >> > org.apache.cxf.service.factory....
> > >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > >> >> >> >> > org.apache.cxf.service.factory....
> > >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > >> >> >> >> > org.apache.cxf.service.factory....
> > >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > >> >> >> >> > org.apache.cxf.service.factory....
> > >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for certi...
> > >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for certi...
> > >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for certi...
> > >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> > >> >> locate call
> > >> >> >> >> > fails for certi...
> > >> >> >> >> > [INFO]
> > >> >> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> > >> >> >> >> > --------------------------------------------
> >

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hey Andriy,

I think it's what I said on the PR, that the Jakarta profile in the
root pom doesn't have the Apache snapshot repo to get the WSS4J
SNAPSHOTs.

Colm.

On Sun, Apr 17, 2022 at 3:21 PM Andriy Redko <dr...@gmail.com> wrote:
>
> Hey Jim, Colm,
>
> I merged the Opensaml + WSSJ4 changes [1] into the Jakarta branch [2], there is still an issue with non-existing artifact(s):
>
> [ERROR] Failed to execute goal on project cxf-rt-security-saml: Could not resolve dependencies for project org.apache.cxf:cxf-rt-security-saml:bundle:4.0.0-SNAPSHOT: Could not find artifact org.apache.wss4j:wss4j-ws-security-dom:jar:3.0.0-SNAPSHOT in spring.milestone (https://repo.spring.io/milestone/) -> [Help 1]
>
> It seems like wss4j-ws-security-dom is gone in 3.x [3], any replacement we could use?
> Thanks!
>
> [1] https://github.com/apache/cxf/pull/927
> [2] https://github.com/apache/cxf/pull/912
> [3] https://repository.apache.org/content/repositories/snapshots/org/apache/wss4j/wss4j-ws-security-dom/
>
> Best Regards,
>     Andriy Redko
>
> JM> Thanks for the merge, Andriy.
> JM> I just checked this test with this merge, I still get the same failure.
>
>
> JM> On Sat, Mar 26, 2022 at 11:46 PM Andriy Redko <dr...@gmail.com> wrote:
>
> >> Hey Jim, Colm,
>
> >> I have created this pull request [1] to merge changes from OpenSaml4 to
> >> Jakarta
> >> branch, looks like everything is in, @Colm could you please take a look?
> >> Thank you!
>
> >> [1] https://github.com/apache/cxf/pull/927/files
>
> >> JM> Hi Colm,
> >> JM> You are right. My working branch missed several commits.
> >> JM> This is a good idea to merge these missed things to jakarta branch.
> >> I'll
> >> JM> have a test again
> >> JM> after @Andriy Redko <dr...@gmail.com> merge these changes.
>
> >> JM> Thanks,
> >> JM> Jim
>
> >> JM> On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <
> >> coheigea@apache.org>
> >> JM> wrote:
>
> >> >> Hi Jim,
>
> >> >> Your branch is behind CXF master with regards several commits. I think
> >> >> it would be better if we just worked off one official branch at CXF.
> >> >> @Andriy Redko maybe we should just incorporate
> >> >> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
> >> >> so that I can look at what's failing with WSS4J 3.0.0?
>
> >> >> Colm.
>
> >> >> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
> >> >> >
> >> >> > Thanks for the quick fix, Colm.
> >> >> >
> >> >> > It seems there is another failure under
> >> services/sts/systests/advanced:
> >> >> >
> >> >> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
> >> >> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
> >> elapsed:
> >> >> 10.297 s <<< FAILURE! - in
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest
> >> >> > [ERROR]
> >> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens
> >> Time
> >> >> elapsed: 9.671 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> >> encountered
> >> >> when verifying the message
> >> >> > at
> >> >>
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> >> >> > at
> >> >>
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> >> >> encountered when verifying the message
> >> >> > at
> >> >>
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> >> >> > at
> >> >>
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> >> >> >
> >> >> > I checked these spring configuration files and other places, and
> >> didn't
> >> >> find the place we need to change to the jakarta namespace.
> >> >> > Is there anything else we need to check ?
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <
> >> coheigea@apache.org>
> >> >> wrote:
> >> >> >>
> >> >> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
> >> >> >> fixed it in CXF master here:
> >> >> >>
> >> >>
> >> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
> >> >> >>
> >> >> >> Colm.
> >> >> >>
> >> >> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com>
> >> wrote:
> >> >> >> >
> >> >> >> > Hi Colm,
> >> >> >> >
> >> >> >> > Please checkout my working branch :
> >> >> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> >> >> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
> >> >> >> > then go to systests/ws-security, run these tests and you'll get
> >> these
> >> >> test failures.
> >> >> >> > Please let me know if you have other issues when trying this out.
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Jim
> >> >> >> >
> >> >> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
> >> >> coheigea@apache.org> wrote:
> >> >> >> >>
> >> >> >> >> Hi Jim,
> >> >> >> >>
> >> >> >> >> Which branch are you testing this on in CXF?
> >> >> >> >>
> >> >> >> >> Colm.
> >> >> >> >>
> >> >> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com>
> >> wrote:
> >> >> >> >> >
> >> >> >> >> > Hi Colm,
> >> >> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta
> >> version)
> >> >> in CXF,
> >> >> >> >> > I got the following ws-security systests failures.
> >> >> >> >> > Could you please help look at if there is still something we
> >> need
> >> >> to fix in
> >> >> >> >> > wss4j ? Or we need to fix it in CXF ?
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> > Jim
> >> >> >> >> >
> >> >> >> >> > --------------------------------
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> >> >> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> >> >> encountered
> >> >> >> >> > when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> >> >> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> >> >> encountered
> >> >> >> >> > when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> >> >> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> >> >> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> >> error
> >> >> was
> >> >> >> >> > encountered when verifying the message
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >>
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> >> >> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
> >> >> elapsed:
> >> >> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws
> >> .xkms.XKMSTest
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> >> >> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> >> Could
> >> >> not find
> >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> > Caused by:
> >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
> >> >> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> >> >> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> >> >> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> >> Could
> >> >> not find
> >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> > Caused by:
> >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> >> >> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> >> >> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> >> >> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> >> Could
> >> >> not find
> >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> > Caused by:
> >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
> >> >> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> >> >> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> >> >> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> >> Could
> >> >> not find
> >> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> > Caused by:
> >> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> >> >> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >> >
> >> >> >> >> > [ERROR]
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> >> >> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
> >> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> >> for
> >> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> apache.org].
> >> >> Error:
> >> >> >> >> > Could not find wsdl:binding operation info for web method
> >> locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> >> XKMS
> >> >> locate
> >> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> >> OU=eng, O=
> >> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> >> for web
> >> >> >> >> > method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> >> wsdl:binding
> >> >> >> >> > operation info for web method locate.
> >> >> >> >> > at
> >> >> >> >> > org.apache.cxf.systest.ws
> >> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >> >
> >> >> >> >> > [INFO]
> >> >> >> >> > [INFO] Results:
> >> >> >> >> > [INFO]
> >> >> >> >> > [ERROR] Errors:
> >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> >> »
> >> >> SOAPFault
> >> >> >> >> > A security e...
> >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> >> »
> >> >> SOAPFault
> >> >> >> >> > A security e...
> >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> >> »
> >> >> SOAPFault
> >> >> >> >> > javax.xml.st...
> >> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> >> »
> >> >> SOAPFault
> >> >> >> >> > javax.xml.st...
> >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for cert...
> >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for cert...
> >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for cert...
> >> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for cert...
> >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for certi...
> >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for certi...
> >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for certi...
> >> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> >> locate call
> >> >> >> >> > fails for certi...
> >> >> >> >> > [INFO]
> >> >> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> >> >> >> >> > --------------------------------------------
>

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Andriy Redko <dr...@gmail.com>.
Hey Jim, Colm,

I merged the Opensaml + WSSJ4 changes [1] into the Jakarta branch [2], there is still an issue with non-existing artifact(s):

[ERROR] Failed to execute goal on project cxf-rt-security-saml: Could not resolve dependencies for project org.apache.cxf:cxf-rt-security-saml:bundle:4.0.0-SNAPSHOT: Could not find artifact org.apache.wss4j:wss4j-ws-security-dom:jar:3.0.0-SNAPSHOT in spring.milestone (https://repo.spring.io/milestone/) -> [Help 1]

It seems like wss4j-ws-security-dom is gone in 3.x [3], any replacement we could use?
Thanks!

[1] https://github.com/apache/cxf/pull/927
[2] https://github.com/apache/cxf/pull/912
[3] https://repository.apache.org/content/repositories/snapshots/org/apache/wss4j/wss4j-ws-security-dom/

Best Regards,
    Andriy Redko

JM> Thanks for the merge, Andriy.
JM> I just checked this test with this merge, I still get the same failure.


JM> On Sat, Mar 26, 2022 at 11:46 PM Andriy Redko <dr...@gmail.com> wrote:

>> Hey Jim, Colm,

>> I have created this pull request [1] to merge changes from OpenSaml4 to
>> Jakarta
>> branch, looks like everything is in, @Colm could you please take a look?
>> Thank you!

>> [1] https://github.com/apache/cxf/pull/927/files

>> JM> Hi Colm,
>> JM> You are right. My working branch missed several commits.
>> JM> This is a good idea to merge these missed things to jakarta branch.
>> I'll
>> JM> have a test again
>> JM> after @Andriy Redko <dr...@gmail.com> merge these changes.

>> JM> Thanks,
>> JM> Jim

>> JM> On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <
>> coheigea@apache.org>
>> JM> wrote:

>> >> Hi Jim,

>> >> Your branch is behind CXF master with regards several commits. I think
>> >> it would be better if we just worked off one official branch at CXF.
>> >> @Andriy Redko maybe we should just incorporate
>> >> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
>> >> so that I can look at what's failing with WSS4J 3.0.0?

>> >> Colm.

>> >> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
>> >> >
>> >> > Thanks for the quick fix, Colm.
>> >> >
>> >> > It seems there is another failure under
>> services/sts/systests/advanced:
>> >> >
>> >> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> >> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
>> elapsed:
>> >> 10.297 s <<< FAILURE! - in
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> >> > [ERROR]
>> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens
>> Time
>> >> elapsed: 9.671 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
>> encountered
>> >> when verifying the message
>> >> > at
>> >>
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> >> > at
>> >>
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> >> encountered when verifying the message
>> >> > at
>> >>
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> >> > at
>> >>
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>> >> >
>> >> > I checked these spring configuration files and other places, and
>> didn't
>> >> find the place we need to change to the jakarta namespace.
>> >> > Is there anything else we need to check ?
>> >> >
>> >> >
>> >> >
>> >> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <
>> coheigea@apache.org>
>> >> wrote:
>> >> >>
>> >> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
>> >> >> fixed it in CXF master here:
>> >> >>
>> >>
>> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
>> >> >>
>> >> >> Colm.
>> >> >>
>> >> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com>
>> wrote:
>> >> >> >
>> >> >> > Hi Colm,
>> >> >> >
>> >> >> > Please checkout my working branch :
>> >> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
>> >> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
>> >> >> > then go to systests/ws-security, run these tests and you'll get
>> these
>> >> test failures.
>> >> >> > Please let me know if you have other issues when trying this out.
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Jim
>> >> >> >
>> >> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
>> >> coheigea@apache.org> wrote:
>> >> >> >>
>> >> >> >> Hi Jim,
>> >> >> >>
>> >> >> >> Which branch are you testing this on in CXF?
>> >> >> >>
>> >> >> >> Colm.
>> >> >> >>
>> >> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com>
>> wrote:
>> >> >> >> >
>> >> >> >> > Hi Colm,
>> >> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta
>> version)
>> >> in CXF,
>> >> >> >> > I got the following ws-security systests failures.
>> >> >> >> > Could you please help look at if there is still something we
>> need
>> >> to fix in
>> >> >> >> > wss4j ? Or we need to fix it in CXF ?
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Jim
>> >> >> >> >
>> >> >> >> > --------------------------------
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>> >> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
>> >> encountered
>> >> >> >> > when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>> >> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
>> >> encountered
>> >> >> >> > when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>> >> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>> >> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
>> error
>> >> was
>> >> >> >> > encountered when verifying the message
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >>
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
>> >> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
>> >> elapsed:
>> >> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws
>> .xkms.XKMSTest
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>> >> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
>> Could
>> >> not find
>> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> > Caused by:
>> >> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
>> >> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>> >> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>> >> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
>> Could
>> >> not find
>> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> > Caused by:
>> >> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>> >> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>> >> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>> >> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
>> Could
>> >> not find
>> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> > Caused by:
>> >> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
>> >> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>> >> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>> >> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
>> Could
>> >> not find
>> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> > Caused by:
>> >> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>> >> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >> >
>> >> >> >> > [ERROR]
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>> >> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
>> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
>> for
>> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> apache.org].
>> >> Error:
>> >> >> >> > Could not find wsdl:binding operation info for web method
>> locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
>> XKMS
>> >> locate
>> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> >> OU=eng, O=
>> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> >> for web
>> >> >> >> > method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> >> wsdl:binding
>> >> >> >> > operation info for web method locate.
>> >> >> >> > at
>> >> >> >> > org.apache.cxf.systest.ws
>> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >> >
>> >> >> >> > [INFO]
>> >> >> >> > [INFO] Results:
>> >> >> >> > [INFO]
>> >> >> >> > [ERROR] Errors:
>> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
>> »
>> >> SOAPFault
>> >> >> >> > A security e...
>> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
>> »
>> >> SOAPFault
>> >> >> >> > A security e...
>> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
>> »
>> >> SOAPFault
>> >> >> >> > javax.xml.st...
>> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
>> »
>> >> SOAPFault
>> >> >> >> > javax.xml.st...
>> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for cert...
>> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for cert...
>> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for cert...
>> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for cert...
>> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> >> > org.apache.cxf.service.factory....
>> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> >> > org.apache.cxf.service.factory....
>> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> >> > org.apache.cxf.service.factory....
>> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> >> > org.apache.cxf.service.factory....
>> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for certi...
>> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for certi...
>> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for certi...
>> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> >> locate call
>> >> >> >> > fails for certi...
>> >> >> >> > [INFO]
>> >> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
>> >> >> >> > --------------------------------------------


Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Jim Ma <ma...@gmail.com>.
Thanks for the merge, Andriy.
I just checked this test with this merge, I still get the same failure.


On Sat, Mar 26, 2022 at 11:46 PM Andriy Redko <dr...@gmail.com> wrote:

> Hey Jim, Colm,
>
> I have created this pull request [1] to merge changes from OpenSaml4 to
> Jakarta
> branch, looks like everything is in, @Colm could you please take a look?
> Thank you!
>
> [1] https://github.com/apache/cxf/pull/927/files
>
> JM> Hi Colm,
> JM> You are right. My working branch missed several commits.
> JM> This is a good idea to merge these missed things to jakarta branch.
> I'll
> JM> have a test again
> JM> after @Andriy Redko <dr...@gmail.com> merge these changes.
>
> JM> Thanks,
> JM> Jim
>
> JM> On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <
> coheigea@apache.org>
> JM> wrote:
>
> >> Hi Jim,
>
> >> Your branch is behind CXF master with regards several commits. I think
> >> it would be better if we just worked off one official branch at CXF.
> >> @Andriy Redko maybe we should just incorporate
> >> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
> >> so that I can look at what's failing with WSS4J 3.0.0?
>
> >> Colm.
>
> >> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
> >> >
> >> > Thanks for the quick fix, Colm.
> >> >
> >> > It seems there is another failure under
> services/sts/systests/advanced:
> >> >
> >> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
> >> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> >> 10.297 s <<< FAILURE! - in
> org.apache.cxf.systest.sts.renew.SAMLRenewTest
> >> > [ERROR]
> >> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens
> Time
> >> elapsed: 9.671 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> encountered
> >> when verifying the message
> >> > at
> >>
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> >> > at
> >>
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> >> encountered when verifying the message
> >> > at
> >>
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> >> > at
> >>
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> >> >
> >> > I checked these spring configuration files and other places, and
> didn't
> >> find the place we need to change to the jakarta namespace.
> >> > Is there anything else we need to check ?
> >> >
> >> >
> >> >
> >> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <
> coheigea@apache.org>
> >> wrote:
> >> >>
> >> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
> >> >> fixed it in CXF master here:
> >> >>
> >>
> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
> >> >>
> >> >> Colm.
> >> >>
> >> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com>
> wrote:
> >> >> >
> >> >> > Hi Colm,
> >> >> >
> >> >> > Please checkout my working branch :
> >> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> >> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
> >> >> > then go to systests/ws-security, run these tests and you'll get
> these
> >> test failures.
> >> >> > Please let me know if you have other issues when trying this out.
> >> >> >
> >> >> > Thanks,
> >> >> > Jim
> >> >> >
> >> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
> >> coheigea@apache.org> wrote:
> >> >> >>
> >> >> >> Hi Jim,
> >> >> >>
> >> >> >> Which branch are you testing this on in CXF?
> >> >> >>
> >> >> >> Colm.
> >> >> >>
> >> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com>
> wrote:
> >> >> >> >
> >> >> >> > Hi Colm,
> >> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta
> version)
> >> in CXF,
> >> >> >> > I got the following ws-security systests failures.
> >> >> >> > Could you please help look at if there is still something we
> need
> >> to fix in
> >> >> >> > wss4j ? Or we need to fix it in CXF ?
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Jim
> >> >> >> >
> >> >> >> > --------------------------------
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> >> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> >> encountered
> >> >> >> > when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> >> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> >> encountered
> >> >> >> > when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> >> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> >> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> >> > javax.xml.stream.XMLStreamException:
> >> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security
> error
> >> was
> >> >> >> > encountered when verifying the message
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >>
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> >> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
> >> elapsed:
> >> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws
> .xkms.XKMSTest
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> >> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> Could
> >> not find
> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> > Caused by:
> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
> >> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> >> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> >> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> Could
> >> not find
> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> > Caused by:
> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> >> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> >> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> >> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> Could
> >> not find
> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> > Caused by:
> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
> >> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> >> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> >> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> >> > org.apache.cxf.service.factory.ServiceConstructionException:
> Could
> >> not find
> >> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> > Caused by:
> >> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> >> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >> >
> >> >> >> > [ERROR]
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> >> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
> >> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails
> for
> >> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org].
> >> Error:
> >> >> >> > Could not find wsdl:binding operation info for web method
> locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException:
> XKMS
> >> locate
> >> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> >> OU=eng, O=
> >> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> >> for web
> >> >> >> > method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> >> wsdl:binding
> >> >> >> > operation info for web method locate.
> >> >> >> > at
> >> >> >> > org.apache.cxf.systest.ws
> >> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >> >
> >> >> >> > [INFO]
> >> >> >> > [INFO] Results:
> >> >> >> > [INFO]
> >> >> >> > [ERROR] Errors:
> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> »
> >> SOAPFault
> >> >> >> > A security e...
> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> »
> >> SOAPFault
> >> >> >> > A security e...
> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> »
> >> SOAPFault
> >> >> >> > javax.xml.st...
> >> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194
> »
> >> SOAPFault
> >> >> >> > javax.xml.st...
> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for cert...
> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for cert...
> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for cert...
> >> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for cert...
> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> >> > org.apache.cxf.service.factory....
> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for certi...
> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for certi...
> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for certi...
> >> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> >> locate call
> >> >> >> > fails for certi...
> >> >> >> > [INFO]
> >> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> >> >> >> > --------------------------------------------
>
>

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Andriy Redko <dr...@gmail.com>.
Hey Jim, Colm,

I have created this pull request [1] to merge changes from OpenSaml4 to Jakarta 
branch, looks like everything is in, @Colm could you please take a look? 
Thank you!

[1] https://github.com/apache/cxf/pull/927/files

JM> Hi Colm,
JM> You are right. My working branch missed several commits.
JM> This is a good idea to merge these missed things to jakarta branch. I'll
JM> have a test again
JM> after @Andriy Redko <dr...@gmail.com> merge these changes.

JM> Thanks,
JM> Jim

JM> On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <co...@apache.org>
JM> wrote:

>> Hi Jim,

>> Your branch is behind CXF master with regards several commits. I think
>> it would be better if we just worked off one official branch at CXF.
>> @Andriy Redko maybe we should just incorporate
>> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
>> so that I can look at what's failing with WSS4J 3.0.0?

>> Colm.

>> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
>> >
>> > Thanks for the quick fix, Colm.
>> >
>> > It seems there is another failure under services/sts/systests/advanced:
>> >
>> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 10.297 s <<< FAILURE! - in org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> > [ERROR]
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens  Time
>> elapsed: 9.671 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>> when verifying the message
>> > at
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> > at
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> encountered when verifying the message
>> > at
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> > at
>> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>> >
>> > I checked these spring configuration files and other places, and didn't
>> find the place we need to change to the jakarta namespace.
>> > Is there anything else we need to check ?
>> >
>> >
>> >
>> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <co...@apache.org>
>> wrote:
>> >>
>> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
>> >> fixed it in CXF master here:
>> >>
>> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
>> >>
>> >> Colm.
>> >>
>> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
>> >> >
>> >> > Hi Colm,
>> >> >
>> >> > Please checkout my working branch :
>> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
>> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
>> >> > then go to systests/ws-security, run these tests and you'll get these
>> test failures.
>> >> > Please let me know if you have other issues when trying this out.
>> >> >
>> >> > Thanks,
>> >> > Jim
>> >> >
>> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
>> coheigea@apache.org> wrote:
>> >> >>
>> >> >> Hi Jim,
>> >> >>
>> >> >> Which branch are you testing this on in CXF?
>> >> >>
>> >> >> Colm.
>> >> >>
>> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
>> >> >> >
>> >> >> > Hi Colm,
>> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)
>> in CXF,
>> >> >> > I got the following ws-security systests failures.
>> >> >> > Could you please help look at if there is still something we need
>> to fix in
>> >> >> > wss4j ? Or we need to fix it in CXF ?
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Jim
>> >> >> >
>> >> >> > --------------------------------
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
>> encountered
>> >> >> > when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
>> encountered
>> >> >> > when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> >> > javax.xml.stream.XMLStreamException:
>> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
>> was
>> >> >> > encountered when verifying the message
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
>> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
>> elapsed:
>> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
>> not find
>> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> > Caused by:
>> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
>> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
>> not find
>> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> > Caused by:
>> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
>> not find
>> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> > Caused by:
>> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
>> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.WebServiceException:
>> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
>> not find
>> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> > Caused by:
>> org.apache.cxf.service.factory.ServiceConstructionException:
>> >> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >> >
>> >> >> > [ERROR]
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
>> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
>> Error:
>> >> >> > Could not find wsdl:binding operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
>> locate
>> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
>> OU=eng, O=
>> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
>> for web
>> >> >> > method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
>> wsdl:binding
>> >> >> > operation info for web method locate.
>> >> >> > at
>> >> >> > org.apache.cxf.systest.ws
>> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >> >
>> >> >> > [INFO]
>> >> >> > [INFO] Results:
>> >> >> > [INFO]
>> >> >> > [ERROR] Errors:
>> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
>> SOAPFault
>> >> >> > A security e...
>> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
>> SOAPFault
>> >> >> > A security e...
>> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
>> SOAPFault
>> >> >> > javax.xml.st...
>> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
>> SOAPFault
>> >> >> > javax.xml.st...
>> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> locate call
>> >> >> > fails for cert...
>> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> locate call
>> >> >> > fails for cert...
>> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> locate call
>> >> >> > fails for cert...
>> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
>> locate call
>> >> >> > fails for cert...
>> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> > org.apache.cxf.service.factory....
>> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> > org.apache.cxf.service.factory....
>> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> > org.apache.cxf.service.factory....
>> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> >> > org.apache.cxf.service.factory....
>> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> locate call
>> >> >> > fails for certi...
>> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> locate call
>> >> >> > fails for certi...
>> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> locate call
>> >> >> > fails for certi...
>> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
>> locate call
>> >> >> > fails for certi...
>> >> >> > [INFO]
>> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
>> >> >> > --------------------------------------------


Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Jim Ma <ma...@gmail.com>.
Hi Colm,
You are right. My working branch missed several commits.
This is a good idea to merge these missed things to jakarta branch. I'll
have a test again
after @Andriy Redko <dr...@gmail.com> merge these changes.

Thanks,
Jim

On Thu, Mar 24, 2022 at 4:31 PM Colm O hEigeartaigh <co...@apache.org>
wrote:

> Hi Jim,
>
> Your branch is behind CXF master with regards several commits. I think
> it would be better if we just worked off one official branch at CXF.
> @Andriy Redko maybe we should just incorporate
> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
> so that I can look at what's failing with WSS4J 3.0.0?
>
> Colm.
>
> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
> >
> > Thanks for the quick fix, Colm.
> >
> > It seems there is another failure under services/sts/systests/advanced:
> >
> > [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
> > [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 10.297 s <<< FAILURE! - in org.apache.cxf.systest.sts.renew.SAMLRenewTest
> > [ERROR]
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens  Time
> elapsed: 9.671 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
> when verifying the message
> > at
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> > at
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> encountered when verifying the message
> > at
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> > at
> org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> >
> > I checked these spring configuration files and other places, and didn't
> find the place we need to change to the jakarta namespace.
> > Is there anything else we need to check ?
> >
> >
> >
> > On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <co...@apache.org>
> wrote:
> >>
> >> The SAML failures were caused by a hard-coded String in SAMLUtils, I
> >> fixed it in CXF master here:
> >>
> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
> >>
> >> Colm.
> >>
> >> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
> >> >
> >> > Hi Colm,
> >> >
> >> > Please checkout my working branch :
> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> >> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
> >> > then go to systests/ws-security, run these tests and you'll get these
> test failures.
> >> > Please let me know if you have other issues when trying this out.
> >> >
> >> > Thanks,
> >> > Jim
> >> >
> >> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <
> coheigea@apache.org> wrote:
> >> >>
> >> >> Hi Jim,
> >> >>
> >> >> Which branch are you testing this on in CXF?
> >> >>
> >> >> Colm.
> >> >>
> >> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
> >> >> >
> >> >> > Hi Colm,
> >> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)
> in CXF,
> >> >> > I got the following ws-security systests failures.
> >> >> > Could you please help look at if there is still something we need
> to fix in
> >> >> > wss4j ? Or we need to fix it in CXF ?
> >> >> >
> >> >> > Thanks,
> >> >> > Jim
> >> >> >
> >> >> > --------------------------------
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> >> >> >  Time elapsed: 0.076 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> encountered
> >> >> > when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> >> >> >  Time elapsed: 0.069 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> encountered
> >> >> > when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> >> >> >  Time elapsed: 0.048 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> > javax.xml.stream.XMLStreamException:
> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> > javax.xml.stream.XMLStreamException:
> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> >> >> >  Time elapsed: 0.062 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> >> > javax.xml.stream.XMLStreamException:
> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> >> > javax.xml.stream.XMLStreamException:
> >> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error
> was
> >> >> > encountered when verifying the message
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> >> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
> elapsed:
> >> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> >> >> >  Time elapsed: 0.079 s  <<< ERROR!
> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
> >> >> >  Time elapsed: 0.051 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> >> >> >  Time elapsed: 0.047 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> >> >> >  Time elapsed: 0.065 s  <<< ERROR!
> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> >> >> >  Time elapsed: 0.053 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> >> >> >  Time elapsed: 0.036 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> >> >> >  Time elapsed: 0.07 s  <<< ERROR!
> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
> >> >> >  Time elapsed: 0.052 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> >> >> >  Time elapsed: 0.037 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> >> >> >  Time elapsed: 0.077 s  <<< ERROR!
> >> >> > jakarta.xml.ws.WebServiceException:
> >> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> >> > Could not find portType named {http://xkms_wsdl._03._
> >> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> >> >> >  Time elapsed: 0.054 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >> >
> >> >> > [ERROR]
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> >> >> >  Time elapsed: 0.039 s  <<< ERROR!
> >> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> >> > Could not find wsdl:binding operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> >> > call fails for certificate: [application: PKIX; id: CN=bob,
> OU=eng, O=
> >> >> > apache.org]. Error: Could not find wsdl:binding operation info
> for web
> >> >> > method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> >> > operation info for web method locate.
> >> >> > at
> >> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >> >
> >> >> > [INFO]
> >> >> > [INFO] Results:
> >> >> > [INFO]
> >> >> > [ERROR] Errors:
> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> >> > A security e...
> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> >> > A security e...
> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> >> > javax.xml.st...
> >> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> >> > javax.xml.st...
> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> locate call
> >> >> > fails for cert...
> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> locate call
> >> >> > fails for cert...
> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> locate call
> >> >> > fails for cert...
> >> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS
> locate call
> >> >> > fails for cert...
> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> > org.apache.cxf.service.factory....
> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> > org.apache.cxf.service.factory....
> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> > org.apache.cxf.service.factory....
> >> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> >> > org.apache.cxf.service.factory....
> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> locate call
> >> >> > fails for certi...
> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> locate call
> >> >> > fails for certi...
> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> locate call
> >> >> > fails for certi...
> >> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS
> locate call
> >> >> > fails for certi...
> >> >> > [INFO]
> >> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> >> >> > --------------------------------------------
>

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Andriy Redko <dr...@gmail.com>.
Hey Colm,

Yeah, sure, I could open the pull request to incorporate opensaml4 changes, 
will ping you shortly, thanks! 

PS: The Jakarta branch is open against origin [1], so if you need to push 
any fixes or changes - you could do that anytime :-)

https://github.com/apache/cxf/tree/CXF-8371

Thanks!

Best Regards,
    Andriy Redko

COh> Hi Jim,

COh> Your branch is behind CXF master with regards several commits. I think
COh> it would be better if we just worked off one official branch at CXF.
COh> @Andriy Redko maybe we should just incorporate
COh> https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
COh> so that I can look at what's failing with WSS4J 3.0.0?

COh> Colm.

COh> On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:

>> Thanks for the quick fix, Colm.

>> It seems there is another failure under services/sts/systests/advanced:

>> [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.297 s <<< FAILURE! - in org.apache.cxf.systest.sts.renew.SAMLRenewTest
>> [ERROR] org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens  Time elapsed: 9.671 s  <<< ERROR!
>> jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message
>> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>> Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message
>> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
>> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)

>> I checked these spring configuration files and other places, and didn't find the place we need to change to the jakarta namespace.
>> Is there anything else we need to check ?



>> On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <co...@apache.org> wrote:

>>> The SAML failures were caused by a hard-coded String in SAMLUtils, I
>>> fixed it in CXF master here:
>>> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032

>>> Colm.

>>> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
>>> >
>>> > Hi Colm,
>>> >
>>> > Please checkout my working branch : https://github.com/jimma/cxf/tree/wss4j-30-jakarta
>>> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
>>> > then go to systests/ws-security, run these tests and you'll get these test failures.
>>> > Please let me know if you have other issues when trying this out.
>>> >
>>> > Thanks,
>>> > Jim
>>> >
>>> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <co...@apache.org> wrote:
>>> >>
>>> >> Hi Jim,
>>> >>
>>> >> Which branch are you testing this on in CXF?
>>> >>
>>> >> Colm.
>>> >>
>>> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
>>> >> >
>>> >> > Hi Colm,
>>> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in CXF,
>>> >> > I got the following ws-security systests failures.
>>> >> > Could you please help look at if there is still something we need to fix in
>>> >> > wss4j ? Or we need to fix it in CXF ?
>>> >> >
>>> >> > Thanks,
>>> >> > Jim
>>> >> >
>>> >> > --------------------------------
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>>> >> >  Time elapsed: 0.076 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>>> >> > when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>>> >> >  Time elapsed: 0.069 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>>> >> > when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>>> >> >  Time elapsed: 0.048 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException:
>>> >> > javax.xml.stream.XMLStreamException:
>>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>>> >> > javax.xml.stream.XMLStreamException:
>>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>>> >> >  Time elapsed: 0.062 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException:
>>> >> > javax.xml.stream.XMLStreamException:
>>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>>> >> > javax.xml.stream.XMLStreamException:
>>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>>> >> > encountered when verifying the message
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>>> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
>>> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
>>> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>>> >> >  Time elapsed: 0.079 s  <<< ERROR!
>>> >> > jakarta.xml.ws.WebServiceException:
>>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>>> >> > Could not find portType named {http://xkms_wsdl._03._
>>> >> > 2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
>>> >> >  Time elapsed: 0.051 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>>> >> >  Time elapsed: 0.047 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>>> >> >  Time elapsed: 0.065 s  <<< ERROR!
>>> >> > jakarta.xml.ws.WebServiceException:
>>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>>> >> > Could not find portType named {http://xkms_wsdl._03._
>>> >> > 2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>>> >> >  Time elapsed: 0.053 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>>> >> >  Time elapsed: 0.036 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>>> >> >  Time elapsed: 0.07 s  <<< ERROR!
>>> >> > jakarta.xml.ws.WebServiceException:
>>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>>> >> > Could not find portType named {http://xkms_wsdl._03._
>>> >> > 2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
>>> >> >  Time elapsed: 0.052 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>>> >> >  Time elapsed: 0.037 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>>> >> >  Time elapsed: 0.077 s  <<< ERROR!
>>> >> > jakarta.xml.ws.WebServiceException:
>>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>>> >> > Could not find portType named {http://xkms_wsdl._03._
>>> >> > 2002.w3.org/}XKMSPortType
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>>> >> >  Time elapsed: 0.054 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>>> >> >
>>> >> > [ERROR]
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>>> >> >  Time elapsed: 0.039 s  <<< ERROR!
>>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>>> >> > Could not find wsdl:binding operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>>> >> > method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>>> >> > operation info for web method locate.
>>> >> > at
>>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>>> >> >
>>> >> > [INFO]
>>> >> > [INFO] Results:
>>> >> > [INFO]
>>> >> > [ERROR] Errors:
>>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>>> >> > A security e...
>>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>>> >> > A security e...
>>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>>> >> > javax.xml.st...
>>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>>> >> > javax.xml.st...
>>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>>> >> > fails for cert...
>>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>>> >> > fails for cert...
>>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>>> >> > fails for cert...
>>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>>> >> > fails for cert...
>>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>>> >> > org.apache.cxf.service.factory....
>>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>>> >> > org.apache.cxf.service.factory....
>>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>>> >> > org.apache.cxf.service.factory....
>>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>>> >> > org.apache.cxf.service.factory....
>>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>>> >> > fails for certi...
>>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>>> >> > fails for certi...
>>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>>> >> > fails for certi...
>>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>>> >> > fails for certi...
>>> >> > [INFO]
>>> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
>>> >> > --------------------------------------------


Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Jim,

Your branch is behind CXF master with regards several commits. I think
it would be better if we just worked off one official branch at CXF.
@Andriy Redko maybe we should just incorporate
https://github.com/apache/cxf/tree/opensaml4 into your Jakarta branch
so that I can look at what's failing with WSS4J 3.0.0?

Colm.

On Wed, Mar 23, 2022 at 12:42 PM Jim Ma <ma...@gmail.com> wrote:
>
> Thanks for the quick fix, Colm.
>
> It seems there is another failure under services/sts/systests/advanced:
>
> [INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.297 s <<< FAILURE! - in org.apache.cxf.systest.sts.renew.SAMLRenewTest
> [ERROR] org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens  Time elapsed: 9.671 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message
> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
> Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message
> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
> at org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
>
> I checked these spring configuration files and other places, and didn't find the place we need to change to the jakarta namespace.
> Is there anything else we need to check ?
>
>
>
> On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <co...@apache.org> wrote:
>>
>> The SAML failures were caused by a hard-coded String in SAMLUtils, I
>> fixed it in CXF master here:
>> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
>>
>> Colm.
>>
>> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
>> >
>> > Hi Colm,
>> >
>> > Please checkout my working branch : https://github.com/jimma/cxf/tree/wss4j-30-jakarta
>> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
>> > then go to systests/ws-security, run these tests and you'll get these test failures.
>> > Please let me know if you have other issues when trying this out.
>> >
>> > Thanks,
>> > Jim
>> >
>> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <co...@apache.org> wrote:
>> >>
>> >> Hi Jim,
>> >>
>> >> Which branch are you testing this on in CXF?
>> >>
>> >> Colm.
>> >>
>> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
>> >> >
>> >> > Hi Colm,
>> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in CXF,
>> >> > I got the following ws-security systests failures.
>> >> > Could you please help look at if there is still something we need to fix in
>> >> > wss4j ? Or we need to fix it in CXF ?
>> >> >
>> >> > Thanks,
>> >> > Jim
>> >> >
>> >> > --------------------------------
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>> >> >  Time elapsed: 0.076 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>> >> > when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>> >> >  Time elapsed: 0.069 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>> >> > when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>> >> >  Time elapsed: 0.048 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> > javax.xml.stream.XMLStreamException:
>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> > javax.xml.stream.XMLStreamException:
>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>> >> >  Time elapsed: 0.062 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException:
>> >> > javax.xml.stream.XMLStreamException:
>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> >> > javax.xml.stream.XMLStreamException:
>> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> >> > encountered when verifying the message
>> >> > at
>> >> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
>> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
>> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>> >> >  Time elapsed: 0.079 s  <<< ERROR!
>> >> > jakarta.xml.ws.WebServiceException:
>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> > 2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
>> >> >  Time elapsed: 0.051 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>> >> >  Time elapsed: 0.047 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>> >> >  Time elapsed: 0.065 s  <<< ERROR!
>> >> > jakarta.xml.ws.WebServiceException:
>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> > 2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>> >> >  Time elapsed: 0.053 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>> >> >  Time elapsed: 0.036 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>> >> >  Time elapsed: 0.07 s  <<< ERROR!
>> >> > jakarta.xml.ws.WebServiceException:
>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> > 2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
>> >> >  Time elapsed: 0.052 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>> >> >  Time elapsed: 0.037 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>> >> >  Time elapsed: 0.077 s  <<< ERROR!
>> >> > jakarta.xml.ws.WebServiceException:
>> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> >> > Could not find portType named {http://xkms_wsdl._03._
>> >> > 2002.w3.org/}XKMSPortType
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>> >> >  Time elapsed: 0.054 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >> >
>> >> > [ERROR]
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>> >> >  Time elapsed: 0.039 s  <<< ERROR!
>> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> >> > Could not find wsdl:binding operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> >> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> >> > method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> >> > operation info for web method locate.
>> >> > at
>> >> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >> >
>> >> > [INFO]
>> >> > [INFO] Results:
>> >> > [INFO]
>> >> > [ERROR] Errors:
>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> >> > A security e...
>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> >> > A security e...
>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> >> > javax.xml.st...
>> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> >> > javax.xml.st...
>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> >> > fails for cert...
>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> >> > fails for cert...
>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> >> > fails for cert...
>> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> >> > fails for cert...
>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> > org.apache.cxf.service.factory....
>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> > org.apache.cxf.service.factory....
>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> > org.apache.cxf.service.factory....
>> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> >> > org.apache.cxf.service.factory....
>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> >> > fails for certi...
>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> >> > fails for certi...
>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> >> > fails for certi...
>> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> >> > fails for certi...
>> >> > [INFO]
>> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
>> >> > --------------------------------------------

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Jim Ma <ma...@gmail.com>.
Thanks for the quick fix, Colm.

It seems there is another failure under services/sts/systests/advanced:

[INFO] Running org.apache.cxf.systest.sts.renew.SAMLRenewTest
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
10.297 s <<< FAILURE! - in org.apache.cxf.systest.sts.renew.SAMLRenewTest
[ERROR]
org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens  Time
elapsed: 9.671 s  <<< ERROR!
jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
when verifying the message
at
org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
at
org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)
Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
encountered when verifying the message
at
org.apache.cxf.systest.sts.renew.SAMLRenewTest.doubleIt(SAMLRenewTest.java:145)
at
org.apache.cxf.systest.sts.renew.SAMLRenewTest.testRenewExpiredTokens(SAMLRenewTest.java:116)

I checked these spring configuration files and other places, and didn't
find the place we need to change to the jakarta namespace.
Is there anything else we need to check ?



On Wed, Mar 23, 2022 at 7:15 PM Colm O hEigeartaigh <co...@apache.org>
wrote:

> The SAML failures were caused by a hard-coded String in SAMLUtils, I
> fixed it in CXF master here:
>
> https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032
>
> Colm.
>
> On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
> >
> > Hi Colm,
> >
> > Please checkout my working branch :
> https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> > Build all cxf artifacts first with: mvn clean install -Pfastinstall
> > then go to systests/ws-security, run these tests and you'll get these
> test failures.
> > Please let me know if you have other issues when trying this out.
> >
> > Thanks,
> > Jim
> >
> > On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <co...@apache.org>
> wrote:
> >>
> >> Hi Jim,
> >>
> >> Which branch are you testing this on in CXF?
> >>
> >> Colm.
> >>
> >> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
> >> >
> >> > Hi Colm,
> >> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in
> CXF,
> >> > I got the following ws-security systests failures.
> >> > Could you please help look at if there is still something we need to
> fix in
> >> > wss4j ? Or we need to fix it in CXF ?
> >> >
> >> > Thanks,
> >> > Jim
> >> >
> >> > --------------------------------
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> >> >  Time elapsed: 0.076 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> encountered
> >> > when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> >> >  Time elapsed: 0.069 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: A security error was
> encountered
> >> > when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> >> >  Time elapsed: 0.048 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> > javax.xml.stream.XMLStreamException:
> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> > javax.xml.stream.XMLStreamException:
> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> >> >  Time elapsed: 0.062 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException:
> >> > javax.xml.stream.XMLStreamException:
> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> >> > javax.xml.stream.XMLStreamException:
> >> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> >> > encountered when verifying the message
> >> > at
> >> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> >> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time
> elapsed:
> >> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> >> >  Time elapsed: 0.079 s  <<< ERROR!
> >> > jakarta.xml.ws.WebServiceException:
> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> > Could not find portType named {http://xkms_wsdl._03._
> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14087:dom]
> >> >  Time elapsed: 0.051 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> >> >  Time elapsed: 0.047 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> >> >  Time elapsed: 0.065 s  <<< ERROR!
> >> > jakarta.xml.ws.WebServiceException:
> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> > Could not find portType named {http://xkms_wsdl._03._
> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> >> >  Time elapsed: 0.053 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> >> >  Time elapsed: 0.036 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> >> >  Time elapsed: 0.07 s  <<< ERROR!
> >> > jakarta.xml.ws.WebServiceException:
> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> > Could not find portType named {http://xkms_wsdl._03._
> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14088:dom]
> >> >  Time elapsed: 0.052 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> >> >  Time elapsed: 0.037 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> >> >  Time elapsed: 0.077 s  <<< ERROR!
> >> > jakarta.xml.ws.WebServiceException:
> >> > org.apache.cxf.service.factory.ServiceConstructionException: Could
> not find
> >> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> > Caused by:
> org.apache.cxf.service.factory.ServiceConstructionException:
> >> > Could not find portType named {http://xkms_wsdl._03._
> >> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> >> >  Time elapsed: 0.054 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >> >
> >> > [ERROR]
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> >> >  Time elapsed: 0.039 s  <<< ERROR!
> >> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> >> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> >> > Could not find wsdl:binding operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS
> locate
> >> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> >> > apache.org]. Error: Could not find wsdl:binding operation info for
> web
> >> > method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> >> > operation info for web method locate.
> >> > at
> >> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >> >
> >> > [INFO]
> >> > [INFO] Results:
> >> > [INFO]
> >> > [ERROR] Errors:
> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> > A security e...
> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> > A security e...
> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> > javax.xml.st...
> >> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> >> > javax.xml.st...
> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate
> call
> >> > fails for cert...
> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate
> call
> >> > fails for cert...
> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate
> call
> >> > fails for cert...
> >> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate
> call
> >> > fails for cert...
> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> > org.apache.cxf.service.factory....
> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> > org.apache.cxf.service.factory....
> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> > org.apache.cxf.service.factory....
> >> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> >> > org.apache.cxf.service.factory....
> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate
> call
> >> > fails for certi...
> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate
> call
> >> > fails for certi...
> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate
> call
> >> > fails for certi...
> >> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate
> call
> >> > fails for certi...
> >> > [INFO]
> >> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> >> > --------------------------------------------
>

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Colm O hEigeartaigh <co...@apache.org>.
The SAML failures were caused by a hard-coded String in SAMLUtils, I
fixed it in CXF master here:
https://github.com/apache/cxf/commit/1e90f53f720b76c2dbac910e58ef0b291f98c032

Colm.

On Tue, Mar 22, 2022 at 12:48 PM Jim Ma <ma...@gmail.com> wrote:
>
> Hi Colm,
>
> Please checkout my working branch : https://github.com/jimma/cxf/tree/wss4j-30-jakarta
> Build all cxf artifacts first with: mvn clean install -Pfastinstall
> then go to systests/ws-security, run these tests and you'll get these test failures.
> Please let me know if you have other issues when trying this out.
>
> Thanks,
> Jim
>
> On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <co...@apache.org> wrote:
>>
>> Hi Jim,
>>
>> Which branch are you testing this on in CXF?
>>
>> Colm.
>>
>> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
>> >
>> > Hi Colm,
>> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in CXF,
>> > I got the following ws-security systests failures.
>> > Could you please help look at if there is still something we need to fix in
>> > wss4j ? Or we need to fix it in CXF ?
>> >
>> > Thanks,
>> > Jim
>> >
>> > --------------------------------
>> > [ERROR]
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>> >  Time elapsed: 0.076 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>> > when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>> >  Time elapsed: 0.069 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
>> > when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>> >  Time elapsed: 0.048 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException:
>> > javax.xml.stream.XMLStreamException:
>> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> > javax.xml.stream.XMLStreamException:
>> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>> >  Time elapsed: 0.062 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException:
>> > javax.xml.stream.XMLStreamException:
>> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> > Caused by: org.apache.cxf.binding.soap.SoapFault:
>> > javax.xml.stream.XMLStreamException:
>> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
>> > encountered when verifying the message
>> > at
>> > org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
>> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
>> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>> >  Time elapsed: 0.079 s  <<< ERROR!
>> > jakarta.xml.ws.WebServiceException:
>> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> > Could not find portType named {http://xkms_wsdl._03._
>> > 2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
>> >  Time elapsed: 0.051 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>> >  Time elapsed: 0.047 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>> >  Time elapsed: 0.065 s  <<< ERROR!
>> > jakarta.xml.ws.WebServiceException:
>> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> > Could not find portType named {http://xkms_wsdl._03._
>> > 2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>> >  Time elapsed: 0.053 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>> >  Time elapsed: 0.036 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>> >  Time elapsed: 0.07 s  <<< ERROR!
>> > jakarta.xml.ws.WebServiceException:
>> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> > Could not find portType named {http://xkms_wsdl._03._
>> > 2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
>> >  Time elapsed: 0.052 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>> >  Time elapsed: 0.037 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>> >  Time elapsed: 0.077 s  <<< ERROR!
>> > jakarta.xml.ws.WebServiceException:
>> > org.apache.cxf.service.factory.ServiceConstructionException: Could not find
>> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
>> > Could not find portType named {http://xkms_wsdl._03._
>> > 2002.w3.org/}XKMSPortType
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>> >  Time elapsed: 0.054 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>> >
>> > [ERROR]
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>> >  Time elapsed: 0.039 s  <<< ERROR!
>> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
>> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
>> > Could not find wsdl:binding operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
>> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
>> > apache.org]. Error: Could not find wsdl:binding operation info for web
>> > method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> > Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
>> > operation info for web method locate.
>> > at
>> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>> >
>> > [INFO]
>> > [INFO] Results:
>> > [INFO]
>> > [ERROR] Errors:
>> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> > A security e...
>> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> > A security e...
>> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> > javax.xml.st...
>> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
>> > javax.xml.st...
>> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> > fails for cert...
>> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> > fails for cert...
>> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> > fails for cert...
>> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
>> > fails for cert...
>> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> > org.apache.cxf.service.factory....
>> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> > org.apache.cxf.service.factory....
>> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> > org.apache.cxf.service.factory....
>> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
>> > org.apache.cxf.service.factory....
>> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> > fails for certi...
>> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> > fails for certi...
>> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> > fails for certi...
>> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
>> > fails for certi...
>> > [INFO]
>> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
>> > --------------------------------------------

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Jim Ma <ma...@gmail.com>.
Hi Colm,

Please checkout my working branch :
https://github.com/jimma/cxf/tree/wss4j-30-jakarta
Build all cxf artifacts first with: mvn clean install -Pfastinstall
then go to systests/ws-security, run these tests and you'll get these test
failures.
Please let me know if you have other issues when trying this out.

Thanks,
Jim

On Tue, Mar 22, 2022 at 5:18 PM Colm O hEigeartaigh <co...@apache.org>
wrote:

> Hi Jim,
>
> Which branch are you testing this on in CXF?
>
> Colm.
>
> On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
> >
> > Hi Colm,
> > After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in
> CXF,
> > I got the following ws-security systests failures.
> > Could you please help look at if there is still something we need to fix
> in
> > wss4j ? Or we need to fix it in CXF ?
> >
> > Thanks,
> > Jim
> >
> > --------------------------------
> > [ERROR]
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
> >  Time elapsed: 0.076 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
> > when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
> >  Time elapsed: 0.069 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
> > when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
> >  Time elapsed: 0.048 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException:
> > javax.xml.stream.XMLStreamException:
> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> > javax.xml.stream.XMLStreamException:
> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
> >  Time elapsed: 0.062 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException:
> > javax.xml.stream.XMLStreamException:
> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > Caused by: org.apache.cxf.binding.soap.SoapFault:
> > javax.xml.stream.XMLStreamException:
> > org.apache.wss4j.common.ext.WSSecurityException: A security error was
> > encountered when verifying the message
> > at
> > org.apache.cxf.systest.ws
> .saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> > [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> > [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
> > 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
> >  Time elapsed: 0.079 s  <<< ERROR!
> > jakarta.xml.ws.WebServiceException:
> > org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find
> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> > Could not find portType named {http://xkms_wsdl._03._
> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
> >  Time elapsed: 0.051 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
> >  Time elapsed: 0.047 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
> >  Time elapsed: 0.065 s  <<< ERROR!
> > jakarta.xml.ws.WebServiceException:
> > org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find
> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> > Could not find portType named {http://xkms_wsdl._03._
> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14087:streaming]
> >  Time elapsed: 0.053 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
> >  Time elapsed: 0.036 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
> >  Time elapsed: 0.07 s  <<< ERROR!
> > jakarta.xml.ws.WebServiceException:
> > org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find
> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> > Could not find portType named {http://xkms_wsdl._03._
> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
> >  Time elapsed: 0.052 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
> >  Time elapsed: 0.037 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
> >  Time elapsed: 0.077 s  <<< ERROR!
> > jakarta.xml.ws.WebServiceException:
> > org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find
> > portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> > Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> > Could not find portType named {http://xkms_wsdl._03._
> > 2002.w3.org/}XKMSPortType <http://2002.w3.org/%7DXKMSPortType>
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding[14088:streaming]
> >  Time elapsed: 0.054 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> >
> > [ERROR]
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
> >  Time elapsed: 0.039 s  <<< ERROR!
> > jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> > certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org].
> Error:
> > Could not find wsdl:binding operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> > call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> > apache.org]. Error: Could not find wsdl:binding operation info for web
> > method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> > Caused by: jakarta.xml.ws.WebServiceException: Could not find
> wsdl:binding
> > operation info for web method locate.
> > at
> > org.apache.cxf.systest.ws
> .xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> >
> > [INFO]
> > [INFO] Results:
> > [INFO]
> > [ERROR] Errors:
> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> > A security e...
> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> > A security e...
> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> > javax.xml.st...
> > [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 »
> SOAPFault
> > javax.xml.st...
> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> > fails for cert...
> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> > fails for cert...
> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> > fails for cert...
> > [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> > fails for cert...
> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > org.apache.cxf.service.factory....
> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > org.apache.cxf.service.factory....
> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > org.apache.cxf.service.factory....
> > [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> > org.apache.cxf.service.factory....
> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> > fails for certi...
> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> > fails for certi...
> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> > fails for certi...
> > [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> > fails for certi...
> > [INFO]
> > [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> > --------------------------------------------
>

Re: Systest failures with wss4j-3.0.0-SNAPSHOT

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Jim,

Which branch are you testing this on in CXF?

Colm.

On Mon, Mar 21, 2022 at 7:26 AM Jim Ma <ma...@gmail.com> wrote:
>
> Hi Colm,
> After I upgraded wss4j version to 3.0.0-SNAPSHOT(jakarta version)  in CXF,
> I got the following ws-security systests failures.
> Could you please help look at if there is still something we need to fix in
> wss4j ? Or we need to fix it in CXF ?
>
> Thanks,
> Jim
>
> --------------------------------
> [ERROR]
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:dom]
>  Time elapsed: 0.076 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
> when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>
> [ERROR]
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14036:streaming]
>  Time elapsed: 0.069 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: A security error was encountered
> when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>
> [ERROR]
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:dom]
>  Time elapsed: 0.048 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException:
> javax.xml.stream.XMLStreamException:
> org.apache.wss4j.common.ext.WSSecurityException: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> Caused by: org.apache.cxf.binding.soap.SoapFault:
> javax.xml.stream.XMLStreamException:
> org.apache.wss4j.common.ext.WSSecurityException: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
>
> [ERROR]
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName[14037:streaming]
>  Time elapsed: 0.062 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException:
> javax.xml.stream.XMLStreamException:
> org.apache.wss4j.common.ext.WSSecurityException: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> Caused by: org.apache.cxf.binding.soap.SoapFault:
> javax.xml.stream.XMLStreamException:
> org.apache.wss4j.common.ext.WSSecurityException: A security error was
> encountered when verifying the message
> at
> org.apache.cxf.systest.ws.saml.SamlTokenTest.testAudienceRestrictionServiceName(SamlTokenTest.java:1194)
> [INFO] Running org.apache.cxf.systest.ws.xkms.XKMSTest
> [ERROR] Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed:
> 1.006 s <<< FAILURE! - in org.apache.cxf.systest.ws.xkms.XKMSTest
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:dom]
>  Time elapsed: 0.079 s  <<< ERROR!
> jakarta.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not find
> portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> Could not find portType named {http://xkms_wsdl._03._
> 2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:dom]
>  Time elapsed: 0.051 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:dom]
>  Time elapsed: 0.047 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14087:streaming]
>  Time elapsed: 0.065 s  <<< ERROR!
> jakarta.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not find
> portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> Could not find portType named {http://xkms_wsdl._03._
> 2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14087:streaming]
>  Time elapsed: 0.053 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14087:streaming]
>  Time elapsed: 0.036 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:dom]
>  Time elapsed: 0.07 s  <<< ERROR!
> jakarta.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not find
> portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> Could not find portType named {http://xkms_wsdl._03._
> 2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:dom]
>  Time elapsed: 0.052 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:dom]
>  Time elapsed: 0.037 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest[14088:streaming]
>  Time elapsed: 0.077 s  <<< ERROR!
> jakarta.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not find
> portType named {http://xkms_wsdl._03._2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
> Could not find portType named {http://xkms_wsdl._03._
> 2002.w3.org/}XKMSPortType
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testRegisterUnitTest(XKMSTest.java:135)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding[14088:streaming]
>  Time elapsed: 0.054 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testSymmetricBinding(XKMSTest.java:211)
>
> [ERROR]
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding[14088:streaming]
>  Time elapsed: 0.039 s  <<< ERROR!
> jakarta.xml.ws.soap.SOAPFaultException: XKMS locate call fails for
> certificate: [application: PKIX; id: CN=bob, OU=eng, O=apache.org]. Error:
> Could not find wsdl:binding operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: org.apache.cxf.xkms.exception.XKMSLocateException: XKMS locate
> call fails for certificate: [application: PKIX; id: CN=bob, OU=eng, O=
> apache.org]. Error: Could not find wsdl:binding operation info for web
> method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
> Caused by: jakarta.xml.ws.WebServiceException: Could not find wsdl:binding
> operation info for web method locate.
> at
> org.apache.cxf.systest.ws.xkms.XKMSTest.testAsymmetricBinding(XKMSTest.java:241)
>
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
> A security e...
> [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
> A security e...
> [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
> javax.xml.st...
> [ERROR]   SamlTokenTest.testAudienceRestrictionServiceName:1194 » SOAPFault
> javax.xml.st...
> [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> fails for cert...
> [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> fails for cert...
> [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> fails for cert...
> [ERROR]   XKMSTest.testAsymmetricBinding:241 » SOAPFault XKMS locate call
> fails for cert...
> [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> org.apache.cxf.service.factory....
> [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> org.apache.cxf.service.factory....
> [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> org.apache.cxf.service.factory....
> [ERROR]   XKMSTest.testRegisterUnitTest:135 » WebService
> org.apache.cxf.service.factory....
> [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> fails for certi...
> [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> fails for certi...
> [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> fails for certi...
> [ERROR]   XKMSTest.testSymmetricBinding:211 » SOAPFault XKMS locate call
> fails for certi...
> [INFO]
> [ERROR] Tests run: 974, Failures: 0, Errors: 16, Skipped: 5
> --------------------------------------------