WebSphere Portal Server - Problem with Remote JNDI Call

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2005 > Problem with Remote JNDI Call





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with Remote JNDI Call
mransley

2004-07-20, 6:00 pm

Hello All,

I am running WPS 5.0.2 ontop of WAS 5.0.2.5 (I needed to run FP5 to patch across another issue). When I attempt to run a remote JNDI call I get the following error:

SEVERE: Problem occurred during processing of action: com.aon.eclaims.common.exceptions.RemoteApplicationSystemException, (No message associated with this exception)
Message: (No message associated with this exception)
Cause: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "corbaloc::gbmdaep06:60420/NameServiceServerRoot". 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 an
d workstation network configuration. [Root exception is org.omg.CORBA.TRANSIENT: Operation timed out: connect:host=gbmdaep06.uk.aon.com,port=60420 minor code: 4942F301 completed: No]
at com.aon.eclaims.common.helpers.DocexServiceLocator.getDocexRemoteEJB(DocexServiceLocator.java:120)
at com.aon.eclaims.model.claim.ejb.ClaimServicesBean.getDocEx(ClaimServicesBean.java:163)
at com.aon.eclaims.model.claim.ejb.ClaimServicesWrapper.getDocEx(ClaimServicesWrapper.java:39)
at com.aon.eclaims.draw.actions.View.eclaimsPortletAction(View.java:34)
at com.aon.eclaims.common.actions.EClaimsAction.aonPortletAction(EClaimsAction.java:198)
at com.aon.portal.common.AonPortletActions.execute(AonPortletActions.java:63)
at com.ibm.wps.portlets.struts.WpsRequestProcessor. processActionPerform(WpsRequestProcessor
.java:251)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1536)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processStrutsAction(WpsStrutsPortlet.java:1882)
at com.aon.portal.common.AonPortlet.processStrutsAction(AonPortlet.java:85)
at com.aon.portal.common.AonPortlet.messageReceived(AonPortlet.java:137)
at com.ibm.wps.pe.pc.legacy.SPIPortletInterceptorImpl.handleEvents(SPIPortletInterceptorImpl.java:455)
at org.apache.jetspeed.portlet.Portlet._dispatch(Portlet.java:794)
at org.apache.jetspeed.portlet.Portlet.access$100(Portlet.java:88)
at org.apache.jetspeed.portlet.Portlet$Context.callPortlet(Portlet.java:899)
at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:139)
at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterManager.doFilter(PortletFilterManager.java:242)
at org.apache.jetspeed.portlet.Portlet.dispatch(Portlet.java:636)
at org.apache.jetspeed.portlet.Portlet.doPost(Portlet.java:516)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jetspeed.portlet.Portlet.service(Portlet.java:491)
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(WebAppRequestDispat
cher.java:1023)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:474)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.message(PortletInvokerImpl.java:230)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1238)
at com.ibm.wps.pe.pc.legacy.EventEnvironmentImpl.includePortlet(EventEnvironmentImpl.java:191)
at com.ibm.wps.pe.pc.legacy.event.MessageEventImpl.prepare(MessageEventImpl.java:105)
at com.ibm.wps.pe.pc.legacy.event.MessageTriggerEvent.prepare(MessageTriggerEvent.java:216)
at com.ibm.wps.pe.pc.legacy.event.EventQueueManager.processEventLoop(EventQueueManager.java:92)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.performEventPhase(PortletContainerImpl.java:1560)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.initPage(PortletContainerImpl.java:219)
at com.ibm.wps.pe.pc.PortletContainerImpl.initPage(PortletContainerImpl.java:213)
at com.ibm.wps.pe.pc.PortletContainer.initPage(PortletContainer.java:148)
at com.ibm.wps.engine.templates.themes.Home.doPreRender(Home.java:205)
at com.ibm.wps.engine.templates.themes.Default.render(Default.java:67)
at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:71)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:770)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:465)
at com.ibm.wps.engine.Servlet.doPost(Servlet.java:801)
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.ServicingServletState.service(StrictLifecycleServlet.java:333)
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.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:185)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher. handleWebAppDispatch(WebAppRequestDispat
cher.java:1014)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:212)
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:672)

The Cactus unit tests that we had running this code worked so I investigated further. I ran dump name space from the admin server directory associated with portal and received the following error:

C:\programs\WebSphere\AppServer\bin>dumpnamespace -host gbmdaep06 -port 60420

Getting the initial context
ERROR: Could not get the initial context or unable to look up the starting context. Exiting.
Exception received: javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an
initial context with the provider URL: "corbaloc:iiop:gbmdaep06:60420". Make sure that any bootstrap address informatio
n in the URL is correct and that the target name server is running. A bootstrap address with no port specification defa
ults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the net
work environment and workstation network configuration. [Root exception is org.omg.CORBA.COMM_FAILURE: WRITE_ERROR_SEND_
1 minor code: 49421050 completed: No]
javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an initial context with
the provider URL: "corbaloc:iiop:gbmdaep06:60420". Make sure that any bootstrap address information in the URL is corr
ect 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.COMM_FAILURE: WRITE_ERROR_SEND_1 minor code: 49421
050 completed: No
at com.ibm.ws.orbimpl.transport.HTTPOutputStream.write(Unknown Source)
at com.ibm.rmi.iiop.IIOPOutputStream.writeTo(IIOPOutputStream.java:283)
at com.ibm.rmi.iiop.Connection.send(Connection.java:1483)
at com.ibm.rmi.iiop.Connection._locate(Connection.java:263)
at com.ibm.rmi.iiop.Connection.locate(Connection.java:242)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:184)
at com.ibm.rmi.corba.Corbaloc.locateUsingINS(Corbaloc.java:305)
at com.ibm.rmi.corba.Corbaloc.resolve(Corbaloc.java:367)
at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:2938)
at com.ibm.ws.naming.util.WsnInitCtxFactory.stringToObject(WsnInitCtxFactory.java:1256)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1107)
at com.ibm.ws.naming.util.WsnInitCtxFactory. getRootContextFromServer(WsnInitCtxFacto
ry.java:679)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:607)
at com.ibm.ws.naming.util.WsnInitCtxFactory. getInitialContextInternal(WsnInitCtxFact
ory.java:482)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:82)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:327)
at com.ibm.websphere.naming.WsnInitialContextFactory. getInitialContext(WsnInitialContextFacto
ry.java:112)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at com.ibm.websphere.naming.DumpNameSpace.getStartingContext(DumpNameSpace.java:397)
at com.ibm.websphere.naming.DumpNameSpace.main(DumpNameSpace.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

Interesting, when I ran it from the runtimes\base_v5\bin directory it worked without error. I then checked the configuration directory, the Java directory and finally settled on the lib directory as the cause of the problem. When I investigated further
it appeared to be a problem with the iwsorb.jar and the sas.jar, when I copied these files from my portal directory it worked like a dream, copied them back and it failed. Unfortunately, the copied files mean that portal startup fails so it isn't a fix f
or me.

More interestingly, the problem appears to be introduced after the 5.0 base installation as I have another machine that runs the code fine at version 5.0 of portal.

Any help would be appreciated.

Just to summarise, all the above test where ran from the local machine so I don't think it can be environmental. My development environment is Windows 2000 so I can't verify that it isn't platform specific, although I shall be testing the problem in Sola
ris tomorrow.

Thanks in advance,

Michael.
icesurvijay2

2005-03-29, 6:29 am

I am getting same kind of problem . when i ran dumpNameSpace on Solaris WAS5.0 . Pls help me if any one expereienced the same kind of problem.

I got the following error

"
Getting the initial context
ERROR: Could not get the initial context or unable to look up the starting conte
xt. Exiting.
Exception received: javax.naming.ServiceUnavailableException: A communication fa
ilure occurred while attempting to obtain an initial context with the provider U
RL: "corbaloc:iiop:162.44.9.87:2809". Make sure that any bootstrap address info
rmation in the URL is correct and that the target name server is running. A boo
tstrap address with no port specification defaults to port 2809. Possible cause
s other than an incorrect bootstrap address or unavailable name server include t
he network environment and workstation network configuration. [Root exception is
org.omg.CORBA.INTERNAL: In TransportBase.getHostIPAddress, InetAddress.getByNam
e(ctsincsisapd) threw an UnknownHostException minor code: 1229125046 completed:
Maybe]
javax.naming.ServiceUnavailableException: A communication failure occurred while
attempting to obtain an initial context with the provider URL: "corbaloc:iiop:1
62.44.9.87:2809". Make sure that any bootstrap address information in the URL i
s 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 inco
rrect bootstrap address or unavailable name server include the network environme
nt and workstation network configuration. Root exception is org.omg.CORBA.INTER
NAL: In TransportBase.getHostIPAddress, InetAddress.getByName(ctsincsisapd) thre
w an UnknownHostException minor code: 1229125046 completed: Maybe
at com.ibm.CORBA.transport.TransportBase.getHostIPAddress(TransportBase.
java:111)
at com.ibm.rmi.iiop.TransportManager.getHostIPAddress(TransportManager.j
ava:175)
at com.ibm.rmi.Profile.getHostIPAddress(Profile.java:405)
at com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor
$2.run(SecurityConnectionInterceptor.java:1316)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor
... getConnectionKey(SecurityConnectionInter
ceptor.java:1312)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(Unknown Source
)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.jav
a:158)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:83)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:174)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1
917)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:12
25)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:11
58)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1820)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:428)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(Unknown Source
)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInit
CtxFactory.java:1112)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
InitCtxFactory.java:677)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
xFactory.java:605)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
nInitCtxFactory.java:480)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:82)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtx
Factory.java:325)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
snInitialContextFactory.java:112)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
60)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241
)
at javax.naming.InitialContext.init(InitialContext.java:217)
at javax.naming.InitialContext.<init>(InitialContext.java:193)
at com.ibm.websphere.naming.DumpNameSpace.getStartingContext(DumpNameSpa
ce.java:397)
at com.ibm.websphere.naming.DumpNameSpace.main(DumpNameSpace.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

"

quote:
Originally posted by mransley
Hello All,

I am running WPS 5.0.2 ontop of WAS 5.0.2.5 (I needed to run FP5 to patch across another issue). When I attempt to run a remote JNDI call I get the following error:

SEVERE: Problem occurred during processing of action: com.aon.eclaims.common.exceptions.RemoteApplicationSystemException, (No message associated with this exception)
Message: (No message associated with this exception)
Cause: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "corbaloc::gbmdaep06:60420/NameServiceServerRoot". 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 an
d workstation network configuration. [Root exception is org.omg.CORBA.TRANSIENT: Operation timed out: connect:host=gbmdaep06.uk.aon.com,port=60420 minor code: 4942F301 completed: No]
at com.aon.eclaims.common.helpers.DocexServiceLocator.getDocexRemoteEJB(DocexServiceLocator.java:120)
at com.aon.eclaims.model.claim.ejb.ClaimServicesBean.getDocEx(ClaimServicesBean.java:163)
at com.aon.eclaims.model.claim.ejb.ClaimServicesWrapper.getDocEx(ClaimServicesWrapper.java:39)
at com.aon.eclaims.draw.actions.View.eclaimsPortletAction(View.java:34)
at com.aon.eclaims.common.actions.EClaimsAction.aonPortletAction(EClaimsAction.java:198)
at com.aon.portal.common.AonPortletActions.execute(AonPortletActions.java:63)
at com.ibm.wps.portlets.struts.WpsRequestProcessor. processActionPerform(WpsRequestProcessor
.java:251)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsStrutsPortlet.java:1536)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processStrutsAction(WpsStrutsPortlet.java:1882)
at com.aon.portal.common.AonPortlet.processStrutsAction(AonPortlet.java:85)
at com.aon.portal.common.AonPortlet.messageReceived(AonPortlet.java:137)
at com.ibm.wps.pe.pc.legacy.SPIPortletInterceptorImpl.handleEvents(SPIPortletInterceptorImpl.java:455)
at org.apache.jetspeed.portlet.Portlet._dispatch(Portlet.java:794)
at org.apache.jetspeed.portlet.Portlet.access$100(Portlet.java:88)
at org.apache.jetspeed.portlet.Portlet$Context.callPortlet(Portlet.java:899)
at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:139)
at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterManager.doFilter(PortletFilterManager.java:242)
at org.apache.jetspeed.portlet.Portlet.dispatch(Portlet.java:636)
at org.apache.jetspeed.portlet.Portlet.doPost(Portlet.java:516)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jetspeed.portlet.Portlet.service(Portlet.java:491)
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(WebAppRequestDispat
cher.java:1023)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:474)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.message(PortletInvokerImpl.java:230)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1238)
at com.ibm.wps.pe.pc.legacy.EventEnvironmentImpl.includePortlet(EventEnvironmentImpl.java:191)
at com.ibm.wps.pe.pc.legacy.event.MessageEventImpl.prepare(MessageEventImpl.java:105)
at com.ibm.wps.pe.pc.legacy.event.MessageTriggerEvent.prepare(MessageTriggerEvent.java:216)
at com.ibm.wps.pe.pc.legacy.event.EventQueueManager.processEventLoop(EventQueueManager.java:92)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.performEventPhase(PortletContainerImpl.java:1560)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.initPage(PortletContainerImpl.java:219)
at com.ibm.wps.pe.pc.PortletContainerImpl.initPage(PortletContainerImpl.java:213)
at com.ibm.wps.pe.pc.PortletContainer.initPage(PortletContainer.java:148)
at com.ibm.wps.engine.templates.themes.Home.doPreRender(Home.java:205)
at com.ibm.wps.engine.templates.themes.Default.render(Default.java:67)
at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:71)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:770)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:465)
at com.ibm.wps.engine.Servlet.doPost(Servlet.java:801)
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.ServicingServletState.service(StrictLifecycleServlet.java:333)
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.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:185)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher. handleWebAppDispatch(WebAppRequestDispat
cher.java:1014)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:212)
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:672)

The Cactus unit tests that we had running this code worked so I investigated further. I ran dump name space from the admin server directory associated with portal and received the following error:

C:\programs\WebSphere\AppServer\bin>dumpnamespace -host gbmdaep06 -port 60420

Getting the initial context
ERROR: Could not get the initial context or unable to look up the starting context. Exiting.
Exception received: javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an
initial context with the provider URL: "corbaloc:iiop:gbmdaep06:60420". Make sure that any bootstrap address informatio
n in the URL is correct and that the target name server is running. A bootstrap address with no port specification defa
ults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the net
work environment and workstation network configuration. [Root exception is org.omg.CORBA.COMM_FAILURE: WRITE_ERROR_SEND_
1 minor code: 49421050 completed: No]
javax.naming.CommunicationException: A communication failure occurred while attempting to obtain an initial context with
the provider URL: "corbaloc:iiop:gbmdaep06:60420". Make sure that any bootstrap address information in the URL is corr
ect 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.COMM_FAILURE: WRITE_ERROR_SEND_1 minor code: 49421
050 completed: No
at com.ibm.ws.orbimpl.transport.HTTPOutputStream.write(Unknown Source)
at com.ibm.rmi.iiop.IIOPOutputStream.writeTo(IIOPOutputStream.java:283)
at com.ibm.rmi.iiop.Connection.send(Connection.java:1483)
at com.ibm.rmi.iiop.Connection._locate(Connection.java:263)
at com.ibm.rmi.iiop.Connection.locate(Connection.java:242)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:184)
at com.ibm.rmi.corba.Corbaloc.locateUsingINS(Corbaloc.java:305)
at com.ibm.rmi.corba.Corbaloc.resolve(Corbaloc.java:367)
at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:2938)
at com.ibm.ws.naming.util.WsnInitCtxFactory.stringToObject(WsnInitCtxFactory.java:1256)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1107)
at com.ibm.ws.naming.util.WsnInitCtxFactory. getRootContextFromServer(WsnInitCtxFacto
ry.java:679)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:607)
at com.ibm.ws.naming.util.WsnInitCtxFactory. getInitialContextInternal(WsnInitCtxFact
ory.java:482)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:82)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:327)
at com.ibm.websphere.naming.WsnInitialContextFactory. getInitialContext(WsnInitialContextFacto
ry.java:112)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at com.ibm.websphere.naming.DumpNameSpace.getStartingContext(DumpNameSpace.java:397)
at com.ibm.websphere.naming.DumpNameSpace.main(DumpNameSpace.java:319)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

Interesting, when I ran it from the runtimes\base_v5\bin directory it worked without error. I then checked the configuration directory, the Java directory and finally settled on the lib directory as the cause of the problem. When I investigated further
it appeared to be a problem with the iwsorb.jar and the sas.jar, when I copied these files from my portal directory it worked like a dream, copied them back and it failed. Unfortunately, the copied files mean that portal startup fails so it isn't a fix f
or me.

More interestingly, the problem appears to be introduced after the 5.0 base installation as I have another machine that runs the code fine at version 5.0 of portal.

Any help would be appreciated.

Just to summarise, all the above test where ran from the local machine so I don't think it can be environmental. My development environment is Windows 2000 so I can't verify that it isn't platform specific, although I shall be testing the problem in Sola
ris tomorrow.

Thanks in advance,

Michael.

Scott A. Roehrig

2005-03-31, 6:26 pm

The bootstrap port for the portal instance is not 2809, it is 2811.

Scott

"icesurvijay2" <icesurvijay2.1mnr93@mail.webservertalk.com> wrote in message
news:icesurvijay2.1mnr93@mail.webservertalk.com...
>
> I am getting same kind of problem . when i ran dumpNameSpace on Solaris
> WAS5.0 . Pls help me if any one expereienced the same kind of problem.
>
> I got the following error
>
> "
> Getting the initial context
> ERROR: Could not get the initial context or unable to look up the
> starting conte
> xt. Exiting.
> Exception received: javax.naming.ServiceUnavailableException: A
> communication fa
> ilure occurred while attempting to obtain an initial context with the
> provider U
> RL: "corbaloc:iiop:162.44.9.87:2809". Make sure that any bootstrap
> address info
> rmation in the URL is correct and that the target name server is
> running. A boo
> tstrap address with no port specification defaults to port 2809.
> Possible cause
> s other than an incorrect bootstrap address or unavailable name server
> include t
> he network environment and workstation network configuration. [Root
> exception is
> org.omg.CORBA.INTERNAL: In TransportBase.getHostIPAddress,
> InetAddress.getByNam
> e(ctsincsisapd) threw an UnknownHostException minor code: 1229125046
> completed:
> Maybe]
> javax.naming.ServiceUnavailableException: A communication failure
> occurred while
> attempting to obtain an initial context with the provider URL:
> "corbaloc:iiop:1
> 62.44.9.87:2809". Make sure that any bootstrap address information in
> the URL i
> s 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 inco
> rrect bootstrap address or unavailable name server include the network
> environme
> nt and workstation network configuration. Root exception is
> org.omg.CORBA.INTER
> NAL: In TransportBase.getHostIPAddress,
> InetAddress.getByName(ctsincsisapd) thre
> w an UnknownHostException minor code: 1229125046 completed: Maybe
> at
> com.ibm.CORBA.transport.TransportBase.getHostIPAddress(TransportBase.
> java:111)
> at
> com.ibm.rmi.iiop.TransportManager.getHostIPAddress(TransportManager.j
> ava:175)
> at com.ibm.rmi.Profile.getHostIPAddress(Profile.java:405)
> at
> com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor
> $2.run(SecurityConnectionInterceptor.java:1316)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor
> .. getConnectionKey(SecurityConnectionInter
ceptor.java:1312)
> at
> com.ibm.ws.orbimpl.transport.WSTransport.getConnection(Unknown Source
> )
> at
> com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.jav
> a:158)
> at
> com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:83)
> at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:174)
> at
> com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1
> 917)
> at
> com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:12
> 25)
> at
> com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:11
> 58)
> at
> com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1820)
> at
> org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:428)
> at
> com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(Unknown Source
> )
> at
> com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInit
> CtxFactory.java:1112)
> at
> com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(Wsn
> InitCtxFactory.java:677)
> at
> com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCt
> xFactory.java:605)
> at
> com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(Ws
> nInitCtxFactory.java:480)
> at
> com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
> at
> com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:82)
> at
> com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtx
> Factory.java:325)
> at
> com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
> snInitialContextFactory.java:112)
> at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
> 60)
> at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241
> )
> at javax.naming.InitialContext.init(InitialContext.java:217)
> at javax.naming.InitialContext.<init>(InitialContext.java:193)
> at
> com.ibm.websphere.naming.DumpNameSpace.getStartingContext(DumpNameSpa
> ce.java:397)
> at
> com.ibm.websphere.naming.DumpNameSpace.main(DumpNameSpace.java:319)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
>
> "
>
> mransley wrote:
>
>
>
> --
> icesurvijay2
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message316123.html
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com