[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2007-09-12 Thread kpiis
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 ___

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2007-09-12 Thread kpiis
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) |

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-10-24 Thread georges.goebel
"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

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-10-16 Thread georges.goebel
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.

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-09-01 Thread georges.goebel
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

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-08-29 Thread ALRubinger
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

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-08-29 Thread seahsherley
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

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-08-29 Thread ALRubinger
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

[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!

2006-08-29 Thread [EMAIL PROTECTED]
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