[jboss-user] [Beginners Corner] - Re: URGENT! java.lang.IllegalStateException: Failed to find

m0 do-not-reply at jboss.com
Tue May 19 14:28:28 EDT 2009


Since your using JBoss 4.0, where is your lookup and narrow?

  | 
  | Object ref = myContext.lookup("CcountEJB");
  | CcountHome home  =  (CcountHome) PortableRemoteObject.narrow(ref, CcountHome.class);
  | Ccount cc = home.create();
  | System.out.println("    Upper case: " + cc.upper(str));
  | System.out.println("    Lower case: " + cc.lower(str));
  | System.out.println("    Spaces: " + cc.spaces(str));
  | System.out.println("    Total: " + cc.characters(str));
  | 

Unless CcountUtil properly gets the home.

@strauss_jon: Make sure you lookup the correct ejb, and narrow the correct home. Make sure your bean is the one that is creating. That is if your using JBoss 4.

What application server are you using ? Show us some code (basic to the point) telling us what you are doing.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232013#4232013

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232013



More information about the jboss-user mailing list