簡體   English   中英

IBM MobileFirst 7.0 - 未捕獲的ReferenceErrors:未定義WLJQ,未定義WL

[英]IBM MobileFirst 7.0 - Uncaught ReferenceErrors: WLJQ is not defined, WL is not defined

我正在使用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並重新打開它之后,問題再次出現。

我發現的一件事,也有希望在這里工作,如下。

如果在更改網絡或更改IP地址后發生這種情況,請嘗試(無論如何)嘗試右鍵單擊應用程序文件夾並選擇“運行方式”>“預覽”。 這將在服務器上強制和IP更新,至少在這里 - 解決了這個問題。

刪除臨時文件夾對我有用。 跟着這些步驟

  1. 關閉Eclipse。
  2. 打開終端並使用open $TMPDIR命令。
  3. 導航到子文件夾。 查找並刪除wlBuildResources文件夾
  4. 打開eclipse並重新運行該應用程序。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM