Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Error running AdviceClient

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic