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

AdviceApp Error

 
Richard Rex
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I started studying the HFEJB book and tried the first tutorial program there in Chapter 1 called AdviceApp. I was able to follow all throughout the steps. I successfully run the server. I was able to create the ejb-jar.xml using the deploytool. I was able to compile the client program successfully. But when I was trying to run the client program, using this command, (i'm using windows as my platform)

C:\projects\advice>java -cp %CLASSPATH%;AdviceAppClient.jar AdviceClient

I got this error saying...

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge at com.sun.corba.ee.internal.core.IOR$LocalCodeBaseSingletonHolder.<clinit><IOR.java:90> ...

What is this com/sun/corba/se/internal/util/JDKBridge all about? Am I missing something here?

Thanks in advance!
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please find below an explanation of someone who has had the same problem:

http://www.coderanch.com/t/161143/java-EJB-SCBCD/certification/AdviceClient
 
Richard Rex
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Valentin,

I added the rt.jar in the CLASSPATH and was successfully removed the JDKBridge error however, I got another error saying...

Exception in thread "main" java.lang.NoSuchMethodError: loadClass0 at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native Method)

What's this JDKClassLoader and how do I fix this?
 
Richard Rex
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Valentin,

I added the rt.jar in the CLASSPATH and was successfully removed the JDKBridge error however, I got another error saying...

Exception in thread "main" java.lang.NoSuchMethodError: loadClass0 at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native Method)

What's this JDKClassLoader and how do I fix this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic