This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes problem with AdviceClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "problem with AdviceClient" Watch "problem with AdviceClient" New topic
Author

problem with AdviceClient

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
I get following exception when I run AdviceClient.JDKBridge class is suppose to exists in j2ee.jar.But J2EE.jar contains com/sun/corba/ee/inte
rnal/util/JDKBridge not com/sun/corba/se/internal/util/JDKBridge.

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/inte
rnal/util/JDKBridge
at com.sun.corba.ee.internal.core.IOR$LocalCodeBaseSingletonHolder.<clin
it>(IOR.java:79)
at com.sun.corba.ee.internal.core.IOR.<init>(IOR.java:218)
at com.sun.corba.ee.internal.iiop.messages.LocateReplyMessage_1_2.read(L
ocateReplyMessage_1_2.java:137)
at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPIn
putStream.java:126)
at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnect
ion.java:670)
at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.jav

How can I get through this problem?

Thanks
Veena


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
Got it! Worked after setting rt.jar into classpath where JDKBridge was there.I thought JDKBridge it is reffering to in the exception existed in J2EE.jar file which i had already set in classpath.

I think this will be helpfull for any newbies who is trying to run AdviceClient.
Richard Rex
Ranch Hand

Joined: Sep 19, 2005
Posts: 100
Hi Veena Point,

I added 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?


"If you fail to plan, you plan to fail."<br /> <br />Chad<br />SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS (next)
shweta bulbule
Ranch Hand

Joined: Mar 24, 2006
Posts: 30
Hi even i m getting the same error
Exception in thread "main" java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native
Method)

but no explanation is given by anyone on this

can anyone suggest what may be the solution?


Thanks,<br />Shweta
Richard Rex
Ranch Hand

Joined: Sep 19, 2005
Posts: 100
Hi shweta bulbule,

I have already ran this program. Thanks to all!

I just repeated everything. Uninstalled everything from my pc. Started all over again, from installation, setting the JAVA_HOME, J2EE_HOME, CLASSPATH, and PATH, and following the steps in the HFEJB Book. No rt.jar in CLASSPATH. Just the j2ee.jar and it worked fine.

Maybe you should do the same. Best of luck!
Bharathi Kongara
Ranch Hand

Joined: Sep 15, 2005
Posts: 56
Originally posted by Veena Point:
Got it! Worked after setting rt.jar into classpath where JDKBridge was there.I thought JDKBridge it is reffering to in the exception existed in J2EE.jar file which i had already set in classpath.

I think this will be helpfull for any newbies who is trying to run AdviceClient.


It worked for me too ... thanks Veena for your advice!
Bharathi Kongara
Ranch Hand

Joined: Sep 15, 2005
Posts: 56
Originally posted by shweta bulbule:
Hi even i m getting the same error
Exception in thread "main" java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native
Method)

but no explanation is given by anyone on this

can anyone suggest what may be the solution?


Does anybody have solution to the quoted problem? I recently ended up formatting my system and I now have only J2EE 1.3 and J2SE 1.3 and the corresponding environment variables .... and I came across the above error ... adding rt.jar doesn't solve the above problem!
Rajan Murugan
Ranch Hand

Joined: Jun 24, 2006
Posts: 182
Which jdks are there in your system currently apart from jdk 1.3


With Regards,<br /> Rajan<br />"Java Rocks"
Bharathi Kongara
Ranch Hand

Joined: Sep 15, 2005
Posts: 56
I just have J2EE 1.3 and J2SE 1.3 in my computer right now, but I do have the latest version of JRE ... but that shouldn't be causing the above problem?!
Rajan Murugan
Ranch Hand

Joined: Jun 24, 2006
Posts: 182
please check the path.

You need to have JAVA_HOME AND J2EE_HOME env variables declared.

which jre is it accessing at runtime?
[ November 23, 2006: Message edited by: Rajan Murugan ]
Amol Jadhav
Greenhorn

Joined: Dec 13, 2006
Posts: 2
Me too faced the problem, The java.exe use to run the AdviceClient was from wrong path. when used correct java.exe it worked

Not working

java -classpath C:\j2sdkee1.3.1\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient

Working

C:\j2sdk1.4.2_10\bin\java -classpath C:\j2sdkee1.3.1\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with AdviceClient
 
Similar Threads
Error in compiling Advice Client in ejb
Almost have AdviceClient run, but.... help!
HFEJB chapt1 demo (AdviceClient)
AdviceClient Solution
Where can rt.jar file be located ?