0 Replies Latest reply on Mar 12, 2002 8:38 PM by garyg

    Can't find SerialContextProvider

    garyg

      I've seen other posts about this topic, but they all suggest adding the proper jar to the classpath. I've got a client which runs fine locally to jboss, but now that I'm testing it over on a separate machine, I get the following.

      I've followed as best I can to the section on 'coding and compiling the test client'.

      Any help much appreciated.

      --- jndi.properties ---
      # note ... 192.168.0.10 is where my jboss server is running.

      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
      # Do NOT uncomment this line as it causes in VM calls to go over
      # RMI!
      #java.naming.provider.url=localhost

      --- I have the following files in my clients classpath ---

      jaas.jar
      jboss-client.jar
      jboss.jar
      jbosssx-client.jar
      jnp-client.jar
      oswego-concurrent.jar

      --- output ---

      javax.naming.CommunicationException: Can't find SerialContextProvider
      at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
      a:63)
      at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
      )
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at com.neuroquest.cais.clients.builder.Builder.createSubscription(Builde
      r.java:95)
      at com.neuroquest.cais.clients.builder.Builder.main(Builder.java:173)