O, my bad -
IStatefullBean b = (IStatefullBean)con.lookup("StatefullBean/local")
it's correct.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083423#4083423
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083423
___
Hello all,
I have the same question:
After deploying my statefull bean I get the ClassCastException
In JNDI view it's binded in such way
+- StatefullBean (class: org.jnp.interfaces.NamingContext)
| +- localStatefulProxyFactory (class:
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
|
"georges.goebel" wrote : Hi,
|
| I solved my problem by packaging the web application without the ejb
classes. The ejb3 (session beans and entity beans) classes where 2 times in the
ear. In the jar and the war file. After packageing them only in the jar it
works for me
View the original po
Hi,
I solved my problem by packaging the web application without the ejb classes.
The ejb3 (session beans and entity beans) classes where 2 times in the ear. In
the jar and the war file. After packageing them only in the jar it workes for me
View the original post :
http://www.jboss.com/index.
Hi,
I have exactly the same problem. I have one stateless and one statefull session
bean. But in the jndi view is see (class: java.lang.Object) for the local and
remote interface of the sfsb. For the slsb the proxy implements the correct
interface.
I tried to add the @Local or @Remote to the in
Couple things, and again - just looking quickly:
CountBean is remote...have it implement Serializable...
But also check the JARs you're including on your client classpath - are you
including jbossall-client.jar?
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Thanks for your reply...
I have tried adding @Remote to the interface class, it wont work...
I tried to use ctx.lookup("CountingBean/remote") it returns a
javax.naming.Reference object I am expecting a Count object.
View the original post :
http://www.jboss.com/index.html?module=bb&op=vi
Just a quick glance, but this stands out...
anonymous wrote : Count obj = (Count)ctx.lookup("CountingBean");
...and your JNDI tree shows you:
anonymous wrote : +- CountingBean (class: org.jnp.interfaces.NamingContext)
| | +- remote (class: java.lang.Object)
| | +- remoteStatefulProxyFactor
do like this
@Remote
public interface Count
{
public int count();
public void set(int val);
public void remove();
}
@Stateful(name = "CountingBean")
public class CountBean implements Count
{
...
}
Then add the interceptors back.
You missed the annotation on the interface.
View th