0 Replies Latest reply on Aug 13, 2002 3:09 AM by garyg

    3.0.1 jndi client config

    garyg Novice

      I'm still trying to get my stuff ported from 2.4.4 to 3.0.1. This was working fine w/ 2.4.4.

      Using the following jndi.properties config, I get the NoInitialContextException error below. I have the JNDI_RESOURCE variable set to this file and it's also in the CLASSPATH. I've also copied everything from the ~/client dir into my remote clients classpath.

      Any help much appreciated.

      --- jndi.properties ---

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://192.168.0.10:1099
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      #jnp.socketFactory=org.jnp.interfaces.TimedSocketFactory
      #jnp.timeout=0
      #jnp.sotimeout=0

      --- error output ---

      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
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:638)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:278)
      at javax.naming.InitialContext.lookup(InitialContext.java:345)
      at com.neuroquest.cais.clients.builder.Builder.setupQueueReceiver(Unknown Source)
      at com.neuroquest.cais.clients.builder.Builder.main(Unknown Source)
      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
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:638)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241)
      at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:278)
      at javax.naming.InitialContext.lookup(InitialContext.java:345)
      at com.neuroquest.cais.clients.builder.Builder.platformSubscription(Unknown Source)
      at com.neuroquest.cais.clients.builder.Builder.main(Unknown Source)