Solved

Problems In Websphere... lookup

Posted on 2004-04-29
5
1,350 Views
Last Modified: 2013-11-24
Hi Friends,
I am facing some problems when i try to connect to the websphere server in AIX. I have the Java client in the AIX box it self. The lookup is done like this
Properties props = System.getProperties(); props.putContext.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory"); props.put(Context.PROVIDER_URL,"iiop://localhost:9810");
InitialContext ic = new InitialContext(props);
Object objref = ic.lookup("XXXX");

Here i am getting the initialContext but the exception is thrown in the lookup("XXXX").
The error thrown is ...Exception in looking up

javax.naming.ServiceUnavailableException: A communication failure occurred while
 attempting to obtain an initial context with the provider URL: "iiop://localhos
t:9810".  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 s
pecification defaults to port 2809.  Possible causes other than an incorrect boo
tstrap address or unavailable name server include the network environment and wo
rkstation network configuration.  Root exception is org.omg.CORBA.UNKNOWN:   min
or code: 0 completed: Maybe
        at com.ibm.rmi.corba.ClientDelegate.intercept(ClientDelegate.java:980)
        at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:442)
        at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:715)
        at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:258)
        at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(Unknown Source

I changed the URL and used the Ip..again in vain and the port specified is the one i have in the BOOT_STRAP_ADDRESS in the websphere console. I have tried the same from the windows client also but it is not working.  is There any problem in accessing the websphere like this. I was able to access it after making the same a clientJar using AAT. Is there any other way to do the lookUp in WebSphere.

Thanks guys for ur help..


0
Comment
Question by:benevolent
  • 2
5 Comments
 

Author Comment

by:benevolent
ID: 10956070
Hi Guys,
Pls help me ...

Thanks
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 350 total points
ID: 10957750
This exception is thrown when attempting to communicate with a directory or naming service which not available. The server might be too busy to service the request, or the server might not be registered to service any requests, or maybe that the URI you specified was wrong, etc.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11683276
Please proceed with that recommendation.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping2 challenge 13 80
oracle 11g 23 48
Groovy problem when using SOAPUI : DispatchException occurred 7 27
table example 4 21
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now