WAS 6.1 While Calling EJB - SSL HANDSHAKE FAILURE Exception - Websphere

This is a discussion on WAS 6.1 While Calling EJB - SSL HANDSHAKE FAILURE Exception - Websphere ; Hi All, I have machine1 which is having WP6.1 and say machine2 which is having WP6.1. I want to call one EJB running on appserver in machine2 from the portal server on machine1 my client code is like this prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory" ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: WAS 6.1 While Calling EJB - SSL HANDSHAKE FAILURE Exception

  1. WAS 6.1 While Calling EJB - SSL HANDSHAKE FAILURE Exception

    Hi All,

    I have machine1 which is having WP6.1 and say machine2 which is having WP6.1.

    I want to call one EJB running on appserver in machine2 from the portal server on machine1

    my client code is like this

    prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory" );
    prop.put(Context.PROVIDER_URL,"iiop://xxxxxx:10004" ) ;
    Context ctx;
    try { ctx = new InitialContext(prop);

    I am getting a SSL Handshake error.

    O context :javax.naming.InitialContext@3ace3ace
    [10/20/08 17:17:15:434 IST] 00000038 SystemOut O Got ServiceLocatorcom.my.secured.framwork.ServiceLocat or@38603860
    [10/20/08 17:17:15:434 IST] 00000038 SystemOut O In the Delegator resetEmailServicePassword got service Locatorcom.my.secured.framwork.ServiceLocator@3860 3860
    [10/20/08 17:17:15:434 IST] 00000038 SystemOut O No Caching : do lookup for: beanJndiName-ejb/com/myEjb/MyStudentMgrHome, homeClass -interface com.myEjb.MyStudentMgrHome
    [10/20/08 17:17:15:434 IST] 00000038 SystemOut O inside doLookupService
    [10/20/08 17:17:15:716 IST] 00000038 ORBRas * E com.ibm.ws.security.orbssl.WSSSLClientSocketFactor yImpl createSSLSocket WebContainer : 3 JSSL0080E: javax.net.ssl.SSLHandshakeException - The client and server could not negotiate the desired level of security. Reason: com.ibm.jsse2.util.h: No trusted certificate found javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found
    at com.ibm.jsse2.n.a(n.java:39)
    at com.ibm.jsse2.jc.a(jc.java:188)
    at com.ibm.jsse2.db.a(db.java:134)
    at com.ibm.jsse2.db.a(db.java:328)
    at com.ibm.jsse2.eb.a(eb.java:4)
    at com.ibm.jsse2.eb.a(eb.java:287)
    at com.ibm.jsse2.db.m(db.java:208)*
    at com.ibm.jsse2.db.a(db.java:259)
    at com.ibm.jsse2.jc.a(jc.java:271)
    at com.ibm.jsse2.jc.g(jc.java:403)
    at com.ibm.jsse2.jc.a(jc.java:21)
    at com.ibm.jsse2.jc.startHandshake(jc.java:228)
    at com.ibm.ws.security.orbssl.WSSSLClientSocketFactor yImpl.createSSLSocket(WSSSLClientSocketFactoryImpl .java:420)
    at com.ibm.ws.orbimpl.transport.WSSSLTransportConnect ion.createSocket(WSSSLTransportConnection.java:228 )
    at com.ibm.ws.orbimpl.transport.WSSSLTransportConnect ion.createSocket(WSSSLTransportConnection.java:306 )
    at com.ibm.CORBA.transport.TransportConnectionBase.co nnect(TransportConnectionBase.java:356)
    at com.ibm.ws.orbimpl.transport.WSTransport$1.run(WST ransport.java:495)
    at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java:118)
    at com.ibm.ws.orbimpl.transport.WSTransport.getConnec tion(WSTransport.java:492)
    at com.ibm.CORBA.transport.TransportBase.getConnectio n(TransportBase.java:187)
    at com.ibm.rmi.iiop.TransportManager.get(TransportMan ager.java:88)
    at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.j ava:118)
    at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:193 )
    at com.ibm.rmi.corba.ClientDelegate.locate(ClientDele gate.java:1944)
    at com.ibm.rmi.corba.ClientDelegate._createRequest(Cl ientDelegate.java:1969)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(Cli entDelegate.java:1151)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(Cli entDelegate.java:1248)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(Cl ientDelegate.java:1322)
    at com.ibm.rmi.corba.ClientDelegate.createRequest(Cli entDelegate.java:1127)
    at com.ibm.CORBA.iiop.ClientDelegate.createRequest(Cl ientDelegate.java:1288)
    at com.ibm.rmi.corba.ClientDelegate.request(ClientDel egate.java:1847)
    at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDe legate.java:1244)
    at org.omg.CORBA.portable.ObjectImpl._request(ObjectI mpl.java:458)
    at com.ibm.WsnBootstrap._WsnNameServiceStub.getProper ties(_WsnNameServiceStub.java:38)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnN SProperties(WsnInitCtxFactory.java:1367)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootCo ntextFromServer(WsnInitCtxFactory.java:922)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJn diContext(WsnInitCtxFactory.java:846)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitia lContextInternal(WsnInitCtxFactory.java:531)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnIn itCtx.java:117)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull (WsnInitCtx.java:712)
    at com.ibm.ws.naming.util.WsnInitCtx.getEnvironment(W snInitCtx.java:677)
    at javax.naming.InitialContext.getEnvironment(Initial Context.java:500)
    at com.my.secured.framwork.ServiceLocator.doLookupSer vice(ServiceLocator.java:130)
    at com.my.secured.framwork.ServiceLocator.lookupServi ce(ServiceLocator.java:123)
    at com.my.secured.framwork.ServiceLocator.lookupRemot eHome(ServiceLocator.java:81)
    at com.my.secured.framwork.SecBusinessDelegator.getSt udentInfo(SecBusinessDelegator.java:19)
    at com.ibm._jsp._resultpage._jspService(_resultpage.j ava:110)


    Thanks in advance
    Selva

  2. Re: WAS 6.1 While Calling EJB - SSL HANDSHAKE FAILURE Exception

    selva.b@aol.in wrote:
    > Hi All,
    >
    > I have machine1 which is having WP6.1 and say machine2 which is having WP6.1.
    >
    > I want to call one EJB running on appserver in machine2 from the portal server on machine1
    >



    are they sharing the same LTPA keys ?

+ Reply to Thread