3 Replies Latest reply on Dec 8, 2004 3:45 AM by Stefan Klemm

    Configuring JNDI over HTTP

    lorenet Newbie

      Hello! I'm trying to modify an application to run back a firewall using only HTTP.
      I've changed these JNDI properties in the client application:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.provider.url=jnp://$(host):1099
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces


      to these:

      java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
      java.naming.provider.url=http://$(host):8080/invoker/JNDIFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces


      but I'm getting this Exception:

      javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.lang.ClassNotFoundException: org.jboss.naming.interceptors.ExceptionInterceptor]
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:68)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
      at javax.naming.InitialContext.init(InitialContext.java:219)
      at javax.naming.InitialContext.(InitialContext.java:175)


      What should I do? I have to change somethimg in jboss configuration? I've read jboss documentation and it seems to me that everything is just setted..

      I'm using jboss3.2.3 and j2sdk1.4.2_3

      Thanks a lot for any help!
      Lore