• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 client error

 
Vikas Roonwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I get the following error when I execute my EJB client.
Please note that the Client is being run as a standalone JAVA class in Eclipse and the EJB is deployed in JBoss 4.2 (hence they are in separate JVMs)

The Error
java.lang.ClassCastException: org.jboss.serial.io.MarshalledObjectForLocalCalls
at $Proxy0.login(Unknown Source)
at ejb.client.EJBClient.main2(EJBClient.java:33)
at ejb.client.EJBClient.main(EJBClient.java:14)

Client



EJB Bean


Local Interface


Remote Interface


Thanks for any help and suggestions
~ Vikas
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran it in Eclipse 3.3, deployed to JBoss 4.2.1, (on a Mac) no problems.

After the following lines were changed...

 
Vikas Roonwal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bill,
Thanks for pointing that out.
The blunder I made was that the EJB was deployed on Jboss 4.2, but the server jars in the client's classpath were from Jboss 5.0

I appreciate the help and apologize for my naiveness :-(
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic