How to solve this problem?

I am having problem in running an EJB example, the error message is below, who can tell me what's the problem?

D:\java_newconcept\ejb_2\sample\basic\sessionbean>java -Djava.naming.factory.ini

tial=com.sun.jndi.cosnaming.CNCtxFactory -Dorg.omg.CORBA.ORBInitialPort=3700 Cli

ent CartBean

Exception in thread "main" java.lang.ClassCastException

at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unkno

wn Source)

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

at Client.main(Client.java:17)

D:\java_newconcept\ejb_2\sample\basic\sessionbean>

[646 byte] By [mikeyuan2005] at [2007-11-25 20:59:46]
# 1
Please repost this on the Application Server forum http://swforum.sun.com/jive/forum.jspa?forumID=114thanks
gtharakan at 2007-7-4 20:19:22 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...