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

Vis*_*ngh 4 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>
Run Code Online (Sandbox Code Playgroud)

如果我将项目重新导入到新的Eclipse工作区,则此错误将停止显示,但在我退出Eclipse并重新打开它之后,问题再次出现.

Ida*_*dar 6

我发现的一件事,也有希望在这里工作,如下.

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