NetworkError:404在Firefox上找不到 [英] NetworkError: 404 Not Found on firefox

查看:209
本文介绍了NetworkError:404在Firefox上找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在gae上为java部署了gwt应用程序。该应用程序在谷歌浏览器中运行正常,但在ie和firefox上出现以下异常



NetworkError:404未找到 -

基于使用SVN和Eclipse正确设置GWT项目我们已经排除了adminmodule目录中的文件以上传到应用程序引擎。

请告知它失败的原因以及如何使其工作。

被忽略的模式有:

  .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


解决方案

您将获得404. HORROR !!! !



目前只有/ deploy /文件夹可以被忽略,而不是war / gwtmodule。

所有gwt生成的脚本都在war / gwtmodule中,您需要将它们每次编译上传到appengine中。

这些都是在编译阶段生成的每一个版本,因此不会检入svn。



他们需要位于APP引擎的部署文件夹中。

我建议您可以通过GWT https://通过GWT团队了解App Engine的优秀文档developers.google.com/web-toolkit/doc/latest/tutorial/appengine

编辑 -
<基于浏览器*语言排列,模块名> .nocache.js 加载< longnumeric> .cache.html GWT编译你的java代码来创建< modulename> .nocache.js< / code>和相关的cache.html文件。缓存和nocache指示浏览器是否应缓存或不缓存文件。



您将在gwtapp的html文件中引用.nocache.js脚本。


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

解决方案

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.

这篇关于NetworkError:404在Firefox上找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆