【发布时间】:2015-06-23 21:33:14
【问题描述】:
我正在使用安装在 Eclipse Luna 中的 IBM MobileFirst 7.0。
我有 2 个应用:移动应用和控制台应用在同一个项目中。
每当我运行控制台应用程序时,我都会收到以下错误消息:
未捕获的 ReferenceError: WLJQ 未定义 initOptions.js:47 未捕获的 ReferenceError:未定义 WL
在运行 iPad 应用程序时,我得到:
找不到文件或目录和服务器错误
日志:
App[3991:1914543] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:324 :: Request Failed
App[3991:1914543] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:325 :: Response Status Code : 404
App[3991:1914543] [DEBUG] [WL_AFHTTPCLIENTWRAPPER_PACKAGE] -[WLAFHTTPClientWrapper requestFailed:error:] in WLAFHTTPClientWrapper.m:326 :: Response Error : Expected status code in (200-299), got 404
App[3991:1914543] [ERROR] [WL_REQUEST] -[WLRequest requestFailed:error:] in WLRequest.m:466 :: Status code='404' error='Expected status code in (200-299), got 404' response='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>404 - File or directory not found.</h2>
<h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
</fieldset></div>
</div>
</body>
</html>
如果我将我的项目重新导入到新的 Eclipse 工作区,此错误将停止出现,但在我退出 Eclipse 并重新打开它后,问题再次出现。
【问题讨论】:
-
关闭 Eclipse,打开终端并使用“open $TMPDIR”,删除 wlBuildResources 文件夹。再试一次。
-
好的,让我们退后一步 - 什么是“移动应用程序和控制台应用程序”?你的意思是两个应用程序?这两个应用程序如何交互?你能压缩你的工作区和你的 Eclipse 并将它们上传到某个地方,以便我在这里本地使用它吗?
-
我们有两个应用程序。一个在 iPas 上运行,另一个用于在控制台上运行的管理员。对于两者,我们都使用 sql 适配器来处理数据。代码是公司财产,所以我不能这样分享。我制作了一个演示应用程序,但我没有遇到这个问题。在这个项目中,只有我面临同样的问题
-
我确实在 6.3 中间歇性地看到了这个问题,无法定义触发它的原因。我知道有些人发现 $TMPDIR 修复有效,但对我来说,唯一的解决方法是退出 Eclipse 并完全重新启动我的机器或创建一个新项目。
-
一个通常对我有用的解决方法是更改工作区并将项目导入新工作区。
标签: ibm-mobilefirst mobilefirst-studio