Re: The signature or decryption was invalid

2011-09-29 Thread yannick
I found some posts that this problem would be solved in cxf 2.4.1 - snapshot
... So I tried to change to 2.4.1 to see if it gives a difference but still
same problem.

The weird thing for me is that it works perfectly on windows but not on
linux... 

--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-signature-or-decryption-was-invalid-tp4845894p4852160.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: The signature or decryption was invalid

2011-09-28 Thread yannick
http://schemas.xmlsoap.org/soap/envelope/";>

http://www.w3.org/2005/08/addressing";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Id-9420949">urn:#sendAccreditationRequest
http://www.w3.org/2005/08/addressing";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Id-114358">urn:uuid:f331598e-ce3d-4495-b81b-608a79abe2d9
http://www.w3.org/2005/08/addressing";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Id-16735201">http://www.trbodv.ep.parl.union.eu/epservice/services/bridgeService
http://www.w3.org/2005/08/addressing";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Id-15280879">

http://www.w3.org/2005/08/addressing/anonymous

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
soap:mustUnderstand="1">
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
wsu:Id="X509-B983AEEC5EF34F8663131721330071321">MIIBoTCCAQqgAwIBAgIETmS++DANBgkqhkiG9w0BAQUFADAVMRMwEQYDVQQDEwpjbGllbnR1c2VyMB4XDTExMDkwNTEyMjIxNloXDTExMTIwNDEyMjIxNlowFTETMBEGA1UEAxMKY2xpZW50dXNlcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAkb0+o53fvc/VbEYiP3WQLkGcBeF9GwiCVQNmoScuDx/+J43pbKi8fNs+2dCsDrWJWY3rlUSpHjRGQDpyFr4gLlIJcoo7y9MOsdzk4/u/KaTyi89XjclMVRC1CP5+V28KJ+bjDw0QMuFq6mhErBH3c2upnLTTepBu3P86tWgXxGsCAwEAATANBgkqhkiG9w0BAQUFAAOBgQCRJWaLpA2OXAoG6U8Rrfrp2ROl5c/SDHmWHfVeSb1uakPOz9TVoE6EfN9zKs+0wzKLW8LIYU5J5+zhZEwGBMNKFFNTH3S12QGoh3zL0sOEh+vmgaUY2qiUVCqRKha1XBYdhazb1tn9uSqav2/Ht8+bUYR7rbMXBnVxUE2rQu9Z+Q==


2011-09-28T12:35:00.711Z

2011-09-28T12:40:00.711Z

http://www.w3.org/2001/04/xmlenc#";
Id="EK-B983AEEC5EF34F8663131721330072224">
http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>
http://www.w3.org/2000/09/xmldsig#";>




CN=localhost

1315225326






KMu78KFwWH4VDP6lU5MUnjshwHIdG1Z01RcIsP93EmlTrE8eQmQ+nFsrqlpefyxNgE9jmWWleka+XHY4TD9yyXXXDUqeN6w0GrYPaSVs6e1c96qHGHt2VLJFQGLFG2OxlINjRgeqOgHK72x9hPS/A0azUVsBpmGbrKieD0ZH/RQ=





http://www.w3.org/2000/09/xmldsig#"; Id="SIG-17">

http://www.w3.org/2001/10/xml-exc-c14n#";>
http://www.w3.org/2001/10/xml-exc-c14n#"; PrefixList="soap"/>

http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>


http://www.w3.org/2001/10/xml-exc-c14n#";>

http://www.w3.org/2001/10/xml-exc-c14n#"; PrefixList="wsse soap"/>


http://www.w3.org/2000/09/xmldsig#sha1"/>

ZC/gxN0Gb9Aylm14orvGKo4TmD0=



http://www.w3.org/2001/10/xml-exc-c14n#";>

http://www.w3.org/2001/10/xml-exc-c14n#"; PrefixList=""/>


http://www.w3.org/2000/09/xmldsig#sha1"/>

2XAYu/v2FeHzJN8KtKEs4uw3oBk=

Re: The signature or decryption was invalid

2011-09-28 Thread yannick
We noticed that cxf has problems with the referencing in the request in
linux... We took out ts-16 reference and then it complained on the next
one...

Any ideas?

--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-signature-or-decryption-was-invalid-tp4845894p4849193.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: The signature or decryption was invalid

2011-09-28 Thread yannick
Maye also interresting the stacktrace: 

org.apache.ws.security.WSSecurityException: The signature or decryption was
invalid
at
org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:373)
at
org.apache.ws.security.processor.SignatureProcessor.handleToken(SignatureProcessor.java:172)
at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:396)
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:249)
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.handleMessage(WSS4JInInterceptor.java:85)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:200)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.crypto.dsig.XMLSignatureException:
javax.xml.crypto.URIReferenceException:
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID TS-16
at
org.jcp.xml.dsig.internal.dom.DOMReference.dereference(DOMReference.java:352)
at
org.jcp.xml.dsig.internal.dom.DOMReference.validate(DOMReference.java:311)
at
org.jcp.xml.dsig.internal.dom.DOMXMLSignature.validate(DOMXMLSignature.java:244)
at
org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:348)
... 26 more
Caused by: javax.xml.crypto.URIReferenceException:
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID TS-16
at
org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:84)
at
org.jcp.xml.dsig.internal.dom.DOMReference.dereference(DOMReference.java:344)
... 29 more
Caused by:
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID TS-16
at
com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverFragment.engineResolve(ResolverFragment.java:89)
at
com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver.resolve(ResourceResolver.java:236)
at
org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:77)
... 30 more

--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-signature-or-decryption-was-invalid-tp4845894p4849010.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: The signature or decryption was invalid

2011-09-28 Thread yannick
Colm I send you a PM with the testcase. 

if someone else wants the testcase let me know I will pm you then.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-signature-or-decryption-was-invalid-tp4845894p4848446.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: The signature or decryption was invalid

2011-09-28 Thread yannick
Anyone have any ideas? 

--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-signature-or-decryption-was-invalid-tp4845894p4848221.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-08 Thread yannick
Everyone thanks for the help my client works :)

--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782897.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-08 Thread yannick
Dan, I updated to 2.4.2 like you recommended and it solved the problem. Know
I'm on the next error: 
No signature username found. 

--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782590.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-08 Thread yannick
Can someone tell me where I can find the WHICH_JARS file?



--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4782341.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-08 Thread yannick
I'm using cxf 2.2.5. I debugged it and I noticed that he goes in the
cxf-api-2.2.5 jar and not in the xmlschema-core 2.0 jar. Is cxf-api necssary
as jar?




--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4781679.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread yannick
Thank you for your reply.

I looked for the xmlschema 2.0 and didn't find it. Do you mean
xmlschema-core 2.0? I already tried and I received the same result. 

The SchemaInfo.class fails on this line:  
isElementQualified =
schema.getElementFormDefault().getValue().equals(XmlSchemaForm.QUALIFIED);





--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4780372.html
Sent from the cxf-user mailing list archive at Nabble.com.


java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaForm...

2011-09-07 Thread yannick
Hi, I receive the following the exception and tried several Xmlschema
versions and always receive this errors. I tried version 1.3.1, 1.4.2,
1.4.5. 

java.lang.NoSuchMethodError:
org.apache.ws.commons.schema.XmlSchemaForm.getValue()Ljava/lang/String;
at 
org.apache.cxf.service.model.SchemaInfo.setSchema(SchemaInfo.java:146)
at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:136)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:73)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65)
at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60)
at
org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:357)
at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:324)
at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:188)
at
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:129)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:408)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:521)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:271)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:177)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51)
at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102)
at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:439)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:316)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:303)
at javax.xml.ws.Service.getPort(Service.java:92)

Someone any ideas? 

Thanks in advance.

Yannick

--
View this message in context: 
http://cxf.547215.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-ws-commons-schema-XmlSchemaForm-tp4780240p4780240.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: None of the policy alternatives can be satisfied

2011-09-06 Thread yannick
Dan thanks for your reply.

I solved the problem by checking the jar files of the example source and my
own. I didn't get any exceptions about conflicts our what ever but just by
comparing I noticed that I didn't had all the jars... So I added the missing
onces and didn't receive the exception anymore. 

Now searching how to solve the next problem.



--
View this message in context: 
http://cxf.547215.n5.nabble.com/None-of-the-policy-alternatives-can-be-satisfied-tp4773774p4775054.html
Sent from the cxf-user mailing list archive at Nabble.com.