• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB client WAS4 to WAS5 lookup error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
After a server migration from WAS 4 to WAS 5.0.2.3, our EJB client gets the following exception (see below) on the InitialContext.lookup(). We have tried using the IP address of the server in the provider URL with the same result. We have tried using the corbaloc protocol with the same result. The EJB client is not in the same domain as the WAS server. The host ccwest-app0.idc.vzwcorp.com resolves thru DNS (nslookup). From the stack trace, it appears that the lookup is using the hostname and not the fully qualified name. Is there a way to get the lookup to use the fully qualified name instead of the hostname?
Ed

InitialContext.PROVIDER_URL
iiop://ccwest-app0.idc.vzwcorp.com:2222
InitialContext.INITIAL_CONTEXT_FACTORY
com.ibm.websphere.naming.WsnInitialContextFactory
10:04:27.657 com.ibm.ws.orbimpl.transport.WSTCPTransportConnection connect:474 P=265003 =0:CT ORBRas[default] java.net.UnknownHostException: ccwest-app0
at java.net.InetAddress.getAllByName0(InetAddress.java(Compiled Code))
at java.net.InetAddress.getAllByName0(InetAddress.java(Inlined Compiled Code))
at java.net.InetAddress.getByName(InetAddress.java(Compiled Code))
at java.net.Socket.<init>(Socket.java:121)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(Unknown Source)
at com.ibm.CORBA.transport.TransportConnectionBase.createSocket(TransportConnectionBase.java:643)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:407)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(Unknown Source)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java: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:1927)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1235)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1168)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1830)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:245)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(Unknown Source)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java(Compiled Code))
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java(Compiled Code))
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java(Compiled Code))
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:480)
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:359)
at com.vzw.ccm.loadtest.CRMEJBClient.getCRMMessaging(CRMEJBClient.java:93)
at com.vzw.ccm.loadtest.CRMEJBClient.<init>(CRMEJBClient.java:18)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic