0 Replies Latest reply on Jan 30, 2006 1:40 PM by Jasmine Wong

    jndi lookup

    Jasmine Wong Newbie

      I need help!

      I am using Tomcat 5.5 and JBoss 4.0.3SP1 with JDK 1.5. I am having trouble contacting JBoss from Tomcat.

      I have the following codes:

      Properties props=new Properties();
      props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
      props.setProperty ("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      props.setProperty ("java.naming.provider.url", "jnp://localhost:1099");
      InitialContext initialContext = new InitialContext(props);

      Then I get the following errrors:

      Trace: javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657).

      How to resolve this problem?