• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help: Error on accessing EJB using WebSphere

 
Sumit Bansal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While deploying EJB on Websphere i am getting following error

[3/27/07 17:20:02:117 IST] 00000022 SystemErr R javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000 minor code: 56 completed: No]
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:227)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:47)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.naming.InitialContext.init(InitialContext.java:235)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.naming.InitialContext.<init>(InitialContext.java:209)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.SelectServlet.doGet(SelectServlet.java:38)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
[3/27/07 17:20:02:195 IST] 00000022 SystemErr R Caused by: org.omg.CORBA.INTERNAL: CREATE_LISTENER_FAILED_4 vmcid: 0x49421000 minor code: 56 completed: No
at com.ibm.ws.orbimpl.transport.WSTransport.createListener(WSTransport.java:719)
at com.ibm.ws.orbimpl.transport.WSTransport.initTransports(WSTransport.java:591)
at com.ibm.rmi.iiop.TransportManager.initTransports(TransportManager.java:155)
at com.ibm.rmi.iiop.TransportManager.getServerIIOPProfile(TransportManager.java:162)
at com.ibm.rmi.iiop.ORB.getServerIIOPProfile(ORB.java:371)
at com.ibm.CORBA.iiop.ServerDelegate.getServerIIOPProfile(ServerDelegate.java:932)
at com.ibm.CORBA.poa.POAServerDelegate.getServerIIOPProfile(POAServerDelegate.java:585)
at com.ibm.rmi.poa.POAImpl.initializeTemplateProfile(POAImpl.java:233)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1231)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1662)
at org.omg.CORBA.ORB.init(ORB.java:364)
at com.sun.jndi.toolkit.corba.CorbaUtils.getOrb(CorbaUtils.java:202)
at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:219)
at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:84)
at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:47)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
at javax.naming.InitialContext.init(InitialContext.java:235)
at javax.naming.InitialContext.<init>(InitialContext.java:209)
at com.SelectServlet.doGet(SelectServlet.java:38)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.ws.orbimpl.transport.WSTransport.createListener(WSTransport.java:719)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.ws.orbimpl.transport.WSTransport.initTransports(WSTransport.java:591)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.rmi.iiop.TransportManager.initTransports(TransportManager.java:155)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.rmi.iiop.TransportManager.getServerIIOPProfile(TransportManager.java:162)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.rmi.iiop.ORB.getServerIIOPProfile(ORB.java:371)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.CORBA.iiop.ServerDelegate.getServerIIOPProfile(ServerDelegate.java:932)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.CORBA.poa.POAServerDelegate.getServerIIOPProfile(POAServerDelegate.java:585)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.rmi.poa.POAImpl.initializeTemplateProfile(POAImpl.java:233)
[3/27/07 17:20:02:273 IST] 00000022 SystemErr R at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1231)
[3/27/07 17:20:02:289 IST] 00000022 SystemErr R at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1662)
[3/27/07 17:20:02:289 IST] 00000022 SystemErr R at org.omg.CORBA.ORB.init(ORB.java:364)
[3/27/07 17:20:02:289 IST] 00000022 SystemErr R at com.sun.jndi.toolkit.corba.CorbaUtils.getOrb(CorbaUtils.java:202)
[3/27/07 17:20:02:289 IST] 00000022 SystemErr R at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:219)
[3/27/07 17:20:02:289 IST] 00000022 SystemErr R ... 28 more


Here is the code snippet:

properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
properties.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809");
//here is the line i am getting this exception. I dont know where i am going wrong. I am using WebSphere 6.1
InitialContext initialcontext = new InitialContext(properties);

Please help me.

Thank you

Sumit
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are using a wrong initial context factory.
This thread has the details. Hope it helps.
This link also helps
[ March 27, 2007: Message edited by: Nitesh Kant ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sumit"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Also please refrain from duplicate posting the same question in more than one thread. I already deleted your duplicate.

Thanks and good luck

Mark
 
Sumit Bansal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you "Nitesh Kant"

you solved my problem. thanks a million to you.

"Mark"

i added my last name in my profile and double post for same topic is by mistake. I will take care of these thing in future.

Thank you

Sumit
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sumit Bansal:
Thank you "Nitesh Kant"

you solved my problem. thanks a million to you.


Anytime sumit. this forum is all about helping and having fun.
Enjoi

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!