Estou fazendo um teste de acesso a um componente EJB no servidor de aplicação WebSphere 5.0…
O trecho do código que localiza o componente:
Hashtable t = new Hashtable();
t.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
t.put(Context.PROVIDER_URL, "iiop://servidor:porta");
Context ic = new InitialContext(t);
ValidaUsuarioHome vHome = (ValidaUsuarioHome) PortableRemoteObject.narrow(ic.lookup("ejb/validaUsuario"), ValidaUsuarioHome.class); << O Erro ocorre neste comando...
O “ejb/validaUsuario” é o nome JNDI cadastrado para a EJB
Segue o erro:
java.lang.IncompatibleClassChangeError: com.ibm.CORBA.iiop.ORB method createObjectURL(Ljava/lang/String;)Lcom/ibm/CORBA/iiop/ObjectURL;
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseIiopUrl(WsnInitCtxFactory.java:1703)
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseBootstrapURL(WsnInitCtxFactory.java:1461)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:370)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
Alguém tem uma luz???
Desde já grato pela atenção…
[]'s