java ee - javax.naming.NameNotFoundException - deploy on weblogic 12.2.1 -


when deploy ejb 3.0 project on weblogic 10.3, ok. but, when trying deploy on weblogic applicaiton server 12.2.1, got javax.namiing.namenotfoundexception.

package com.java.servicerecord.ejb.interfaces;  @remote public interface iservicerecordeao { public servicerecord addnewservicerecord(servicerecord resource); }  package com.java.servicerecord.ejb;  @stateless(name = "servicerecordeao", mappedname = "servicerecordeao") public class servicerecordeao implements iservicerecordeao { ........... }  package com.java.servicerecord;  public class servicerecordtest { private static context getinitialcontext() throws namingexception { hashtable env = new hashtable(); // weblogic server 10.x connection details env.put( context.initial_context_factory, "weblogic.jndi.wlinitialcontextfactory" ); env.put(context.provider_url, "t3://127.0.0.1:7001"); return new initialcontext(env); }  public iservicerecordeao getservicerecordeao() { iservicerecordeao result = null; try { final context context = getinitialcontext(); result = (iservicerecordeao)context.lookup("servicerecordeao#com.java.servicerecord.ejb.interfaces.iservicerecordeao");  } catch (exception ex) { ex.printstacktrace(); } return result; }  } 

javax.naming.namenotfoundexception: while trying lookup 'servicerecordeao#com.java.servicerecord.ejb.interfaces.iserv icerecordeao' didn't find subcontext 'servicerecordeao#com'. resolved '' [root exception javax.naming.namenotfoundexc eption: while trying lookup 'servicerecordeao#com.java.servicerecord.ejb.interfaces.iservicerecordeao' didn't find su bcontext 'servicerecordeao#com'. resolved '']; remaining name 'servicerecordeao#com/java/servicerecord/ejb/interfaces/is ervicerecordeao' @ weblogic.rjvm.responseimpl.unmarshalreturn(responseimpl.java:234) @ weblogic.rmi.cluster.clusterableremoteref.invoke(clusterableremoteref.java:348) @ weblogic.rmi.cluster.clusterableremoteref.invoke(clusterableremoteref.java:259) @ weblogic.jndi.internal.servernamingnode_1031_wlstub.lookup(unknown source) @ weblogic.jndi.internal.wlcontextimpl.lookup(wlcontextimpl.java:400) @ weblogic.jndi.internal.wlcontextimpl.lookup(wlcontextimpl.java:388) @ javax.naming.initialcontext.lookup(initialcontext.java:392) @ com.java.servicerecord.servicerecordtest.getservicerecordeao(servicerecordtest.java:47) @ com.java.servicerecord.servicerecordtest.initresources(servicerecordtest.java:55) @ com.java.servicerecord.servicerecordtest.main(servicerecordtest.java:107) caused by: javax.naming.namenotfoundexception: while trying lookup 'servicerecordeao#com.java.servicerecord.ejb.inter faces.iservicerecordeao' didn't find subcontext 'servicerecordeao#com'. resolved '' @ weblogic.jndi.internal.basicnamingnode.newnamenotfoundexception(basicnamingnode.java:1139) @ weblogic.jndi.internal.basicnamingnode.lookuphere(basicnamingnode.java:247) @ weblogic.jndi.internal.servernamingnode.lookuphere(servernamingnode.java:182) @ weblogic.jndi.internal.basicnamingnode.lookup(basicnamingnode.java:206) @ weblogic.jndi.internal.rootnamingnode_wlskel.invoke(unknown source) @ weblogic.rmi.internal.basicserverref.invoke(basicserverref.java:589) @ weblogic.rmi.cluster.clusterableserverref.invoke(clusterableserverref.java:230) @ weblogic.rmi.internal.basicserverref$1.run(basicserverref.java:477) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:363) @ weblogic.security.service.securitymanager.runas(securitymanager.java:147) @ weblogic.rmi.internal.basicserverref.handlerequest(basicserverref.java:473) @ weblogic.rmi.internal.wls.wlsexecuterequest.run(wlsexecuterequest.java:118) @ weblogic.work.executethread.execute(executethread.java:201) @ weblogic.work.executethread.run(executethread.java:173) javax.naming.namenotfoundexception: while trying lookup 'resourceeao#com.java.resource.ejb.interfaces.iresourceeao' d idn't find subcontext 'resourceeao#com'. resolved '' [root exception javax.naming.namenotfoundexception: while trying lookup 'resourceeao#com.java.resource.ejb.interfaces.iresourceeao' didn't find subcontext 'resourceeao#com'. resolve d '']; remaining name 'resourceeao#com/java/resource/ejb/interfaces/iresourceeao' @ weblogic.rjvm.responseimpl.unmarshalreturn(responseimpl.java:234) @ weblogic.rmi.cluster.clusterableremoteref.invoke(clusterableremoteref.java:348) @ weblogic.rmi.cluster.clusterableremoteref.invoke(clusterableremoteref.java:259) @ weblogic.jndi.internal.servernamingnode_1031_wlstub.lookup(unknown source) @ weblogic.jndi.internal.wlcontextimpl.lookup(wlcontextimpl.java:400) @ weblogic.jndi.internal.wlcontextimpl.lookup(wlcontextimpl.java:388) @ javax.naming.initialcontext.lookup(initialcontext.java:392) @ com.java.servicerecord.servicerecordtest.getresourceeao(servicerecordtest.java:36) @ com.java.servicerecord.servicerecordtest.initresources(servicerecordtest.java:56) @ com.java.servicerecord.servicerecordtest.main(servicerecordtest.java:107) caused by: javax.naming.namenotfoundexception: while trying lookup 'resourceeao#com.java.resource.ejb.interfaces.ires ourceeao' didn't find subcontext 'resourceeao#com'. resolved '' @ weblogic.jndi.internal.basicnamingnode.newnamenotfoundexception(basicnamingnode.java:1139) @ weblogic.jndi.internal.basicnamingnode.lookuphere(basicnamingnode.java:247) @ weblogic.jndi.internal.servernamingnode.lookuphere(servernamingnode.java:182) @ weblogic.jndi.internal.basicnamingnode.lookup(basicnamingnode.java:206) @ weblogic.jndi.internal.rootnamingnode_wlskel.invoke(unknown source) @ weblogic.rmi.internal.basicserverref.invoke(basicserverref.java:589) @ weblogic.rmi.cluster.clusterableserverref.invoke(clusterableserverref.java:230) @ weblogic.rmi.internal.basicserverref$1.run(basicserverref.java:477) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:363) @ weblogic.security.service.securitymanager.runas(securitymanager.java:147) @ weblogic.rmi.internal.basicserverref.handlerequest(basicserverref.java:473) @ weblogic.rmi.internal.wls.wlsexecuterequest.run(wlsexecuterequest.java:118) @ weblogic.work.executethread.execute(executethread.java:201) @ weblogic.work.executethread.run(executethread.java:173) exception in thread "main" java.lang.nullpointerexception @ com.java.servicerecord.servicerecordtest.initresources(servicerecordtest.java:56) @ com.java.servicerecord.servicerecordtest.main(servicerecordtest.java:107)


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -