Static files in (Java) App Engine not accessible

前端 未结 4 488
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 17:43

The example documentation says that you simply need to place your files in war/ (or a subdirectory) and they should be accessible from the host (as long as they aren\'t JSPs or

4条回答
  •  伪装坚强ぢ
    2021-02-07 18:07

    I realize that this is an really old question but I just ran into the same problem. I had put my css/*.css, js/*.css, and favicon.ico under /war/static/ and used the public_root directive in my appengine-web.xml to point to /static. This worked fine on my local dev server but did not when I uploaded the app. Getting rid of /static and moving everything up a level worked for me.

    SDK v1.5.2 (Java) on Mac OSX 10.6.8 with Java SE 6 (MacOS X Default)

提交回复
热议问题