wso2 - Error getting token from STS -


i getting error following method call in wso2 identity server sts client call,

the call :

responsetoken = stsclient.requestsecuritytoken(servicepolicy,                     sts_epr, stspolicy, relying_party_service_epr); 

returns following error.

exception in thread "main" java.lang.nosuchmethoderror: org.apache.xml.security.transforms.transform.init()v     @ org.apache.ws.security.wssconfig.staticinit(wssconfig.java:311)     @ org.apache.ws.security.wssconfig.<init>(wssconfig.java:327)     @ org.apache.ws.security.wssconfig.getnewinstance(wssconfig.java:336)     @ org.apache.ws.security.wssconfig.getdefaultwsconfig(wssconfig.java:345)     @ org.apache.rampart.rampartmessagedata.<init>(rampartmessagedata.java:363)     @ org.apache.rampart.messagebuilder.build(messagebuilder.java:61)     @ org.apache.rampart.handler.rampartsender.invoke(rampartsender.java:65)     @ org.apache.axis2.engine.phase.invokehandler(phase.java:340)     @ org.apache.axis2.engine.phase.invoke(phase.java:313)     @ org.apache.axis2.engine.axisengine.invoke(axisengine.java:261)     @ org.apache.axis2.engine.axisengine.send(axisengine.java:426)     @ org.apache.axis2.description.outinaxisoperationclient.send(outinaxisoperation.java:398)     @ org.apache.axis2.description.outinaxisoperationclient.executeimpl(outinaxisoperation.java:224)     @ org.apache.axis2.client.operationclient.execute(operationclient.java:149)     @ org.apache.axis2.client.serviceclient.sendreceive(serviceclient.java:554)     @ org.apache.rahas.client.stsclient.requestsecuritytoken(stsclient.java:164)     @ org.apache.rahas.client.stsclient.requestsecuritytoken(stsclient.java:181) 

this wrong jar being included in classpath. running against wso2 identity server 4.1.0 , offending wss4j .jar version wss4j_1.5.11.wso2v5.jar comes 4.1.0 is. version of .jar should used rid of issue?

side note: looked source .jar files in public maven repository of wso2, binary .jar files available there, why source .jar files missing in wso2 public repository wso2 believes in open source software?

here referring http://maven.wso2.org/nexus/content/groups/wso2-public/org/apache/ws/security/wss4j/1.5.11-wso2v5/

go identity servers bin folder [wso2is-4.1.0/bin] , issue command "ant" required libraries, (make sure have installed apache ant)

wso2is-4.1.0/bin$ ant

and after building ant script, go location wso2is-4.1.0/repository/lib , see required libraries.

rampart-policy_1.6.1-wso2v8.jar rampart-core_1.6.1-wso2v8.jar rampart-trust_1.6.1-wso2v8.jar wss4j_1.5.11-wso2v5.jar axis2_1.6.1-wso2v8.jar axiom_1.2.11-wso2v3.jar

make sure use above versions in class path of client.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -