I've got the same problem... it is explained in the jboss/ejb samples... I think you must put a jndi.properties in the client classpath , otherwise it cannot guess who is the JNDI provider...
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 set the good host:port values... (1099 correspond to a port defined in the jboss.jcml, localhost should be replaced by a network name if you try to contact your EJB remotely) add also the jboss/client/jnp-client.jar in the classpath you can also set explicitely the properties, on the java VM command line, or via an API. > -----Message d'origine----- > De: Steven Hawkes [mailto:[EMAIL PROTECTED]] > Date: mardi 20 novembre 2001 09:46 > �: [EMAIL PROTECTED] > Objet: [JBoss-user] Initial problems with running JBoss 2.4.3 > > > I have a simple general question which I hope you can > help me with. > > I am trying to get my first EJB to run. Installed JBoss > and it installed ok. I created my bean and it installed > ok in the server. > > I created the client but when I run it I get the following error > message: > > 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 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
