Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 584
  • Last Modified:

Do I need to set truststore and keystore in order to lookup the initial context for one of the EJB deployed on secured server???

javax.ejb.CreateException: JNDI lookup failed for "ejb name, javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://hostname:port".  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: connect: Address is invalid on local machine, or port is not valid on remote machine:host=hostname,port=0  vmcid: IBM  minor code: E02  completed: No]
0
don_uta
Asked:
don_uta
1 Solution
 
__geof__Commented:
Looks like the settings are wrong. If I understand the error correctly, you still have "hostname" as your hostname. You should probably change it to localhost or the host IP/name
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now