- This topic has 1 reply, 2 voices, and was last updated 16 years, 2 months ago by Loyal Water.
-
AuthorPosts
-
defiant42MemberThought you mind find this helpful. Cost me about 2 days to figure out…..
The default JNDI port for WAS6.1 may have changed on you, depending on the number of server profiles and workspaces you have created. If you have created more than one server profile, chances are the default bootstrap port (and the RMI port which is what JNDI listens on) for that profile will not be 2809. These look like:
9/23/08 13:08:30:092 CDT 0000000a NameServerImp A NMSV0018I: Name server available on bootstrap port 2813.
9/23/08 13:09:35:806 CDT 0000000a RMIConnectorC A ADMC0026I: The RMI Connector is available at port 2813Making a JNDI call under 5.x looked like:
…
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
…
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
“com.ibm.websphere.naming.WsnInitialContextFactory”);
env.put(Context.PROVIDER_URL, “corbaloc:iiop:myhost.mycompany.com:2809”);
Context initialContext = new InitialContext(env);
…The default JNDI RMI port was 2809.
Now you will need to verify you have the correct port. Should you not have the correct port you will very likely see the following exception, which masks the problem as being that of missing a signer on a digital certificate, and looks like below.
More information can be found at:
http://www-01.ibm.com/support/docview.wss?uid=swg1PK48659
http://www-01.ibm.com/support/docview.wss?uid=swg1PK36869
http://www-128.ibm.com/developerworks/forums/thread.jspa?messageID=14146039�
-Eric
[9/22/08 10:36:58:935 CDT] 00000014 SystemOut O 2008-09-22 10:36:58.935 [server.startup : 1] INFO com.eric.service.Run2SessionBeansService.lookUp() [] – Looking up JNDI-Name: ejb/SessionBeanA
[9/22/08 10:37:15:890 CDT] 00000014 SystemOut O
[9/22/08 10:37:15:900 CDT] 00000014 SystemOut O CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN “CN=localhost, O=IBM, C=US” was sent from target host:port “127.0.0.1:9403”. The signer may need to be added to local trust store “C:/apps/IBM/WebSphere/AppServer6.1/profiles/AppSrv05/config/cells/SSHMSG242LAP013Node04Cell/nodes/SSHMSG242LAP013Node04/trust.p12” located in SSL configuration alias “NodeDefaultSSLSettings” loaded from SSL configuration file “security.xml”. The extended error message from the SSL handshake exception is: “No trusted certificate found”.
[9/22/08 10:37:15:900 CDT] 00000014 SystemOut O
[9/22/08 10:37:16:120 CDT] 00000014 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened incident stream file C:\apps\IBM\WebSphere\AppServer6.1\profiles\AppSrv05\logs\ffdc\server1_00000014_08.09.22_10.37.16_0.txt
[9/22/08 10:37:16:220 CDT] 00000014 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\apps\IBM\WebSphere\AppServer6.1\profiles\AppSrv05\logs\ffdc\server1_00000014_08.09.22_10.37.16_0.txt
[9/22/08 10:37:16:230 CDT] 00000014 ORBRas E com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl createSSLSocket server.startup : 1 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.WSSSLClientSocketFactoryImpl.createSSLSocket(WSSSLClientSocketFactoryImpl.java:420)
at com.ibm.ws.orbimpl.transport.WSSSLTransportConnection.createSocket(WSSSLTransportConnection.java:228)
at com.ibm.ws.orbimpl.transport.WSSSLTransportConnection.createSocket(WSSSLTransportConnection.java:306)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:356)
at com.ibm.ws.orbimpl.transport.WSTransport$1.run(WSTransport.java:495)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:492)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:88)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:118)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:193)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1944)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1969)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1151)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1248)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1322)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1127)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1288)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1847)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1244)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1367)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:922)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:846)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:531)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.eric.service.Run2SessionBeansService.lookup(Run2SessionBeansService.java:128)
at com.eric.service.Run2SessionBeansService.nestedTransActionTest(Run2SessionBeansService.java:69)
at com.eric.struts.initializer.ApplicationInitializer.runEJBTest(ApplicationInitializer.java:132)
at com.eric.struts.plugins.InitPlugin.configure(InitPlugin.java:63)
at com.eric.struts.plugins.AbstractPlugin.init(AbstractPlugin.java:43)
at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:991)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1230)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:152)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:849)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:771)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:491)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:328)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: com.ibm.jsse2.util.h: No trusted certificate found
at com.ibm.jsse2.util.g.a(g.java:41)
at com.ibm.jsse2.util.g.b(g.java:69)
at com.ibm.jsse2.util.e.a(e.java:8)
at com.ibm.jsse2.yb.checkServerTrusted(yb.java:55)
at com.ibm.ws.ssl.core.WSX509TrustManager.checkServerTrusted(WSX509TrustManager.java:236)
at com.ibm.jsse2.hb.checkServerTrusted(hb.java:9)
at com.ibm.jsse2.eb.a(eb.java:299)
… 69 more[9/22/08 10:37:16:420 CDT] 00000014 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\apps\IBM\WebSphere\AppServer6.1\profiles\AppSrv05\logs\ffdc\server1_00000014_08.09.22_10.37.16_1.txt
[9/22/08 10:37:16:671 CDT] 00000014 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\apps\IBM\WebSphere\AppServer6.1\profiles\AppSrv05\logs\ffdc\server1_00000014_08.09.22_10.37.16_1.txt
[9/22/08 10:37:16:731 CDT] 00000014 ORBRas E com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl createSSLSocket server.startup : 1 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.WSSSLClientSocketFactoryImpl.createSSLSocket(WSSSLClientSocketFactoryImpl.java:420)
at com.ibm.ws.orbimpl.transport.WSSSLTransportConnection.createSocket(WSSSLTransportConnection.java:228)
at com.ibm.ws.orbimpl.transport.WSSSLTransportConnection.createSocket(WSSSLTransportConnection.java:306)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:356)
at com.ibm.ws.orbimpl.transport.WSTransport$1.run(WSTransport.java:495)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:492)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:88)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:118)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:193)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1944)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1969)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1151)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1248)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1322)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1127)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1288)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1847)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1244)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1367)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:922)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:846)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:531)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:117)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:712)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:171)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.eric.service.Run2SessionBeansService.lookup(Run2SessionBeansService.java:128)
at com.eric.service.Run2SessionBeansService.nestedTransActionTest(Run2SessionBeansService.java:69)
at com.eric.struts.initializer.ApplicationInitializer.runEJBTest(ApplicationInitializer.java:132)
at com.eric.struts.plugins.InitPlugin.configure(InitPlugin.java:63)
at com.eric.struts.plugins.AbstractPlugin.init(AbstractPlugin.java:43)
at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:991)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1230)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:152)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:849)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:771)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:491)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:328)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: com.ibm.jsse2.util.h: No trusted certificate found
at com.ibm.jsse2.util.g.a(g.java:41)
at com.ibm.jsse2.util.g.b(g.java:69)
at com.ibm.jsse2.util.e.a(e.java:8)
at com.ibm.jsse2.yb.checkServerTrusted(yb.java:55)
at com.ibm.ws.ssl.core.WSX509TrustManager.checkServerTrusted(WSX509TrustManager.java:236)
at com.ibm.jsse2.hb.checkServerTrusted(hb.java:9)
at com.ibm.jsse2.eb.a(eb.java:299)
… 69 more
Loyal WaterMemberThought you mind find this helpful. Cost me about 2 days to figure out…..
Thanks for posting this information.
-
AuthorPosts