File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes For AdviceClient Application Pg:57HKEJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "For AdviceClient Application Pg:57HKEJB" Watch "For AdviceClient Application Pg:57HKEJB" New topic
Author

For AdviceClient Application Pg:57HKEJB

sanneel paul
Ranch Hand

Joined: Jun 26, 2005
Posts: 47
Hi
All

for advice application in HFEJB book everything run fine except for AdviceClient.

On page:57 it compiles fine but when i run it it give me this <b>ERROR/b>.

C:\projects\advice>java 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.go(AdviceClient.java:20)
at AdviceClient.main(AdviceClient.java:11)


CAN ANYBODY HELP ME IN THIS CASE PLEASE..............
Reza Ravasizadeh
Ranch Hand

Joined: Jun 08, 2004
Posts: 177
An old HFEJB problem that lots of readers(like me )face it.
when you want to compile your client you also should add J2EE.JAR to your classpath.
for more detail see book's website there is more explanation.


Reza
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: For AdviceClient Application Pg:57HKEJB