problem with AdviceClient

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

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

posted Jul 02, 2006 01:18:00

0

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.

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

posted Nov 19, 2006 18:36:00

0

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!