Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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
 
What's that smell? Hey, sniff this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic