I am developing an app with ibm mobilefirst v7.1 . It was working fine until today morning an update for windows 10 .after that am facing the problem Error 404: SRVE0190E: File not found ** when i try to do **open mobile first console on my application nothing opens and also when i direclty put server url i get the above error msg and the important point is when i check the server console i get the below note:i have deleted mobilefirstserver folder,cleaned workspace,restarted still same occur`help pls and thanks in advance.
Application 'k' with all environments build finished.
[2015-12-31 12:55:59] Deploying application 'k' with all environments to MobileFirst Server...
[2015-12-31 12:56:45] Application 'k' deployed successfully with all environments
Web application available (default_host): http://192.168.*.*:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 1.788 seconds.
[AUDIT ] CWWKG0016I: Starting server configuration update.
[AUDIT ] CWWKG0017I: The server configuration was successfully updated in 2.473 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.*.*:10080/j/
[WARNING ] Using empty value for configuration property 'wl.analytics.logs.packages'
Try the following:
Close Eclipse
Locate your temp folder
Delete the wlBuildResources folder
Open Eclipse
Re-build
Related
On the MobileFirst Server Platform Foundation 7.0, the Preview is not working in the console. On the Eclipse development side, all is working well.
The error message is the following:
Here is the error in the log:
[4/10/15 12:12:55:267 CEST] 00000027 org.apache.wink.server.internal.RequestProcessor I The following error occurred during the invocation of the handlers chain: WebApplicationException (404 - Not Found) with message 'null' while processing GET request sent to http://10.3.20.64:9080/catalogmanagerfull/authorization/v1/clients/preview
The application can use the server without any issue. It's really only the Preview in the console that is not working. The Application Server is a WAS Liberty profile running on Linux.
In a MobileFirst Server V6.3, the same project has no issue.
Preview is not meant to work in a production environment, however the preview button was still there in the GM release of MFPF 7.0.
I think you might have hit APAR PI37266:
MFP OPERATIONS CONSOLE: PREVIEW OF COMMON RESOURCES BUTTON MUST BE
HIDDEN IN PRODUCTION ENVIRONMENT
So, you should update your installation to the latest available 7.0 iFix, whereh the preview button is not longer available.
I am having some trouble building/running the HelloWorld application from the first hybrid app tutorial.
When I try to run the default HelloWorld application on the MobileFirst Development Server, the server starts and seems to stop again (without error) before the MobileFirst Application Builder has a chance to finish running. This then causes the application to fail to deploy with the following error message:
[2015-01-23 14:03:12] Failed to deploy application 'HelloWorld' to MobileFirst Server: org.apache.http.conn.HttpHostConnectException: Connect to 9.175.194.35:10080
[/9.175.194.35] failed: Connection refused: connect
I am trying this using Eclipse Kepler SR2 (64-bit) on Windows 7 (64-bit). I am using the Java 7 JDK downloaded from Oracle and the IBM MobileFirst Platform Studio (6.3.0) installed from the Eclipse Marketplace.
To avoid long/complex path names I have installed eclipse to C:\eclipsekepler and am using the workspace directory C:\workspace. To ensure that Eclipse is using the correct JDK, I put the following in my eclipse.ini file (before vmargs):
-vm
C:\Program Files\Java\jdk1.7.0_75\bin\javaw.exe
In the Server configuration I have set the Host Name to my machine's IP address, 9.175.194.35 (as reported by running ipconfig).
Here are the full console logs:
MobileFirst Console output:
[2015-01-23 14:01:25] Starting build process: application 'HelloWorld', all environments
[2015-01-23 14:02:53] Application 'HelloWorld' with all environments build finished.
[2015-01-23 14:02:53] Deploying application 'HelloWorld' with all environments to MobileFirst Server...
[2015-01-23 14:03:12] Failed to deploy application 'HelloWorld' to MobileFirst Server: org.apache.http.conn.HttpHostConnectException: Connect to 9.175.194.35:10080
[/9.175.194.35] failed: Connection refused: connect
MobileFirst Development Server console output (corporate network info redacted):
Listening for transport dt_socket at address: 10777
Launching worklight (WebSphere Application Server 8.5.5.3/wlp-1.0.6.cl50320140731-0257) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_75-b13 (en_US)
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/HelloWorldProject/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/_MobileBrowserSimulator/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/IBMJMXConnectorREST/
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklight-analytics/
[AUDIT ] CWWKZ0001I: Application _MobileBrowserSimulator started in 11.679 seconds.
[WARNING ] SRVE9967W: The manifest class path jaxb-api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path activation.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[WARNING ] SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in jar file wsjar:file:/C:/workspace/MobileFirstServerConfig/servers/worklight/apps/worklight-management-ui.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar or its parent.
[AUDIT ] CWWKZ0001I: Application WorklightAnalytics started in 19.007 seconds.
[AUDIT ] CWWKZ0001I: Application HelloWorldProject started in 21.164 seconds.
[AUDIT ] CWWKZ0022W: Application WorklightServices has not started in 30.003 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightconsole/
[AUDIT ] CWWKZ0022W: Application WorklightConsole has not started in 30.015 seconds.
[AUDIT ] CWWKZ0001I: Application WorklightConsole started in 30.083 seconds.
[AUDIT ] CWWKZ0022W: Application WorklightAnalyticsServices has not started in 30.006 seconds.
[AUDIT ] CWWKF0015I: The server has the following interim fixes installed: PI23168.
[AUDIT ] CWWKF0011I: The server worklight is ready to run a smarter planet.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://<machine-name>.<connection-specific-DNS-suffix>:10080/worklightadmin/
[WARNING ] CWNEN0070W: The javax.ws.rs.QueryParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.PathParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.CookieParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.HeaderParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.core.Context annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
[WARNING ] CWNEN0070W: The javax.ws.rs.MatrixParam annotation class will not be recognized because it was loaded from the null location rather than from a product class loader.
I am able to successfully run the equivalent actions using the MobileFirst CLI with:
cd C:\workspace\HelloWorldProject
mfp start
mfp build
mfp deploy
mfp console
I've tried reinstalling the JDK, using Eclipse Luna and Kepler, reinstalling the MobileFirst studio and starting with various fresh workspaces but nothing seems to make a difference. Does anyone have any idea what could be wrong? Thanks.
Update
To try and force MobileFirst to use localhost, rather than resolving my machine's IP address to the hostname on the corportate network, I disconnected the network which indeed caused the server to start on 127.0.0.1 and the application attempt to deploy to 127.0.0.1. However despite this, it still failed.
I did notice that the Mobile Application Builder task seems to progress to 20% and then sit there until the server stops itself and then the task completes but fails to deploy because the server has stopped itself.
Could this be a performance issue? I am trying this on a Thinkpad T420 with 4GB RAM.
Update 27/01/2015
One of my colleagues installed Oracle JDK7, Eclipse Luna and IBM MobileFirst Platform Studio (6.3.0) on his ThinkPad, which is identical in hardware/corporate software/network settings to mine, and it ran fine. This points me away from corporate software or corporate network settings and points me towards a configuration issue or some other software interfering. I tried again by uninstalling everything, including the JDK/JRE, clean the registry with CCleaner, reinstall the JDK/JRE, reinstall eclipse + mobilefirst with default settings. Still no successful deployment.
I tried in 2 different Linux Ubuntu 14.04, 32-bit and 64-bit and 1 Windows 7 64-bit. This is what I found out and experience on standing up the MobileFirst Development Server:
Ubuntu 64-bit
Eclipse Luna and latest JDK1.8x .. error
Eclipse Kepler SR2 + JDK1.7.0_15 .. works
Ubuntu 32-bit
Eclipse Luna and latest JDK1.8.0_25 .. works
Windows 7 64:
Eclipse Kepler SR2 + JDK1.7.0_15 .. works
If using JDK1.7.0_75 and error out, I would give it a shot using older version JDK. Hope that helps.
This worked for me:
Right-click "MobileFirst Development Server"
Click Properties
Goto Project References
Select your HelloWorld Project
Build & Deploy again
This is clearly a problem with the versions of eclipse and jdk. I have also experienced such difficulties. MFP do have such dependencies and that's why your mfp-cli is working fine. Try using eclipse juno or luna with jdk 1.7. It should work.
We have followed the silent installation procedure on remote server as mentioned in the IBM Developer documentation of 6.3 from the link:
https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.installconfig.doc/dev/t_silent_installation.html
Downloaded the MobileFirst CLI 6.3 file from the link::
http://public.dhe.ibm.com/ibmdl/export/pub/software/products/en/MobileFirstPlatform/mobilefirst_cli_installer_6.3.0.zip
unzipped it to MobileFirst CLI 6.3.0 and copied installer.properties file with fallowing content in that,
LICENSE_ACCEPTED=TRUE
USER_INSTALL_DIR=/opt/ibm/Worklight-CLI
and staying in the same folder, i installed the CLI 3.0 to the specified folder:
./install_linux.bin -i silent -f installer.properties
App has installed to the /opt/ibm/Worklight-CLI directory.
We then created a sample app as per Command Line commands specified in the link:
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.dev.doc/dev/r_wl_cli_commands_and_their_definitions.html
$ mfp create MyProject
$ cd MyProject
$ mfp build
$ mfp deploy
After app build and deployment, when we tried to check the MobileFirst Console over browser, with link:
http://xxx.xxx.xxx.xxx:10080/worklightconsole
after logging in to admin/admin credentials, page shows, loading the environments, but after waiting for 30 sec or more, it throws error as in the attached image.
But in log file shows some JAR file are missing. And i tried installing fresh copy of MFP 6.3 many times. but all time the same issue.
Please find the attached logs file and screenshot.
I am not able to find out what is the exact problem.
Server error. Contact the server administrator.
Server Configuration:
Ubuntu 14.04.01 LTS
MobileFirst Version : 6.3.0.00.20141127-1401
java version: "1.7.0_65"
java.home = /usr/lib/jvm/java-7-openjdk-amd64/jre
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
The Console error Message:
Log file:
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jaxb-api.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path activation.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:376 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jsr173_1.0_api.jar can not be found
in jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:377 IST] 0000002f
m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W
SRVE9967W: The manifest class path jaxb1-impl.jar can not be found in
jar file
wsjar:file:/home/administrator/.ibm/mobilefirst/6.3.0/server/wlp/usr/servers/worklight/apps/worklightconsole.war!/WEB-INF/lib/jaxb-impl-2.1.12.osgi.jar
or its parent.
[12/11/14 10:27:57:637 IST] 00000029
com.ibm.ws.webcontainer.osgi.webapp.WebGroup I
SRVE0169I: Loading Web Module: IBMJMXConnectorREST.
You've only linked to the documentation. Please edit the question and describe what you've actually done.
These are the steps I have taken (based on the CLI tutorial) in order to create a new project and application using MobileFirst CLI and then open MobileFirst Console:
System:
OS X 10.10.1
Oracle Java (default installed by the OS)
In Terminal:
cd /Users/idanadar/Desktop
mfp create testProject
cd testProject
mfp add hybrid testApp
mfp start
mfp build
mfp deploy
mfp console
The console was opened:
Check to see if there are any spaces in the path for your eclipse workspace. There is a known limitation with Liberty 8.5.5.3, which is the internal development server included in MobileFirst Platform Foundation 6.3, that you cannot have whitespace in the path name:
https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.getstart.doc/start/c_known_limitations.html
The failures, which match what shows in your log file, can occur on console startup and app deploy or preview.
The Issue is with the Hosted Server. They have opened the port 10080 partially. as port is allowing one way communication. because of some security reason, Hosting Server organisation has put some restriction over it. Now its resolved. Now we can able to deploy, and check the deployed apps over the worklight Console.
Thank you all for your suggestions and effort to go through my long listed question and trying out to resolve it.
I posted this comment: as some other persons may face same issue. so at least they can rid of this kind of issue ASAP.
I am getting following error when I try to start the server in Eclipse
Launching WorkLight_new (WebSphere Application Server 8.5.5.1/wlp-1.0.4.cl50120131011-1639) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05-b13 (en_US)
[AUDIT ] CWWKE0001I: The server WorkLight_new has been launched.
[AUDIT ] CWWKE0055I: Server shutdown requested on Monday, September 29, 2014 at 5:49 PM. The server WorkLight_new is shutting down.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKF0011I: The server WorkLight_new is ready to run a smarter planet.
[AUDIT ] CWWKE0036I: The server WorkLight_new stopped after 1 minutes, 0.818 seconds.
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Dev environment:-
Windows 7 Pro x64
Eclipse J2ee Juno SR2 x64
JDK 1.8.0_05 x64
Worklight Server 6.2(online install)
Any help will be greatly appreciated.
----Update----
I have uploaded the server startup logs in 2 parts on pastebin. Below are the URLs
Part 1 - http://pastebin.com/601dDV0b
Part 2 - http://pastebin.com/aY5t398D
I Hope this helps
Why does it say "WorkLight_new"? This name suggests to me that you have created a 'new' server to work with instead of the default-provided Worklight Development Server, but you do not provide any details on what you've done while creating it.
My suggestion to you is to first test with the default configuration. Easiest is to simply start Eclipse with a new workspace and start the default server instead. Otherwise, you need to provide something more substantial than what you provided in the question.
Additionally,
This may also happen due to using Java 1.8 (see IBM Worklight 6.1 - Error TRAS0033E).
Downgrade to either 1.6 or 1.7 and make sure to setup Eclipse to use the JRE of 1.6 or 1.7.
On command prompt check java -version. Ensure that is 1.6 or 1.7
Open Eclipse > Window > Preferences > Java > Installed JREs. Ensure that is JDK 1.6 or 1.7
I have installed Eclipse 4.2.2 and Worklight 6.0.0. When I create, build all and deploy, and I paste the URL found in the console, (http://my.ip.address:10080/SimpleProject/) it fails with "Error 404: SRVE0190E: File not found: /". This is true for both the Project and the MobileBrowserSimulator.
Console output:
[AUDIT ] CWWKE0001I: The server worklight has been launched.
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.80.52.215:10080/SimpleProject/
[AUDIT ] CWWKZ0001I: Application SimpleProject started in 9.837 seconds.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://9.80.52.215:10080/_MobileBrowserSimulator/
Environment:
Windows 7 64 bit.
Eclipse 4.2.2 build 20130225-0426
Worklight 6.0.0.20130926-1933
Found the answer: The cause was an incomplete URL. I found I was able to start the Worklight Console from the context menu of the project "Start Worklight Console". I was then able to start the application from the running console.
Investigating the URLs, I found that the URL in the console log is not sufficient. You must append /console/ to the URL:
http:/9.80.52.215:10080/SimpleProject/console/
http:/<my.ip.address>/<myproject>/console
You have to go to http://my.ip.address:10080/SimpleProject/console (notice I added /console) to get to the Worklight Console for that project.
Also, the issue with the url in the console log missing "/console" is a defect and will be addressed in a future release.