0 Replies Latest reply on Sep 28, 2001 7:57 AM by jastor

    MalformedURLException if jndi.properties uncommented

    jastor

      Hey,

      I'm using JBoss-2.2.2_Tomcat-3.2.2 just as my
      colleague does. We running the same simple test
      client and test bean. However, when my bean does a
      Context initCtx = new InitialContext(env);
      it causes a
      "javax.naming.InvlidNameException: jnp://localhost:1099 [Root exception is java.net.MalformedURLException: unknown potocol: jnp]".

      But my colleagues's works fine!

      We figured the reason in a minor difference between our
      configuration:

      in his $JBOSS_DIST\jboss\conf\tomcat\jndi.properties
      the following line is commented out:
      #java.naming.provider.url=jnp://localhost:1099

      However, mine is not!!
      That caused the problem!
      My question now: Why?

      Any help appreciated
      Thanx
      Jens