MobileFirst 7.1 - How to use CLI for current installed Liberty Core with MobileFirst server - ibm-mobilefirst

I recently installed Liberty Core server, created a new Profile, installed MobileFirst Platform Server and deployed a MobileFirst runtime environment with the Server Configuration Tool in MacBook.
Instead of installing in default directory(Application/ibm/*) I choose to install under custom directory (Users/username/LibertyCore).
I started the server manually installed adapters and *.wlapp from worklight console.
Instead of doing this manual deployment I want to do it from command line? My understanding is I have to use MFP command line utility.
I installed MFP CLI utility then parsed to the App Project folder to build and deploy to currently installed Liberty Core server I see issue with MFP PUSH it says server is not started though server is running.
So when I do MFP Info I found that CLI is pointing to completely different set up. How can I make CLI to point to currently installed Liberty Server.

Note that you can run "mfp help" to see all available CLI commands.
There is the command "mfp server". Using this command you can add additional server definitions: "mfp server add". Run the command and follow the on-screen instructions to add a server definition for your remote server...
Once you've added it, you can use "mfp push your-remote-server-name" to push the artifacts to the remote server.

Related

How to add Runtime environment in mobile first 7.1?

After installing MobileFirst Platform , It give No run time is there.
My configuration was given below:
1. WebSphere Application Server 8.5
2. Oracle 11g Enterprise edition
3. Mobile-first platform 7.1
Please help me to create Run-time in Mobile first Console.
From where I will download sample war file (for ex: project.war) for creating run-time environment.
You have only mentioned "after installing IBM MobileFirst" and not exactly the steps followed. Configuring IBM MobileFirst Platform has two phases:
a) Installing the application binaries into the filesystem using Installation Manager.
b) Deploying MFP admin services and runtime in to an Application server using Server configuration tool or ANT scripts. The runtime war file needs to be created using IBM MFP Studio.
If you have not performed phase 2 or only installed admin services and not the runtime, go through the information in these links:
Using server configuration tool
Using ANT scripts to deploy
To get you started with various MFP 7.1 projects , you refer and use any of the sample applications available at MFP 7.1 Getting started tutorials.
Once you have any of these sample projects loaded or a new project created in MFP studio, you can build the server side artefacts (adapters, application wlapps and runtime war) within the MFP studio or using ANT scripts:
Refer this link for further details and steps- Deploy projects.

how to add runtime in ibm mobilefirst 7.1 in remote server

how to add runtime in ibm mobilefirst 7.1 in remote server ?
As of now I have remote server where already one runtime exist, I have deployed a .wlapp and .adapter file in console and I am testing this on a device and its working fine as mentioned in IBM MobileFirst Platform 7.1 - No runtime environment deployed in this server
Question is how can i add(deploy) another runtime ?
Assuming you have another MobileFirst project, you need to use the IBM Configuration Tool in order to deploy the second .war file. It's basically following the same steps you did for the first .war file, only deploying a different (.war) file...
You can also deploy manually: http://www.ibm.com/support/knowledgecenter/en/SSHS8R_7.1.0/com.ibm.worklight.deploy.doc/admin/c_manually_configuring_app_server.html

How to deploy MobileFirst CLI application to an android device?

I am using MobileFirst CLI 7.1. I want to deploy my MobileFirst CLI application to an android device. How can I do that?
In studio i use to get a projected generated when I right click > Build and depoly for all environments.
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
Do we have any commands for achieving the above two?
In studio i use to get a projected generated when I right click > Build and depoly for all environments.
You need to have google's ADT tools installed and execute the commands from the command-line, or import the project into Google's Android Studio IDE.
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
In the Studio you did not have the option to "deploy to a remote server". You had the option to configure the application to point to a remote server (the properties you can edit in the worklight.plist/wlclient.properties file).
This feature does not exist in the CLI. After building the project, in case you want it to point to a different server, edit the properties in said file(s) to point to the remote server.

Worklight Server - Failed to deploy adapter 'LinkAccount.adapter'.

From the previous problematic and devastation in installation worklight server into our websphere, IBM Worklight 6.1 - Project fails to initialize because the project database schema is from version N/A , we discover new problem after that catastrophic event. First we got this error message
Error 500: javax.servlet.
ServletException: Worklight Console initialization failed.Logged Exception: java.lang.RuntimeException: FWLSE4010E: The project 'xxxx' failed to initialize, because the project WAR file is not supported by the server from version 6.1.0.00.20131126-0630. Use the migration tool to upgrade the project WAR file. [project xxxx]
Then we use the migration tool to ugrade follow from this guideline --> http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/topic/com.ibm.worklight.deploy.doc/devenv/r_migrating_old_wl_project_to_new_wl_server.html
We managed to deployed the war file.
Next we want to deploy the adaptor, we encounter this error message
Failed to deploy adapter 'LinkAccount.adapter'. The 'adapter' version '6.1.0.00.20131219-1900' is different than the version of the Worklight project '6.0.0'. Use Worklight Studio '6.0.0' to build and deploy the application.
When we check the version at the console (Worklight Server), the project war version is 6.0.0. Both Studio and Server is in the same version 6.1 but need to do the migration process which downgrade the project into 6.0.0.
Do missing something during the installation of Worklight server?
Our Worklight Studio (eclipse)
Worklight Server version
Remove the worklight console application from WAS (Websphere application server)
Stop WAS.
Redeploy war file that containing worklight console
Start WAS
You need to rebuild the .wlapp and .adapter files in your studio version that have a same version with worklight server.
Install Worklight Studio 6.1
Deploy Worklight Server 6.1
Build your project in Worklight Studio 6.1 (adapters, app)
Deploy generated .war file in the server
Deploiy generated .adapter and .wlap in the server
Build everything with the new version and deploy the new artifacts in the same version.
If you are running on your application server several instances of Worklight Server, make sure you deploy to the correct one.
Delete the contents in your project bin folder.
Build and deploy all the adapters.
Build and deploy the application.
open worklight console

installing IBM Worklight Server

I have downloaded the IBM Worklight Enterprise Server, trying to install Worklight server with Apache Tomcat and deploy my worklight application in my remote server.
It is mentioned in the readme file, that I need "IBM installation Manager" to install the "IBM Worklight Server".
I downloaded the IBM installation Manager and followed the steps in the readme file and installed the Worklight server in my local machine.
Installed Apache Tomcat in my remote machine and copied the worklight- jee-library.jar to the $TOMCAT_HOME/lib directory.
Is this the right way to install IBM Worklight server ?, or is there any other way to install "IBM Worklight Enterprise Server" in my remote machine from the command line ?
I am stuck at this place
Any help would be greatly appreciated.
Thanks
Suren
No, it is not the right way. Specifically, you should not copy anything into Tomcat. The installation does it for you.
The steps to follow are
Install the IBM Installation Manager version 1.5.2 and onward (available on the web). This is a one time step.
Download the Worklight server package from IBM
Point the IBM Installation Manager to the Worklight server package (File - Preferences in main screen).
Start the installation.
The installation will ask you for a path to Tomcat and will install everything that is needed inside Tomcat.
If your server does not have a GUI, the steps 3 and 4 are replaced by the so-called silent installation.
Quite often you won't have access to the server GUI but you can simply redirect the X display output to your desktop and launch IM. Ie. if you are running Linux export DISPLAY=xxx.xxx.xx:0.0
If you are running Windows just use Exceed.