Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Advice Client problem

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to get the Advice Client running in Chapter 1 of HeadFirst EJB, but I keep getting the following error

javax.naming.noInitialContextException: Need to specify class name in environment or system property or as an applet parameter or as an application resource file.

I've looked at all the notes regarding changing the JNDI name from Test1 to Advisor, I'm running J2EE 1.3 and jsdk1.3.1_12 and I ain't getting no joy. The j2ee server starts up nicely and my bean verifies as correct in the deploy tool and deploys fine.I've compiled up the client as per the instructions in the book and run it as per the book.

What's up and can anyone help - Thanks Peter
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter
I am not exactly sure but I guess you need to check if j2ee.jar is in your CLASSPATH?
Also make sure that you are deploying your bean with name "Advisor"
[ August 26, 2004: Message edited by: Muzammil Hussain ]
 
Peter Warde
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. Problem solved. Just for anyone else looking at this thread it was because the j2ee.jar file was not on the classpath.
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic