• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Anyone could hel for this HEAD FIRST runing AdviceClient : Exception in thread "main

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !!!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
got the same error as you guys. Did you find anything??!?!
[ May 13, 2005: Message edited by: Andree Charfen ]
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
check out the link on how to fix this...
http://wickedlysmart.com/HeadFirst/HeadFirstEJB/HeadFirstEJBNotes.html
 
To get a wish, you need a genie. To get a genie, you need a lamp. To get a lamp, you need a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic