Enterprise Bean

I am writing a simple EJB program in j2ee RI.

j2ee 1.3.1

j2sdk 1.3.1_16

But I am getting error when running the AdviceClient

java.lang.ClasscastException

at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)

at javax.rmi.PortableRemoteObject.narrow(Unknown Source)

at AdviceClient.main(AdviceClient.java:17)

[385 byte] By [sessionbeana] at [2007-10-2 4:35:16]
# 1
Your Remote / Home object is not of the same Version.Ensure that the client side class and Server side class to be the same.Also ensure that both Java Versions are the same.
pazhanikanthana at 2007-7-16 0:07:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
> But I am getting error when running the> AdviceClientPost the code too.
annie79a at 2007-7-16 0:07:45 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...