Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using IBM MobileFirst 7.0 installed in Eclipse Luna.
I have 2 apps: mobile app and console app in the same project.

Whenever I will run the console app I will get the following error message:

Uncaught ReferenceError: WLJQ is not defined initOptions.js:47 Uncaught ReferenceError: WL is not defined

And on running the iPad application I get:

File or directory not found and Server Error

Log:

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>

If I re-import my project to a new Eclipse workspace this error stops appearing, but after I quit Eclipse and re-open it the problem reappears.

like image 919
Vishal Singh Avatar asked Mar 17 '23 09:03

Vishal Singh


1 Answers

One thing I have come to find, and that will hopefully work here as well, is the following.

If this happens after you change networks, or your IP address changes, attempt (try it regardless) to right-click on the application folder and select Run As > Preview. This will force and IP update on the server, and at least here - solves this issue.

like image 183
Idan Adar Avatar answered May 16 '23 05:05

Idan Adar