NetworkError: 404 Not Found on firefox

爷,独闯天下 提交于 2020-01-05 07:51:14

问题


We have a gwt app deployed on gae for java. The app runs fine in google chrome but fails with below exception on ie and firefox

NetworkError: 404 Not Found - http://www.sakshum.org/adminmodule/67883654A8944A4C561CF25763FB1D79.cache.html

based on Setup a GWT Project correctly with SVN and Eclipse we have excluded the files in adminmodule directory to upload to app engine.

Please advise what is reason for it to fail and how to make it working.

The ignored patterns are:

.svn
*.bak
classes/
thumbs.db
*.class
.gwt*
gwt-unitCache/
deploy/
war/adminmodule/
war/sakshumwebgae/
sakshumweb/war/WEB-INF/deploy/adminmodule/
sakshumweb/war/sakshumwebgae/
.bin
*.orig

回答1:


You will get 404. HORROR!!!!

Currently only /deploy/ folder can be ignored and not war/gwtmodule.

All the gwt generated scripts are in war/gwtmodule and you need to upload them per compilation into appengine.

These are generated every build in compilation phase and hence are not checked into svn.

They need to be in deployment folder for APP Engine.

I suggest you go through the GWT teams excellent document for App Engine with GWT https://developers.google.com/web-toolkit/doc/latest/tutorial/appengine

Edit - <modulename>.nocache.js loads <longnumeric>.cache.html based on browser * language permutation. GWT compiles your java code to create the <modulename>.nocache.js and the relevant cache.html files. cache and nocache indicates whether browser is supposed to cache or not cache the file.

You will have the .nocache.js script reference in your html file for the gwtapp.




回答2:


It's normal for the GWT compiler to build different javascript files for each permutation. A permutation is for a specific user-agent (browser, eg ie9 gecko (ff), webkit (chrome/safari)) and language (English, French). So you've correctly uploaded all the output files for the chrome browser, presumably in English. It would seem, as you say, that you're filtering out other files from uploading, and that some of those files are requested when using a different permutation for Firefox in English. You should try not to filter those files.



来源:https://stackoverflow.com/questions/14097071/networkerror-404-not-found-on-firefox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!