IBM Worklight Application Deployment - ibm-mobilefirst

I want to deploy my application on Apache tomcat Server.I went through the documentation part but things were not clear to me..Can Anybody please help me deploying my Worklight application on Apache tomcat.Just want to know the step by step procedure.I am newbie to Apache tomcat,please bear with me.I knw about the .adapter files, .wl.app files but much confused about deploying and accessing the .apk,.war files..
Thanks in Advance

Tomcat is an application server. It runs web apps called WAR files (it is not the same as web apps for mobile devices).
You must purchase Worklight for your organization in order to receive additional required libraries, such as the Worklight JEE .jar file, which is basically the Worklight Server and Worklight Console.
You deploy the above files, including the Worklight project's .war file, and its artifacts: the .wlapp and .adapter files, to the Tomcat application server, either manually or by using the installation tools (Ant scripts and the IBM Installation Manager) provided by IBM as part of your license purchasing.

Related

How to set up IBM work light server on my machine

Hello Folks,
We are recently working on IBM worklight and what we want to try is:
We have two machine, one we want to set as server and other one is for my developer to build the app.
Currently we have installed Apache Tomcat server on the machine which we want to make as server. We even have IBM Worklight installed on it. Now What I want to achieve is to deploy the app from other machine to this server. But I am not able to set up the things properly.
Things done so far:
Installed Apache Tomcat server software on a machine (server)
Installed IBM Installation Manager
I am not getting how will I set up the Worklight Server on this machine. Can anyone provide some information?
You cannot directly deploy from Worklight Studio (the Eclipse plug-in) to a remote Worklight Server.
The steps you need to take are:
Setup your application for a remote server, via the Build Settings and Deploy Target window
Build the app
Take the .wlapp/.adapter file and deploy it to the remote Worklight Server via it's Worklight Console
If you have done any server-related changes (authenticationConfig.xml, Java code, ...) you will need to first deploy the project's .war file to the application server that hosts the remote Worklight Server, and then the .wlapp.

IBM Worklight 6.1.0.1 - Server Configuration Tool issues

My configuration is:
OS: RHEL 5.7
IBM DB2 10.1
WAS8.5
WL6.1.0.1 (last fix pack installed)
When reading the WL6.1 Information Center, it is said that you can deploy several Worklight projects (that is, several project WAR files) to an application server just as you would deploy any JEE application: each deployed project must have a unique name and a unique context path.
This exactly what I am trying to do using the Server Configuration Tool located under the directory '/opt/IBM/Worklight/shortcuts/'.
When deploying the first WAR file under a WebSphere Application server profile, the Server Configuration Tool works perfectly and creates/deploys an EAR file named 'IBM_Worklight_Console.ear', in which the WAR file is included. However, when using the Server Configuration Tool to deploy a new WAR file under the same WebSphere Application server profile, the Server Configuration Tool creates the same EAR file named 'IBM_Worklight_Console.ear' with the new WAR file included. But obviously it overwrites the first Worklight Server configuration, preventing to deploy several Worklight projects to the websphere application server profile as it is supposed to do.
What could be the problem?
The Worklight documentation, section "Configuring multiple IBM Worklight projects", says that for multiple Worklight project WAR files in WebSphere Application Server, each must have a different id. In the Worklight Server Configuration Tool, you enter this id in the "Application server configuration" panel, in the "Deployment id" field. Once you choose a different id for each, they will be able to coexist. (At most one of the ids can be left empty.)

Worklight security remote server

My Worklight project use the security module and WorkLightAuthenticator WorkLightAuthLoginModule. When I run the application on environment
development, it works perfectly. When I import the project to the remote server, it seems that do not find the WorkLightAuthenticator.
To import to the remote server, I need to do something besides include the .adapter and .wlapp the Worklight Console?
Changes made in authenticationConfig.xml on eclipse comes with these files (. and adapter. wlapp), or need to do manually on the remote server?
Changes made to the authenticationConfig.xml file are saved in the bin\<projectName>.war file. You must re-deploy this .war file.
See this IBM Worklight Information Center topic: Deploying IBM Worklight applications to test and production environments
Also see this training module for an overview about the process of moving to production (which also provides a general overview of a Worklight project)

Worklight Studio 6 - device provisioning and app authenticity

I am running Worklight Studio 6 from Worklight Enterprise Edition download with Eclipse Juno.
My application is using form security with the WASLTPA login module. The application tests correctly.
When I add AppAuthenticity (needed for device provisioning) my client sees the following error in the console. (None in the server log)
Failed to load resource: the server responded with a status of 401 (Unauthorized)
drilling deeper I see:
/*-secure-
{"challenges":{"wl_authenticityRealm":{"WL-Challenge-Data":"o97e2ph8kguqh1vpljbio1o5k3+23.507-9.852-31.807 "}}}*/
I am running this on the Worklight Development Server packaged with Worklight Studio.
You have mentioned both the Enterprise Edition and Developer Edition.
Please clarify your question with the following: You have installed Worklight using the IBM Installation Manager, yes?
You have an application server (Tomcat/WebSphere/Liberty) installed and you've used the supplied Ant scripts to create the Worklight database(s), configure them, deploy the Worklight platform files to the application server, as well as deploy your project's .war file? (and of course the .wlapp /.adapter file(s)...).
If you have done the above, then you will have in your Worklight Server, now installed on the application server, the required components for App Authenticity to work.
Then there is the case of how you actually configured your project for App Authenticity.
Make sure you follow these steps to set up App Authenticity

Downloading application from weblogic server

I have requirement for testing a j2ee application which is deployed in a weblogic server.
I have to get the ear add my testclasses into that and depoly it back.
Since weblogic server takes so much memory , I want to run my testcases to run in another box , connect to the weblogic server and download the ear from there and modify and deploy it back.
I know that it is possible to remotely deploy application in weblogic.
But is it possible to download the application from weblogic ? using JMX ?
Thanks in advance.
Thanks
J
JMX is for the runtime configuration and management (Java Management Extensions). What you're looking for is much simpler - On the WebLogic console, go to the deployments and click on the application of interest.
Next, figure out what the path of the deployed application is and then manually copy (scp if you're in UNIX) the ear file over to your local directory.
If you don't have access to the hosting server then it's not possible to download the app.