0 Replies Latest reply on Jan 14, 2006 11:15 AM by Shawn Garner

    env not bound

    Shawn Garner Newbie

      I have in my web.xml:


      <env-entry>
      <description>
      Sets the logging context for the Change Form Application
      </description>
      <env-entry-name>logging-context</env-entry-name>
      <env-entry-value>/totwcf</env-entry-value>
      <env-entry-type>java.lang.String</env-entry-type>
      </env-entry>


      Then in java:

      Context initCtx = new InitialContext();
      Context envCtx = (Context) initCtx.lookup("java:comp/env");
      loggingContextName = (String) envCtx.lookup("logging-context");
      System.out.println("Found JDNIRS: java:comp/env");


      This is throwing a NamingException saying: env not bound

      I'm new to JBoss can somebody help me?

      Shawn