4 Replies Latest reply on Feb 20, 2006 9:45 AM by lkotouc

    InitialContext error

    crazyone

      Hi to all, and thanks in advanced, i want to know i can be sure that my EJB module is correctly deployed. Netbeans shows the message that deplayment was successfull, but when i try to use the ejb's (BMP) from application client (not web) i got the message: "Need to specify name in environment or system property ......" javax.naming.NoInitialConextException. Maybe i'm missing something, please help

        • 1. Re: InitialContext error
          nashaccount

          I'm gettin' the same error:

          init:
          deps-jar:
          init:
          deps-jar:
          compile:
          library-inclusion-in-archive:
          dist:
          compile:
          run:
          Caught an unexpected exception: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
          Java Result: 1
          BUILD SUCCESSFUL (total time: 0 seconds)

          • 2. Re: InitialContext error
            lkotouc

            Search your server installation directory for jndi.properties file and set the system properties accordingly.

            • 3. Re: InitialContext error
              crazyone

              Thanks, i really appreciate your help, i would like to ask you something, do you think is ok or good that i follow the examples (for BMP) at the document The J2EE 1.4 Tutorial for NetBeans IDE 4.1, maybe you can recomend me another. I just want an example where i create an EJB Module with an entity bean, then deploy it, create an application (not web) call that entity to insert, delete, update, etc..

              Thanks a lot

              • 4. Re: InitialContext error
                lkotouc

                I talked with Doc team, we have no example for calling EJBs directly from a J2SE client.
                Maybe http://www.netbeans.org/kb/50/quickstart-j2ee.html could help you a little bit.