users@glassfish.java.net

Re: (netbeans,mandriva) error while launching JEE client : ...

From: <forums_at_java.net>
Date: Fri, 29 Apr 2011 08:59:42 -0500 (CDT)

I don't know why but I also have this "cannot find javadb .. " message.
Anyway don't focus on it since it is not responsible for your JNDI lookup
fail.

 

I also had a lot of trouble to have this jndi lookup succeed, if it can help
you this works fine for me :

System.setProperty("com.sun.appserv.iiop.endpoints", "127.0.0.1:3700");
//check your iiop port, default should be 3700

InitialContext ctx = new InitialContext(); //no need to use Properties
parameter

MyBeanRemote myBean = (MyBeanRemote) ctx.lookup("jndi portable name
here");   //JNDI name found in server.log

 

Alternatively to the line "System.setProperty(...);" you can specify this
parameter while starting your jar :

java -Dcom.sun.appserv.iiop.endpoints="...." - jar yourapp.jar

 

Fabien.


--
[Message sent by forum member 'fleroy41']
View Post: http://forums.java.net/node/796243