• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Error running AdviceClient

 
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
 
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
 
straws are for suckers. tiny ads are for attractive people.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic