Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error running AdviceClient

 
Angela Gordon
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run the AdviceClient on page 58 of Head First
EJB and keep getting the following error. I have tried cleaning
up my j2ee server and then restarting it and I keep getting the
same error when I invoke my client. Any idea what I can do to fix
this?

ERROR! Shared library ioser12 could not be found.
Exception in thread "main" java.lang.UnsatisfiedLinkError: specialLoadClass
at com.sun.corba.se.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)

Thanks,
Angela
 
alzamabar
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a known issue with the method signature, but frankly I don't know if this leads to your problem. Anyway, to run the example in the book, you'll need to change the method signature from:

getAdvice() to something else, because incidentally it happens that the method getAdvice() refers also the the Advice interface, and this in *some* application servers can lead to an error.
 
Angela Gordon
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marco. I tried that and I still get the same
error. I found by adding the path to my native jre libs to
my LD_LIBRARY_PATH environment variable this error goes away
but then I get

"Exception in thread "main" java.lang.IncompatibleClassChangeError: class org.omg.CosNaming._NamingContextStub does not implement interface org.omg.CosNaming.NamingContextOperations"

I will keep investigating..
 
Angela Gordon
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not having any luck getting passed the following error.. Any ideas?
Thanks so much.

Exception in thread "main" java.lang.IncompatibleClassChangeError: class org.omg.CosNaming._NamingContextStub does not implement interface org.omg.CosNaming.NamingContextOperations
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:56)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)at javax.naming.InitialContext.lookup(InitialContext.java:350)
at AdviceClient.go(AdviceClient.java:25)
at AdviceClient.main(AdviceClient.java:11)
 
Angela Gordon
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. I figured it out! It must have been something wrong
with the way I was compiling/running the program. I finally just
created an ant script to compile and run and it worked.

Thanks,
Angela
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic