03-29-05 11: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 c
onte
xt. Exiting.
Exception received: javax.naming.ServiceUnavailableException: A communicatio
n fa
ilure occurred while attempting to obtain an initial context with the provid
er 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 c
ause
s other than an incorrect bootstrap address or unavailable name server inclu
de t
he network environment and workstation network configuration. [Root exceptio
n is
org.omg.CORBA.INTERNAL: In TransportBase.getHostIPAddress, InetAddress.getB
yNam
e(ctsincsisapd) threw an UnknownHostException minor code: 1229125046 comple
ted:
Maybe]
javax.naming.ServiceUnavailableException: A communication failure occurred w
hile
attempting to obtain an initial context with the provider URL: "corbaloc:ii
op:1
62.44.9.87:2809". Make sure that any bootstrap address information in the U
RL i
s correct and that the target name server is running. A bootstrap address w
ith
no port specification defaults to port 2809. Possible causes other than an
inco
rrect bootstrap address or unavailable name server include the network envir
onme
nt and workstation network configuration. Root exception is org.omg.CORBA.I
NTER
NAL: In TransportBase.getHostIPAddress, InetAddress.getByName(ctsincsisapd)
thre
w an UnknownHostException minor code: 1229125046 completed: Maybe
at com.ibm.CORBA.transport.TransportBase.getHostIPAddress(TransportB
ase.
java:111)
at com.ibm.rmi.iiop.TransportManager.getHostIPAddress(TransportManag
er.j
ava:175)
at com.ibm.rmi.Profile.getHostIPAddress(Profile.java:405)
at com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterce
ptor
$2.run(SecurityConnectionInterceptor.java:1316)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterce
ptor
.. getConnectionKey(SecurityConnectionInter
ceptor.java:1312)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(Unknown So
urce
)
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.ja
va:1
917)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.jav
a:12
25)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.jav
a: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 So
urce
)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(Wsn
Init
CtxFactory.java:1112)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer
(Wsn
InitCtxFactory.java:677)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnIn
itCt
xFactory.java:605)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInterna
l(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(WsnIni
tCtx
Factory.java:325)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialConte
xt(W
snInitialContextFactory.java:112)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.ja
va: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(DumpNam
eSpa
ce.java:397)
at com.ibm.websphere.naming.DumpNameSpace.main(DumpNameSpace.java:31
9)
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 ac
ross another issue). When I attempt to run a remote JNDI call I get the fol
lowing error:
SEVERE: Problem occurred during processing of action: com.aon.eclaims.common
.exceptions.RemoteApplicationSystemException, (No message associated with th
is exception)
Message: (No message associated with this exception)
Cause: javax.naming.ServiceUnavailableException: A communication failure occ
urred while attempting to obtain an initial context with the provider URL: "
corbaloc::gbmdaep06:60420/NameServiceServerRoot". Make sure that any bootst
rap 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 o
ther than an incorrect bootstrap address or unavailable name server include
the network environment an
d workstation network configuration. [Root exception is org.omg.CORBA.TR
ANSIENT: Operation timed out: connect:host=gbmdaep06.uk.aon.com,port=60420
minor code: 4942F301 completed: No]
at com.aon.eclaims.common.helpers.DocexServiceLocator.getDocexRemoteEJB(Doce
xServiceLocator.java:120)
at com.aon.eclaims.model.claim.ejb.ClaimServicesBean.getDocEx(ClaimServicesB
ean.java:163)
at com.aon.eclaims.model.claim.ejb.ClaimServicesWrapper.getDocEx(ClaimServic
esWrapper.java:39)
at com.aon.eclaims.draw.actions.View.eclaimsPortletAction(View.java:34)
at com.aon.eclaims.common.actions.EClaimsAction.aonPortletAction(EClaimsActi
on.java:198)
at com.aon.portal.common.AonPortletActions.execute(AonPortletActions.java:63
)
at com.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsR
equestProcessor.java:251)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:2
74)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processActionPerformed(WpsSt
rutsPortlet.java:1536)
at com.ibm.wps.portlets.struts.WpsStrutsPortlet.processStrutsAction(WpsStrut
sPortlet.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(SPIPortle
tInterceptorImpl.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(Portle
tFilterChainImpl.java:139)
at com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterManager.doFilter(PortletF
ilterManager.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(StrictSer
vletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLif
ecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleS
ervlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLife
cycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.j
ava:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Valid
ServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servlet
InstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:1023)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequ
estDispatcher.java:251)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(Portl
etInvokerImpl.java:474)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.message(PortletI
nvokerImpl.java:230)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletCo
ntainerImpl.java:1238)
at com.ibm.wps.pe.pc.legacy.EventEnvironmentImpl.includePortlet(EventEnviron
mentImpl.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(MessageTrigger
Event.java:216)
at com.ibm.wps.pe.pc.legacy.event.EventQueueManager.processEventLoop(EventQu
eueManager.java:92)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.performEventPhase(PortletCo
ntainerImpl.java:1560)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.initPage(PortletContainerIm
pl.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(StrictSer
vletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLif
ecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifec
ycleServlet.java:333)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLife
cycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.j
ava:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Valid
ServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servlet
InstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCha
in.java:76)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:185)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInsta
nceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCha
in.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(WebAppRequestDispatcher.java:1014)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uestDispatcher.java:561)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estDispatcher.java:198)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80
)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
ker.java:212)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocatio
n(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servlet
RequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEList
ener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.
java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:6
18)
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 6042
0
Getting the initial context
ERROR: Could not get the initial context or unable to look up the starting c
ontext. Exiting.
Exception received: javax.naming.CommunicationException: A communication fai
lure occurred while attempting to obtain an
initial context with the provider URL: "corbaloc:iiop:gbmdaep06:60420". Mak
e sure that any bootstrap address informatio
n in the URL is correct and that the target name server is running. A boots
trap address with no port specification defa
ults to port 2809. Possible causes other than an incorrect bootstrap addres
s 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 boots
trap 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 nam
e server include the network environment and
workstation network configuration. Root exception is org.omg.CORBA.COMM_FAI
LURE: 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(WsnInitCtxF
actory.java:1107)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInit
CtxFactory.java:679)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFac
tory.java:607)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnIni
tCtxFactory.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(WsnInitCtxFact
ory.java:327)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnIn
itialContextFactory.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.j
ava: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 direct
ory and finally settled on the lib directory as the cause of the problem. W
hen I investigated further
it appeared to be a problem with the iwsorb.jar and the sas.jar, when I copi
ed these files from my portal directory it worked like a dream, copied them
back and it failed. Unfortunately, the copied files mean that portal startu
p 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.
[ Post a follow-up to this message ]
|