This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Chapter 1 HF example error (OH WOW) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Chapter 1 HF example error (OH WOW)" Watch "Chapter 1 HF example error (OH WOW)" New topic
Author

Chapter 1 HF example error (OH WOW)

Andree Charfen
Ranch Hand

Joined: Mar 24, 2004
Posts: 32
OH wow... I have been trying to run the example in chapter 1 for 2 days now! hahaha.... ok here is where I am:



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

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/JDKBridge

{....}

at javax.naming.InitialContext.lookup(Unknown Source)
at AdviceClient.go(AdviceClient.java:25)
at AdviceClient.main(AdviceClient.java:11)


I made a search and couldnt find anything on this PARTICULAR error with the JDKBridge thing! Still fighting to get it running! PLEASE HELP ME


yeeeehhhhaaaaaa<br />(riding the JVM)
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
what is u'r classpath looks like?
Andree Charfen
Ranch Hand

Joined: Mar 24, 2004
Posts: 32
classpath = %J2EE_HOME%/lib/j2ee.jar;C:\java\SCBCD\Advice\
Andree Charfen
Ranch Hand

Joined: Mar 24, 2004
Posts: 32
OK... I am messing with everything I can.

What do I need to have on my hardcoded properties for the lookup. I dont get it yet!

Properties prop = new Properties();

prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory");
prop.put(Context.PROVIDER_URL,"127.0.0.1:4848");


???
Andree Charfen
Ranch Hand

Joined: Mar 24, 2004
Posts: 32
OH YES! Got it working! Wow!

I got the example working after a lot of work. All the research helped me to understand a lot of things. I wished java was a little more transparent as far as configuration. I hate all the deal with CLASSPATH vars and stuff like that. Oh well...
 
 
subject: Chapter 1 HF example error (OH WOW)