Google App Engine for Java (GAE/J) で、静的ファイル ( html、css、js ) を扱おうとして、

WARNING: Can not serve /hoge/hoge.nocache.js directly. You need to include it in in your appengine-web.xml.

てな感じで怒られる。

appengine-web.xml の書き方が間違っているらしい。

<static-files>
<static-files>
    <include path="/**.html" />
    <include path="/**.css" />
    <include path="/**.js" />
</static-files>
</static-files>

こう書いてたけど、これではルート直下のんしか駄目らしい。

ルート以下の任意のサブディレクトリの下にも適用するには、

<static-files>
<static-files>
    <include path="**.html" />
    <include path="**.css" />
    <include path="**.js" />
</static-files>
</static-files>

こっちが正解らしい。