aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 client error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB 3.0 client error" Watch "EJB 3.0 client error" New topic
Author

EJB 3.0 client error

Vikas Roonwal
Greenhorn

Joined: Apr 11, 2008
Posts: 4
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

Joined: Nov 08, 2007
Posts: 457
I ran it in Eclipse 3.3, deployed to JBoss 4.2.1, (on a Mac) no problems.

After the following lines were changed...



Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Vikas Roonwal
Greenhorn

Joined: Apr 11, 2008
Posts: 4
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 :-(
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3.0 client error