Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Chapter 1 HF example error (OH WOW)

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is u'r classpath looks like?
 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
classpath = %J2EE_HOME%/lib/j2ee.jar;C:\java\SCBCD\Advice\
 
Andree Charfen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
I wish to win the lottery. I wish for a lovely piece of pie. And I wish for a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic