IBM MobileFirst 7.0 - 未捕获的ReferenceErrors:未定义WLJQ,未定义WL

时间:2015-04-17 06:57:20

标签: ibm-mobilefirst mobilefirst-studio

我正在使用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并重新打开它后,问题会重新出现。

2 个答案:

答案 0 :(得分:6)

我已经找到了一件事,希望在这里工作的还有以下几点。

如果在更改网络后发生这种情况,或者您的IP地址发生变化,请尝试(无论如何)尝试右键单击应用程序文件夹,然后选择运行方式&gt;预习。这将在服务器上强制和IP更新,至少在这里 - 解决了这个问题。

答案 1 :(得分:1)

删除临时文件夹对我有用。请按照以下步骤操作

  1. 关闭Eclipse。
  2. 打开终端并使用open $TMPDIR命令。
  3. 导航到子文件夹。查找并删除 wlBuildResources 文件夹
  4. 打开eclipse并重新运行该应用程序。