This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I really need some websphere guru's help, I've stuck on this for long:
I can call a ejb(the method successfully run and gives me correct return value) running in a remote server, a websphere 5.1 cell network deployment environment, from a servlet running in my local server(on a different machine), which is the testing env. server in the WSAD 5.1. This server is a very simple one created quickly with all the default values. It is all good. I run the method (getRole) it gives me value I expected.
But when I copy/pasted the same code(paste below) calling the ejb into another application, which is running inside a different workspace but in the same WSAD 5.1 IDE, same testing env. server but with different server configuration(in another word, this piece of code is running in 2 applications, both inside my WSAD in my local machine), the same piece of code failed on creating an initial context for the lookup.
=================================== in the first simple server it is all good: **** before lookup ejb... *********bean got:class com.eistream.sonora.webservices._WsSessionEJB_Stub [27/06/05 10:36:31:680 EDT] 18f7b7e8 SystemOut O
**********getRole method returns:Admin
==================================== But I got the error msg. on the second server console:
**** before lookup ejb... [27/06/05 10:46:13:023 EDT] 82ef74e WsnInitCtxFac W NMSV0602E: Naming Service unavailable. A communications error occurred. [27/06/05 10:46:13:023 EDT] 82ef74e SystemOut O
**********getRole method returns: A communication failure occurred while attempting to obtain an initial context with the
provider URL: "corbaloc:iiop:ejbserver00:8811". 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
They are all runing exactly the same piece of code:
It shouldn't be any network problem since both tries are on my local machine. So the only differenct is the server configuration.
So my question is: what kind of configuration in the second server could prevent me from creating a initial context? In my mind, there shouldn't be anything in the second server prevents me from getting a naming context if the same code works in another server. Please note the remote server name and port(for jndi lookup are the same and correct) are the same when trying on these 2 servers.
And I also specify the Provider URL, which tells the server don't use the default local namespace(port 2809) to lookup the bean.
Any help is appreciated..... Thanks a million times......
Joined: Dec 30, 2004
Please note the exactly same piece of code running in the simple server, this could eliminate lots of possibilities.... like networking issue, server name/port number error...
So the only difference is the server configuration. In the second server(not the ejb server) we have https and form authentication setup.