Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB create method problem under iPlanet AS with iiop

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
on my iPlanet Application Server 6.3 under Win2000, I have this error when I get a EJB object with his HomeObject.
"java.lang.NoClassDefFoundError : com/sun/corba/ee/internal/POA/POAORB"
//I get home object under iiop :
Hastable props = new Hashtable();
props.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
props.put("java.naming.provider.url", "iiop://myserver:9010");
InitialContext jndiCtx = new InitialContext(props);
Object lookup = jndiCtx.lookup("java:comp/env/ejb/MyEjb");
//the lookup is here
System.out.println("Home downloaded : " + lookup.getClass().getName());
MyEJBHome home = (MyEJBHome) javax.rmi.PortableRemoteObject.narrow(lookup, MyEJBHome.class);
//And the EJB stub come here without problem...
//but when I do...
MyEJB remoteEjb = home.create();
// there is the error : "java.lang.NoClassDefFoundError : com/sun/corba/ee/internal/POA/POAORB"
Anyone has an idee where come from problem ?
The iPlanet Application Server is use with iPlanet Directory Server LDAP.
Thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic