I'm writing ejb whith jbuilder7 for weblogic6.
I wrote a local session bean, and invoke it in a jsp.When I access the jsp, I get a ClassCastException exception.Here is the exception:
java.lang.ClassCastException: myejb.CounterBean_cp0o42_LocalHomeImpl
myejb.CounterBean_cp0o42_LocalHomeImpl generated by EJBC, implemnts the local session bean LocalHome interface.
Here is my lookup code:
Context ctx = new InitialContext();
Object ref = ctx.lookup("CounterLocal");
CounterLocalHome home = (CounterLocalHome)ref;
Why?
tell me the reason,pls.