2014-07-15 2 views
0

Travailler avec CXF-STS, je suis tombé sur des exceptions comme <<||2014-07-14 21:51:14,125||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.Signat‌​ureProcessor:428||||>> XML Signature verification has failed <<||2014-07-14 21:51:14,127||http-apr-8080-exec-8|DEBUG|org.apache.ws.security.processor.Signat‌​ureProcessor:431||||>> Signature Validation check: falseCXF 3.0.0 soulève org.apache.cxf.BusException: Aucun DestinationFactory n'a été trouvé pour l'espace de noms http://schemas.xmlsoap.org/soap/http

Comme discuté à la poste, CXF STS Usernametoken symmetric binding XML Signature verification has failed https://issues.apache.org/jira/browse/CXF-5679 https://issues.apache.org/jira/browse/CXF-5679 Donc, en supposant qu'il a été corrigé pour la version 3.0.0 je me suis déplacé vers lui. Maintenant, au démarrage, je suis face à l'erreur comme

... 25 more 
Caused by: org.apache.cxf.service.factory.ServiceConstructionException 
    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:176) 
    at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) 
    at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456) 
    at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334) 
    ... 34 more 
Caused by: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/http. 
    at org.apache.cxf.bus.managers.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:122) 
    at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:88) 
    at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:72) 
    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:160) 

Je ne peux pas comprendre comment puis-je travailler vraiment avec l'exemple CXF STS. S'il vous plaît fournir quelques bonnes références par exemple pour travailler avec CXF STS en UsernameToken avec cryptage Scénario

Merci

Répondre

0

C'était becuase mon projet était d'avoir des dépendances CAMEL-CXF qui contiennent CXF 2.7 comme intégré. Il pourrait avoir créé les conflits avec la nouvelle version de CXF 3.0.0. Donc, les supprimer de classpath résolu le problème

Merci

Questions connexes