私は apache-tomcat-7.0.35 を使用しています。以下のように server.xml で環境変数を定義しました。
<GlobalNamingResources>
        <Environment name="sam" 
                 value="D:\AppServers\apache-tomcat-7.0.35\conf\sample.xml"
                 type="java.lang.String" override="true"/>
  </GlobalNamingResources>
context.xml のコンテキスト要素の横に ResourceLink 要素を使用しています
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/Practice_1" docBase="/Practice_1"
    crossContext="true" reloadable="true" debug="1">
<ResourceLink name="sam" global="sam" type="java.lang.String"/>
</Context>
を使用してコードでこの値を取得しようとすると
 Context initCtx = new InitialContext();
        String configPath = (String)initCtx.lookup("sam");
その投げるjavax.naming.NameNotFoundException.javax.naming.NameNotFoundException: Name [sam] is not bound in this Context. Unable to find [sam].
どうすればこれを修正できますか?