java - Remote EJB calling: No EJB receiver available for handling -
i trying connect remote ejb using tutorial, have got no ejb receiver available handling
. how connect:
public static boolean createcontext() throws servletexception { system.out.println("well-well"); boolean successcreate = false; final hashtable props = new hashtable(); // setup ejb: namespace url factory props.put(context.url_pkg_prefixes, "org.jboss.ejb.client.naming"); props.put("jboss.naming.client.ejb.context", true); // create initialcontext context context = null; try { context = new javax.naming.initialcontext(props); } catch (namingexception e) { e.printstacktrace(); } issapagehome ref = null; try { ref = (issapagehome)context.lookup("ejb:" + "/ejb667//theissapage!" + issapagehome.class.getname()); } catch (namingexception e) { e.printstacktrace(); } try { context.close(); } catch (exception e) { e.printstacktrace(); } try { //initcontext = new javax.naming.initialcontext(env); } catch (exception e) { log("exception creating initialcontext: " + e.tostring()); } try { // string jndiname = "ejb/issapage"; // object objref = initcontext.lookup(jndiname); // initcontext.close(); myisapagehome = (issapagehome)portableremoteobject.narrow(ref, issapagehome.class); } catch (exception e) { log(" issapage bean home not found: " + e.tostring()); } try { myisapageremote = myisapagehome.create(); successcreate = true; } catch (exception e) { e.printstacktrace(); log(" not create issapage bean: " + e.tostring()); } return successcreate; }
i catch exception after statement:
myisapageremote = myisapagehome.create();
full st:
11:44:44,054 error [stderr] (http-/127.0.0.1:8080-1) java.lang.illegalstateexception: ejbclient000025: no ejb receiver vailable handling [appname:, modulename:ejb667, distinctname:] combination invocation context org.jboss.ejb.clie nt.ejbclientinvocationcontext@103ad01b 11:44:44,058 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbclientcontext.requireejbreceiver(ejbc lientcontext.java:735) 11:44:44,062 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.receiverinterceptor.handleinvocation(rec eiverinterceptor.java:116) 11:44:44,067 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbclientinvocationcontext.sendrequest(e jbclientinvocationcontext.java:183) 11:44:44,071 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbinvocationhandler.sendrequestwithposs ibleretries(ejbinvocationhandler.java:253) 11:44:44,075 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbinvocationhandler.doinvoke(ejbinvocat ionhandler.java:198) 11:44:44,080 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbinvocationhandler.doinvoke(ejbinvocat ionhandler.java:181) 11:44:44,084 error [stderr] (http-/127.0.0.1:8080-1) @ org.jboss.ejb.client.ejbinvocationhandler.invoke(ejbinvocatio nhandler.java:144) 11:44:44,088 error [stderr] (http-/127.0.0.1:8080-1) @ com.sun.proxy.$proxy10.create(unknown source)
Comments
Post a Comment