Results 1 to 3 of 3
  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default NoInitialContextException

    I'm currently learning EJB using J2EE 1.4.
    I had made a small application, to calculate money conversion.
    I already deploy all the home interface, remote interface, the EJB class and I also returning the client jar upon deployment.
    But when I try to access the EJB through a client's application, I'm always getting the NoInitialContextException, need to specify class name.....
    Is there anyone know how to make this working??

    Thanks

  2. #2
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default

    Check your AppServer. Probably you might not have specified the JNDIName while deploying.
    ;)

  3. #3
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    7

    Default

    When creating an InitialContext, the correct JNDI properties applying to the server you're using need to be set, either hardcoded or in a jndi.properties file (in the classpath).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •