• Post Reply Bookmark Topic Watch Topic
  • New Topic

Websphere - Datasource Connection communication failure

 
Sasi Kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
com.infosys.j2ee.subframework.persistence.dao.DBException: Could not lookup the data source
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.init(DSDBStrategy.java:79)
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.openConnection(DSDBStrategy.java:91)
at com.mitsubishi.fuso.posts.auth.dao.AuthorizeUserDAOCommand.execute(AuthorizeUserDAOCommand.java:135)
at com.infosys.j2ee.subframework.persistence.dao.impl.GenericDAO.execute(GenericDAO.java:118)
at com.mitsubishi.fuso.posts.auth.dao.LoginDAO.authorizeUser(LoginDAO.java:88)
at com.mitsubishi.fuso.posts.auth.bo.LoginBO.authorizeUser(LoginBO.java:88)
at com.mitsubishi.fuso.posts.auth.ejb.LoginFacadeBean.authorizeUser(LoginFacadeBean.java:124)
at com.mitsubishi.fuso.posts.auth.ejb.EJSLocalStatelessLoginFacade_6ebd54ea.authorizeUser(EJSLocalStatelessLoginFacade_6ebd54ea.java:23)
at com.mitsubishi.fuso.posts.auth.handler.LoginHandler.process(LoginHandler.java:93)
at com.infosys.j2ee.utils.controller.impl.RequestProcessor.process(RequestProcessor.java:77)
at com.infosys.j2ee.utils.controller.impl.Controller.postFilterProcess(Controller.java:112)
at com.infosys.j2ee.utils.controller.impl.Controller.onFiltersApplied(Controller.java:97)
at com.infosys.j2ee.utils.controller.impl.FilterChain.doFilter(FilterChain.java:71)
at com.infosys.j2ee.utils.controller.impl.Controller.process(Controller.java:79)
at com.infosys.j2ee.subframework.businesslogic.impl.BLFControllerBean.process(BLFControllerBean.java:104)
at com.infosys.j2ee.subframework.businesslogic.EJSLocalStatelessBLFController_cb65dc0a.process(EJSLocalStatelessBLFController_cb65dc0a.java:23)
at com.mitsubishi.fuso.posts.web.delegate.FusoWebDelegate.handleEvent(FusoWebDelegate.java:96)
at com.mitsubishi.fuso.posts.web.action.LoginAction.authorizeUser(LoginAction.java:244)
at com.mitsubishi.fuso.posts.web.action.LoginAction.loginUser(LoginAction.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:252)
at com.mitsubishi.fuso.posts.web.common.BaseAction.execute(BaseAction.java:80)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at com.mitsubishi.fuso.posts.web.common.FusoControllerServlet.process(FusoControllerServlet.java:221)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
Caused by: com.infosys.j2ee.utils.misc.ServiceLocatorException: Error while looking for a datasource using the jndi name - fusojndi
at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator.java:235)
at com.infosys.j2ee.subframework.persistence.dao.impl.DSDBStrategy.init(DSDBStrategy.java:77)
... 51 more
Caused by: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://localhost:2810". 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: java.net.ConnectException: Connection refused: connect:host=blrkec42151d,port=2810 vmcid: IBM minor code: E02 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mapInitialReferenceFailure(WsnInitCtxFactory.java:1863)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1130)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:678)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:606)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:481)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.infosys.j2ee.utils.misc.ServiceLocator.getDataSource(ServiceLocator.java:228)
... 52 more
 
Sasi Kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know the soultion for the problem posted Below.

This occurs when we get connection from datasource. Database configuration
is proper here.

Thanks
Prabakaran.N
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of questions.

1. What is the DataSource binding to the JNDI tree?

2. How is the DataSource lookup on the JNDI tree done?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!