| Author |
Anyone could hel for this HEAD FIRST runing AdviceClient : Exception in thread "main
|
Christ Alain Bassop
Greenhorn
Joined: May 11, 2005
Posts: 3
|
|
Well thanks for paying attention to this post: these are my environement variables : JAVA_HOME : c:\j2sdk1.4.2_04 J2EE_HOME : c:\j2sdkee1.3.1 PATH : c:\j2sdk1.4.2_04\bin;c:\j2sdkee1.3.1\bin CLASSPATH : c:\j2sdk1.4.2_04\lib\j2ee.jar;%J2EE_HOME%\lib\j2ee.jar; This is my current directory and files inside after a dir command: R�pertoire de C:\j2sdk1.4.2_04\bass\projects\advice 12/05/2005 02:18 <DIR> . 12/05/2005 02:18 <DIR> .. 12/05/2005 02:12 3�657 AdviceApp.ear 12/05/2005 02:13 22�313 AdviceAppClient.jar 12/05/2005 02:18 1�418 AdviceClient.class 10/05/2005 01:22 887 AdviceClient.java 11/05/2005 21:06 <DIR> classes 11/05/2005 21:06 <DIR> src I am no longer blocked with the compilation command but now it's terrific and nobody faced this in the previous posts. I am a bit at lost with the following error when I try to run this : I typed : java -cp %CLASSPATH%;AdviceAppClient.jar AdviceClient I ve got this : 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) at com.sun.corba.ee.internal.core.IOR.<init>(IOR.java:238) at com.sun.corba.ee.internal.iiop.messages.LocateReplyMessage_1_2.read(LocateReplyMessage_1_2.java:137) at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPInputStream.java:126) at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnection.java:671) at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.java:778) at com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java:786) at com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClient.java:597) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.java:573) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingClient.java:544) at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1080) at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981) at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425) at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120) at javax.naming.InitialContext.lookup(Unknown Source) at AdviceClient.go(AdviceClient.java:20) at AdviceClient.main(AdviceClient.java:12) Please tell me where I have been wrong, because for sure I am wrong somewhere...
|
 |
Lahiru Abeydeera
Ranch Hand
Joined: Nov 05, 2004
Posts: 44
|
|
Try adding appsvrt2.jar (I m not really sure the file name but got to be something similar to this) in J2EE_HOME/lib directory your class path. This might work Good luck
|
 |
Christ Alain Bassop
Greenhorn
Joined: May 11, 2005
Posts: 3
|
|
Hi guys, spcialy Lahiru and thank for your assistance quote : ________________________________________________________________________ Try adding appsvrt2.jar (I m not really sure the file name but got to be something similar to this) in J2EE_HOME/lib directory your class path. This might work _________________________________________________________________________ How can I add this file (appsvrt2.jar) I don't have it, I searched on my machine in J2EE and JAVA folder could not see it. the error was this : Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge Is this a physical path in my machine or that has to be in my machine or is it a path located in the AdviceAppClient.jar file. If this pysical path has to be somewehere in my machine I don't have it in JAVA_HOME J2EE_HOME directories and subdirs. it seems that nobody has gotten this error, it's hot for me now I keep waisting my time with this error, is there somebody there. AnyOne to rescue me ??? help !!!
|
 |
narendranadh j
Greenhorn
Joined: Feb 08, 2005
Posts: 1
|
|
Hi christ, I too had run into the same kind of "NoClassDefFoundError" problem. I think it is due to incompatibility between j2sdk versions. When i got this error i had Jdk1.5 and i checked in JAVA_HOME/jre/lib/rt.jar ( this is where all the corba related files are grouped). but i didn't find the specified class. So, i downloaded j2sdk1.4.2_08 and checked in the "rt.jar" file. In this version i could find the file. So, i set the JAVA_HOME to the new version and every thing worked fine. So, in your case too you may need to check the rt.jar file for j2sdk1.4.2_04 version. If you don't find the class in that jar, just download j2sdk1.4.2_08. I hope that solves your problem. btw: i don't think you need "c:\j2sdk1.4.2_04\lib\j2ee.jar" in your class path. Cheers,
|
 |
Andree Charfen
Ranch Hand
Joined: Mar 24, 2004
Posts: 32
|
|
got the same error as you guys. Did you find anything??!?! [ May 13, 2005: Message edited by: Andree Charfen ]
|
yeeeehhhhaaaaaa<br />(riding the JVM)
|
 |
Sudhakar Krishnamurthy
Ranch Hand
Joined: Jun 02, 2003
Posts: 76
|
|
check out the link on how to fix this... http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html
|
 |
 |
|
|
subject: Anyone could hel for this HEAD FIRST runing AdviceClient : Exception in thread "main
|
|
|