GAE/J で WARNING Can not serve hoge.html directly. You need to include it in <static-files> in your appengine-web.xml
2009 年 10 月 25 日
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
てな感じで怒られる。
appengine-web.xml の書き方が間違っているらしい。
<static-files> <include path="/**.html" /> <include path="/**.css" /> <include path="/**.js" /> </static-files>
こう書いてたけど、これではルート直下のんしか駄目らしい。
ルート以下の任意のサブディレクトリの下にも適用するには、
<static-files> <include path="**.html" /> <include path="**.css" /> <include path="**.js" /> </static-files>
こっちが正解らしい。
カテゴリー: Google App Engine, eclipse, java