【发布时间】:2012-01-02 12:36:10
【问题描述】:
目前我正在 eclipse 3.7 中使用 GWT 2.4.0 开发一个 GWT 项目。我在 Tomcat 7 中部署了该应用程序。它在过去 2 个月内完美运行。
但是,现在我遇到了一个我无法追踪问题的问题。这是“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 错误,要么是检索所需文件时出错)
-
尝试从谷歌浏览器运行您的应用程序,因为它可能会向您显示其他网络浏览器不会显示的错误
-
感谢您的建议 ~ 我在 JavaScript 控制台 (Google Chrome) 中看到以下错误...
未捕获的 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)。
标签: gwt