0 Replies Latest reply on Apr 17, 2002 5:26 AM by Thorsten Klusemann

    env-entry not recognizes by JBoss2.4.4 with Tomcat 4.0.1

    Thorsten Klusemann Newbie

      Hello,

      I have a web application that defines some environment entries within its web.xml file, for example:

      <env-entry>
      <env-entry-name>settings/JndiInitialContextFactory</env-entry-name> <env-entry-value>org.jnp.interfaces.NamingContextFactory</env-entry-value>
      <env-entry-type>java.lang.String</env-entry-type>
      </env-entry>
      When I lookup those entries with:

      InitialContext ctx = new InitialContext();
      String jndiInitialContextFactory = (String)ctx.lookup("java:comp/env/settings/jndiInitialContextFactory");

      I retrieve a NameNotBound Exception.

      Any ideas?

      Regards

      Thorsten Klusemann