目前我正在使用eclipse 3.7中的GWT 2.4.0开发一个GWT项目。我在Tomcat 7中部署应用程序。它在过去的2个月里运行得非常好。GWT项目无法在默认html文件中加载**。nocache.js
但是,现在我遇到了无法追踪问题的问题。这里是“welcomeGWT.html”的源代码。
<!doctype html>
<!--
The DOCTYPE declaration above will set the browser's rendering engine into
"Standards Mode". Replacing this declaration with a "Quirks Mode" doctype may
lead to some differences in layout.
-->
<html>
<head>
<meta name='gwt:module' content='com.haircare101.cesapp.Main=com.haircare101.cesapp.Main'>
<title>101 HairCare: Customer Excellence System</title>
</head>
<body>
<script type="text/javascript" src="com.haircare101.cesapp.Main/com.haircare101.cesapp.Main.nocache.js"></script>
</body>
</html>
由于Tomcat的开始,我输入相应的URL到浏览器,它让我看到这个页面,没有错误(Tomcat的内部日志文件没有错误显示)。但它无法将我引导到指定的GWT主入口点(当我可以“浏览浏览器的源”时看到此源文件)。
**我没有编译错误,没有部署错误或没有运行时错误。
任何人都可以告诉我为什么卡在这个页面?非常感谢和欣赏!
干杯, 瑞安C.
是否有浏览器的控制台/开发工具的错误? (JS错误,或错误检索所需的文件) – 2012-01-02 13:22:59
尝试从谷歌浏览器运行你的应用程序,因为它可能会显示你的错误其他浏览器不会 – 2012-01-02 13:42:36
感谢您的建议〜我看到JavaScript控制台(谷歌浏览器) ...
未捕获java.lang.IndexOutOfBoundsException (匿名函数)8B0B2BF935822EA071855520D60A5B14.cache.html:2179 gwtOnLoad8B0B2BF935822EA071855520D60A5B14.cache.html:2341个 Bcom.haircare101.cesapp.Main.nocache.js:2 com_haircare101_cesapp_Main。 onScriptLoadcom.haircare101.cesapp.Main.nocache.js:15 (匿名功能)
有人能告诉我脚本发生了什么吗? (我没有更改HTML或JavaScript)。 – 2012-01-02 15:05:57