Could not locate KeyStore, check keystore assertion in WSIT configuration--In Eclipse

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Could not locate KeyStore, check keystore assertion in WSIT configuration--In Eclipse

shashankrishi
This post has NOT been accepted by the mailing list yet.
Hi

I have to consume WCF web service using Mutual Certificate Authentication.I developed java client (standalone-calling webservice using main() method) using NetBeans.
and it is working fine for me and getting response from webservice.

NetBeans7.0
Metro jar 2.2
Java 1.7

but when I am using same code in eclipse i am getting below exception

SEVERE: WSS0217: An Error occurred using CallbackHandler handle() Method.
com.sun.xml.wss.impl.XWSSecurityRuntimeException: Could not locate KeyStore, check keystore assertion in WSIT configuration
        at com.sun.xml.wss.impl.misc.DefaultCallbackHandler.getKeyStore(DefaultCallbackHandler.java:2289)
        at com.sun.xml.wss.impl.misc.DefaultCallbackHandler.getDefaultPrivKeyCert(DefaultCallbackHandler.java:1413)
        at com.sun.xml.wss.impl.misc.DefaultCallbackHandler.handle(DefaultCallbackHandler.java:552)
        at com.sun.xml.wss.impl.misc.DefaultSecurityEnvironmentImpl.getDefaultPrivKeyCertRequest(DefaultSecurityEnvironmentImpl.java:261)
        at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:235)
        at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
        at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
        at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
        at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
        at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:386)
        at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:323)
        at com.sun.xml.ws.security.secconv.WSSCPlugin.sendRequest(WSSCPlugin.java:401)
        at com.sun.xml.ws.security.secconv.WSSCPlugin.process(WSSCPlugin.java:263)
        at com.sun.xml.ws.security.secconv.impl.client.SCTokenProviderImpl.issue(SCTokenProviderImpl.java:135)
        at com.sun.xml.ws.api.security.trust.client.IssuedTokenManager.getIssuedToken(IssuedTokenManager.java:83)
        at com.sun.xml.wss.jaxws.impl.SecurityClientTube.startSecureConversation(SecurityClientTube.java:554)
        at com.sun.xml.ws.rx.util.Communicator.tryStartSecureConversation(Communicator.java:406)
        at com.sun.xml.ws.rx.rm.runtime.ClientTube.createSequences(ClientTube.java:409)
        at com.sun.xml.ws.rx.rm.runtime.ClientTube.openRmSession(ClientTube.java:347)
        at com.sun.xml.ws.rx.rm.runtime.ClientTube.processRequest(ClientTube.java:188)
        at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:961)
        at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:910)
        at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:873)
        at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:775)
        at com.sun.xml.ws.client.Stub.process(Stub.java:429)
        at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:168)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
        at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)
        at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:151)

what need to be done to resolve this issue in eclipse.