Hi Guys,
I am trying to access EJB through simple portlet application but struggling to fix the following issue.

I have deployed EJB ear file in WAS 6.1 console and portlet WAR file in Portal server 6.1.

I have checked the BOOTSTRAP_ADDRESS port number and it is 10004 , but still am getting the following exception.


[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://localhost:10004/". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible:
Forwarded IOR failed with: CONNECT_FAILURE_ON_SSL_CLIENT_SOCKET - JSSL0130E: java.io.IOException: Signals that an I/O exception of some sort has occurred. Reason: tportal.GHS.onecompany.com
Initial IOR failed with: CONNECT_FAILURE_ON_SSL_CLIENT_SOCKET - JSSL0130E: java.io.IOException: Signals that an I/O exception of some sort has occurred. Reason: tportal.GHS.onecompany.com vmcid: IBM minor code: E07 completed: No]
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitia lReferenceFailure(WsnInitCtxFactory.java:2224)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnN SProperties(WsnInitCtxFactory.java:1384)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootCo ntextFromServer(WsnInitCtxFactory.java:922)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJn diContext(WsnInitCtxFactory.java:846)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitia lContextInternal(WsnInitCtxFactory.java:531)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnIn itCtx.java:117)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull (WsnInitCtx.java:712)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCt x.java:171)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at javax.naming.InitialContext.lookup(InitialContext. java:363)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.testjsr168.TestJSR168Portlet.main(TestJSR1 68Portlet.java:109)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.testjsr168.TestJSR168Portlet.doView(TestJS R168Portlet.java:39)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at javax.portlet.GenericPortlet.doDispatch(GenericPor tlet.java:328)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at javax.portlet.GenericPortlet.render(GenericPortlet .java:233)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :128)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.wps.propertybroker.standard.filter.C2APort letFilter.doFilter(C2APortletFilter.java:183)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletFi lterChainImpl.doFilter(PortletFilterChainImpl.java :120)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.doDispatch(PortletServlet.java:573)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:114)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.isclite.container.collaborator.PortletServ letCollaborator.doRender(PortletServletCollaborato r.java:68)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:105)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.rrd.RRDServerPortletSe rvletCollaborator.doRender(RRDServerPortletServlet Collaborator.java:123)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:105)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.cache.CacheCollaborato r.doRender(CacheCollaborator.java:92)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:105)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCo llaboratorImpl.doRender(PortletServletCollaborator Impl.java:156)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:105)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.doDispatch(PortletServlet.java:273)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:82)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.isclite.container.collaborator.PortletServ letCollaborator.doDispatch(PortletServletCollabora tor.java:124)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.rrd.RRDServerPortletSe rvletCollaborator.doDispatch(RRDServerPortletServl etCollaborator.java:60)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.cache.CacheCollaborato r.doDispatch(CacheCollaborator.java:74)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCo llaboratorImpl.doDispatch(PortletServletCollaborat orImpl.java:121)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvletCollaboratorChainImpl.doCollaborator(PortletS ervletCollaboratorChainImpl.java:74)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.dispatch(PortletServlet.java:208)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.portletcontainer.invoker.impl.PortletSe rvlet.service(PortletServlet.java:165)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1095)
[10/2/09 12:33:56:829 EDT] 0000009c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1036)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1095)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture .java:136)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHand ler.java:195)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingL oop(ResultHandler.java:743)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler .java:873)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:1473)
[10/2/09 12:33:56:844 EDT] 0000009c SystemErr R Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible:
Forwarded IOR failed with: CONNECT_FAILURE_ON_SSL_CLIENT_SOCKET - JSSL0130E: java.io.IOException: Signals that an I/O exception of some sort has occurred. Reason: tportal.GHS.onecompany.com
Initial IOR failed with: CONNECT_FAILURE_ON_SSL_CLIENT_SOCKET - JSSL0130E: java.io.IOException: Signals that an I/O exception of some sort has occurred. Reason: tportal.GHS.onecompany.com vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(Cli entDelegate.java:1169)
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.lookup(WsnInitCt x.java:171)
at javax.naming.InitialContext.lookup(InitialContext. java:363)
at com.ibm.testjsr168.TestJSR168Portlet.main(TestJSR1 68Portlet.java:109)
at com.ibm.testjsr168.TestJSR168Portlet.doView(TestJS R168Portlet.java:39)
at javax.portlet.GenericPortlet.doDispatch(GenericPor tlet.java:328)
at javax.portlet.GenericPortlet.render(GenericPortlet .java:233)



Here is my client code to access the EJB:

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:10004/");


Context ctx=new InitialContext(env);
Object obj=ctx.lookup("ejb/com/company/enterprise/ProviderHome");
ProviderHome providerHome=(ProviderHome)PortableRemoteObject.na rrow(obj,ProviderHome.class);
Provider provider=providerHome.create();
provider.getProviderName();

I have checked by running "Universal Test Client" from with in the RSA and I could see the PROVIDER_URL as "iiop://localhost:10004/".

I do not understand where I am doing wrong.

Could you please throw some light on this issue?

Thanks,
Raj.