1 Reply Latest reply on Apr 19, 2002 11:11 PM by akutovoy

    ejb client not working

    sainideepak

      Hi,

      i was using the Interest client given in the examples.
      the bean got deployed but the client is not working. it says

      C:\JBoss-2.4.4\examples>java org.jboss.docs.interest.InterestClient
      Got context
      javax.naming.NoInitialContextException: 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

        • 1. Re: ejb client not working
          akutovoy

          Create the jndi.properties file and make sure it is on your client's classpath. The file might look as follows:

          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.provider.url=localhost:1099
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces