This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

For AdviceClient Application Pg:57HKEJB

 
sanneel paul
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 177
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic