0 Replies Latest reply on Mar 27, 2013 5:12 AM by haithamnor

    Jboss JNDI properties under Tomcat

    haithamnor

      Hi. I am using JBOSS 4.2.3 and Tomcat 7.

      so while lookup  JNDI

       

      (

      prop.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");

      prop.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming");

       

      )

       

      from client application under Tomcat

       

      i got the following Error 

       

      << Cannot instantiate class: org.jnp.interfaces.NamingContextFactory >>

      Any help?

      Thx

       

       

       

       

       

       

      prop.setProperty("java.naming.provider.url", "192.168.0.18:1099");