[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2009-04-15 Thread uday.madigatla
hi, i faced the same problem like class cast exception earlier. This is simple classpath error. Make sure that your client program classpath contains the jbossall-client.jar . And also open the META-INF of the jbossall-client.jar file and place the jar files which are there in META-INF file in

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2009-04-15 Thread uday.madigatla
hi, i faced the same problem like class cast exception earlier. This is simple classpath error. Make sure that your client program classpath contains the jbossall-client.jar . And also open the META-INF of the jbossall-client.jar file and place the jar files which are there in META-INF file in

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2009-04-12 Thread areyyyyy
gdfvg View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225026#4225026 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225026 ___ jboss-user mailing list jboss-user@lists.jboss.or

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2007-01-17 Thread te-bachi
Ahh... ok! Remote Interface don't work, but Local Interface does! | import org.jboss.tutorial.stateful.bean.ShoppingCart; | | import javax.servlet.http.HttpServlet; | import javax.servlet.http.HttpServletRequest; | import javax.servlet.http.HttpServletResponse; | import javax.servlet

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2007-01-17 Thread te-bachi
Hmm... interresting! | public class Client { | public static void main(String[] args) throws Exception { | | [...] | Reference ref = (Reference) ctx.lookup("MyApplication/ShoppingCartBean/remote"); | System.out.println("ClassName:" + r

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2007-01-17 Thread te-bachi
| public interface ShoppingCart { |void buy(String product, int quantity); |HashMap getCartContents(); | } | | @Local | public interface ShoppingCartLocal extends ShoppingCart { | } | | @Remote | public interface ShoppingCartRemote extends ShoppingCart { | } |

[jboss-user] [EJB 3.0] - Re: ClassCastException in Stateful Session-Bean

2007-01-16 Thread wolfc
For one thing: an interface can't be both local and remote. http://jira.jboss.com/jira/browse/EJBTHREE-751 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002341#4002341 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=400