war,mobilefirst , Cannot Find Application Mobilefirst


Cannot Find Application Mobilefirst

Question:

Tag: war,mobilefirst

I have deployed the war file project in context path /example . Also i have uploaded the .wlapp and adapter in worklight console.

Where do point my application Build path to work in different server? Should i point to /example war file path?

This is my reference on: http://www-01.ibm.com/support/knowledgecenter/SSHSCD_6.3.0/com.ibm.worklight.deploy.doc/devref/t_transporting_the_app.html


Answer:

To change the context root when building for a remote server, you need to right-click the application folder and select Run As > Build Setting and Remote Target.

In the window that will be displayed you need to set the remote server's server details. So those would be: protocol://host-or-ip:port/your-context-root.

Sounds like you should replace "your-context-root" with your own.


Related:


MobileFirst 7.0 Server stuck “Deploying” when trying to deploy a .wlapp file to Tomcat


mobilefirst,mobilefirst-server,mobilefirst-console
While after finishing installing and configuring successfully the MobileFirst 7.0 Server, I'm getting the issue that the MF server is stucking in "Deploying" when I try to Deploy Application => Selecting a MF studio /bin folder .wlapp file. And here are some log messages from Tomcat log files: 10614 WorklightManagementPU-mysql...

MobileFirst: adapter returned data containing special characters


jquery,twitter-bootstrap,webview,mobilefirst,mobilefirst-adapters
One of my adapter returns some data containing special characters (like quotation marks, bullets or question marks etc.) onSuccess of adapter call, I save data in a variable as shown below. try{ var data = JSON.stringify(response.invocationResult) ; var _meetingDetailsArray = JSON.parse(data).MXEMEETINGSet.EMEETING ; }catch(Exception) { logger.error( Exception ); } After that...

Mobilefirst 7.0 soapadapter fails calling no argument operatio


soap,mobilefirst,mobilefirst-adapters
I created a soapadapter via the wizard using the webservice wsdl file. Most operation run succesfully bu one. This particular operatio returns an array of objects and consume no arguments. The sample procedure parameters is: { "recuperaVariabili": { } } Calling the procedure, never invokes onSuccess nor onFailure functions. Looking...

Deploy vaadin 7 war file in EC2


amazon-ec2,tomcat7,vaadin,war,vaadin7
I'm trying to deploy a Vaadin 7 example.war file in tomcat 7, using an EC2 server. I upload the file to /var/lib/tomcat7/webapps but then when I go to myIp:8080/example it doesn't find the resource. Any idea why? Thanks!...

MobileFirst InstallationManager hangs


mobilefirst,mobilefirst-installation
Working on an isolated Linux machine, no internet access. I am installing MobileFirst Server v7.0, WAS Liberty and IBM Java. Having attached my repositories to Installation Manager I select an option to install. Click Next, and nothing further happens. I see various solutions offered all of which are concerned with...

Deploy war file fails


ruby-on-rails,war
I am working on a system with two servers. When updating a site i deploy a war file to each server. It worked on one but on the other when i go through the process the war file creates the ROOT folder but its owner and group is root whereas...

How to invoke Java adapter procedure from JS adapter procedure in MobileFirst Platform 7.0?


worklight,mobilefirst,worklight-adapters,mobilefirst-adapters
Our team is migrating to MobileFirst Platform 7.0 because of Java adapters introduced in this version. And after having a quick look I haven't found how to invoke procedures in Java adapter from procedures in JavaScript adapters. Looks like Java adapter doesn't define procedures and has only REST endpoints. How...

IBM Security Access Manager Integration with MobileFirst 6.3


mobilefirst,isam
i am working on a MobileFirst application. It needs to be integrated with IBM security access manager. i have configured the login modules, realms and authentication configurations. On the code side, what should be done?.

How to Shuffle/Deal a deck of cards in GUI


java,user-interface,war,shuffle
Hello everyone I am currently making a GUI. It is going to be the card game called war what I am trying to do is split the deck randomly between the user and the computer. I have made three arrays one for you computer and the full deck and I...

BeanCreationException: Error creating bean with name: Injection of autowired dependencies failed;


java,spring,java-ee,jetty,war
I am getting the following error stack when trying to deploy a war using a jetty server I have written. INFO : jetty.StartJetty - starting jetty using war file ..\serialisation-preview-service\target\serialisation-preview-service-1.3.0-SNAPSHOT.war SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/username/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in...

Unable to Resolve PKIX Path Building Failed


https,certificate,mobilefirst,mobilefirst-adapters
I try to connect to https web service using below code. adapter.xml: <connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>https</protocol> <domain>somewhere.com</domain> <port>443</port> <connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds> <socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds> <maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>...

Spring boot war file deploy on Tomcat


tomcat,deployment,spring-boot,war
I use Spring Boot 1.2.4.RELEASE with gs-rest-service source file. I got: 127.0.0.1 - - [18/Jun/2015:09:59:25 +0300] "GET /gs-rest-service-0.1.0/ HTTP/1.1" 404 1021 There are no other exceptions in Tomcat logs. I have read related questions, but my test doesn't run. Spring Boot War deployed to Tomcat I have read howto-create-a-deployable-war and...

MobileFirst Hybrid App. Change mainFile to a subdirectory


mobilefirst
I am trying to retrofit an existing ASP.NET web app into our business's MobileFirst environment while using as much of the same code base as possible between the 2 projects. The issue that I am running into is that while, the browser app is mostly a single page, it rests...

(Java)How to change picture(War Card Game)


java,swing,user-interface,war,playing-cards
Ok what im trying to do is make a image called hidden and it will be a card face down. Now I want to make it so the image will change to a face up card and what i tried to do was make a image for six cards three...

JBoss REST WS application doesn't work when deployed as WAR file but works when expanded to a folder


web-services,jboss,war,web-deployment,resteasy
I am deploying an application on JBoss server (EAP-6.4.0, JBoss Web/7.5.7.Final-redhat-1). I get a very strange behavior. Let's say the application is called Engine.war. The application implements a REST Web service server. When I deploy the application by copying the WAR file to c:\EAP-6.4.0\standalone\deployments\Engine.war file, it is successfully deployed, but...

MobileFirst 7.0 App giving “ERROR itms-90035” on submission to apple app store


ios,mobilefirst
I am trying to submit the new version of my MobileFirst 7.0 ios app to apple store but as soon as I submit, it gives me following error: I am using XCode 6.3.1 on Yosemite. I have also added my Distribution certificate and Provisioning Profile to it but it still...

Missing libraries in side jars


java,maven,jar,build,war
I have 2 maven projects: 1 a jar with different dependencies and a war that include all that jar. When I look inside the created Jar I dont see any library folder. And when I look in to the War I only see the libs that the war is using...

How to run a timer in the Background


mobilefirst,worklight-runtime
I wanna create a mobile apps using IBM MobileFirst Platform Foundation. The app should have a timer, and when I close the application, timer still running. So if the apps has not been used for long time, it will uninstall itself. I hope can get a draft idea how to...

IBM MobileFirst/Worklight JSON


json,soap,mobilefirst,mobilefirst-adapters
In IBM MobileFirst 7.0, I created a SOAP adapter by pointing MobileFirst Platform Studio to a WSDL running on a local web server. When calling the SOAP adapter, which converts JSON to XML then when the response is received from XML back into JSON, it is setting number (integer, decimal)...

Read adapter procedure requestTimeoutInSeconds from worklight.properties file


worklight,mobilefirst,worklight-adapters,mobilefirst-adapters
I am developing a Worklight 6.2 application wherein I have a requirement to read parameters from worklight.properties file. I have successfully read below parameters and set them. <connectivity> <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>${adapter.protocol}</protocol> <domain>${adapter.domain}</domain> <port>${adapter.port}</port> </connectionPolicy> <loadConstraints maxConcurrentConnectionsPerNode="200" /> </connectivity> But I am unable to set...

IBM MobileFirst Platform ClassPath error during installation


mobilefirst,mobilefirst-server
Running MFPF7.0.0.0-IF201506081356 on WebSphere Liberty 8.5.5.5 (that's 8.5.5 with fp 5 applied), IBM Java 7.0.8.10. After deploying the first runtime to server the following error occurs: 6/10/15 15:25:05:600 CEST] 0000002c com.ibm.ws.webcontainer.webapp E SRVE0293E: [Servlet Error]-[Failed to load listener: com.worklight.server.bundle.project.JeeProjectActivator]: java.lang.NoClassDefFoundError: com.worklight.server.bundle.api.WorklightBundles at...

MobileFirst Platform native iOS app building have error while building .wlapp


ios,ant,mobilefirst
I am working on MobileFirst Platform version7 using ant script to build the project .war, .wlapp, .adapter. Everything was working fine while our project was a hybrid one. Now the project is migrated to native-iOS in. I am using following code to build .wlapp. <target name="build-wlapp"> <app-builder worklightServerHost="localhost:10080" applicationFolder="//Users/admin/Documents/workspace/NewProj/apps/Try" environments="iOSnative"...

IBM MobileFirst Plugin should use a background thread


objective-c,cordova,mobilefirst
I am using IBM's MobileFirst Platform Foundation (6.3.0.00-20150130-1638) to build an Android and iOS application. The application (iOS at this moment) gives quite a lot of information when running. But one is quite common and I think it is also quite dangerous. The error I get is: THREAD WARNING: ['WLApp']...

Cannot start a war with a tomcat


tomcat,war
does anyone could start that war with a tomcat? https://docs.google.com/file/d/0B5FiAsl5yGbZcV9rZDBrVS1IcDA/edit I put the war in webapps, startup.bat, http://localhost:8080/org.cap.editor.jsp/edit.html in browser but I get an "NetworkError: 404 Not Found - http://localhost:8080/org.cap.editor.jsp/edit.html" it's missing the edit.html? If anyone can start this, please tell me how, thanks!...

More on PUT HTTP Adapter in MobileFirst Platform


mobilefirst,mobilefirst-adapters
This is similar to the question asked here, but that question was not exactly answered to what the problem is. Customer.xml <?xml version="1.0" encoding="UTF-8"?> <wl:adapter name="Customer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wl="http://www.ibm.com/mfp/integration" xmlns:http="http://www.ibm.com/mfp/integration/http"> <displayName>Customer</displayName> <description>Customer</description> <connectivity> <connectionPolicy...

how to generate a checksum for a war file in maven


java,maven,war
I have inherited a project which uses a maven pom file to build the .war file and we have a request to generate a checksum of the .war file, so my question is, can this be done in the maven pom file? and what plugin if any is needed and...

Disabling default security using @OAuthSecurity(enabled=false)


mobilefirst,mobilefirst-adapters,mobilefirst-server
The following link indicates that the security can be disabled using @OAuthSecurity(enabled=false) - see under "Security configuration of a JAX-RS resource" Question: Does it mean that the default security is disabled? I have a scenario wherein a JavaScript Adapter (developed and being used in a previous version of the product)...

Mobile First - How to segmentate logs depending on the session


worklight,mobilefirst,java.util.logging,websphere-liberty,mobilefirst-server
I'm working on a mobile banking solution using Mobile First v 7.0 and one of the requirements is to isolate the customer's logs in a dedicated log file which gets created once a session is started to track all the details by session. Is it possible to do such thing...

Deploy war file in a grizzly server


java,war,grizzly,java-war
I have spent a few days on this and I still did not find an answer (i did find questions asking for this) I am coding with java, using a grizzly server (2.3 version) and I've managed to work with many kind of resources (restful classes, java servlets etc). URI...

MobileFirst Error: Cannot perform this operation on removed entity


mobilefirst,mobilefirst-server,mobilefirst-studio
I am currently working with an IBM consultant to upgrade our Mobile App from Worklight 5.0.6 to MobileFirst 7. I am deploying locally. I am occasionally getting this error message that prevents me from deploying to the console: [2015-05-28 11:35:16] Deploying application 'MyGPCMobile' with environment 'iphone' to MobileFirst Server... [2015-05-28...

Read parameters from worklight.properties in html pages


worklight,mobilefirst
I am developing a worklight application(Worklight 6.2). In this application i have requirement where certain parameters i need to read from worklight.properties file. For worklight adapters i got success but i also require to read some parameters in html pages from worklight.properties file. My question is,is it possible to read...

Error Deploying MobileFirst Server Configuration


mobilefirst,mobilefirst-server
In the process of upgrading a remote MobileFirst Server to version 7.0 (from version 6.2), and I've run into an issue when attempting to use the Server Configuration Tool to redeploy. Here's the only apparent error I'm seeing, unsure what other information you may need to help diagnose this: Buildfile:...

Displaying version and date of build in the xhtml page from manifest in run time


maven,glassfish,manifest,war
Enumeration<URL> resources = getClass().getClassLoader() .getResources("META-INF/MANIFEST.MF"); //Can't find resource name META-INF/MANIFEST.MF ?...

install MobileFirst 7.0 server (for test and production environment) with IBM Installation Manager


mobilefirst,mobilefirst-server
While I'm following the IBM Knowledge Center' guide to install a IBM MobileFirst 7.0 Server for production environment but that document is too simple for any newbees to handle it. Can someone provide a more detailed guide and a MF 7.0 server download link so that I can use it...

MobileFirst 7.0.0 application on Windows Phone 8.1 error from Weinre


windows-phone-8.1,mobilefirst,weinre
The MobileFirst application that we've developed works on iOS, Android. The Windows Phone 8.1 port is showing following error when displaying console messages on weinre console: Error in Error callbackId: WLAuthorizationManagerPlugin1600160345 : TypeError: Unable to get property 'WL-Authentication-Success' of undefined or null reference Uncaught Exception: Unable to get property 'WL-Authentication-Success'...

Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7


java,ant,mobilefirst,mobilefirst-adapters
We have been using the adapter-builder task (com.worklight.ant.builders.AdapterBuilderTask) to compile our MFP adapters for several weeks. We just started now adopting Java adapters in our MFP apps but we cannot compile them with the adapter-builder task. Looking at the compilation errors in the output, it seems the adapter-builder task does...

Editing Folder content in tomcat manually?


java,html,apache,tomcat,war
I have a WAR file called ROOT.war where I uploaded into Tomcat few days back. There I have few "public" HTML pages like index.html, about.html etc. These pages has no connection with the programatic part of the application, instead containing a link for login.jsp. Now, I need to change the...

MobileFirst app build - failed creating temporary directory to build adapter


ant,mobilefirst
I have working command line build setup for my MobileFirst application. However today when I ran a build, I got following error: BUILD FAILED C:\...\build.xml:29: Failed creating temporary directory to build adapter What might be the cause of this error? I'm running the build via ant: ant build Relevant part...

Ant: Unable to get Ant to copy properties file to classes directory


java,ant,build,war
I have a project which I can build and deploy correctly using Ant I want to build a war file to deploy the project. I can get everything working except I cannot get the properties file to appear in the classes directory. My properties file is located here: /h/a/A/I/S/src/Serv/log4j.properties This...

Recommended way to force MobileFirst-CLI to use Java 6?


java,osx,mobilefirst,mobilefirst-cli
I'm on OS X and have been using Java 1.8 from Oracle. In order to install mfp I did have to install the old Java 6 from Apple, but it also seems certain mfp commands, mfp build at least, fail unless I change my JAVA_HOME environment variable to point to...

Openshift context path


java,tomcat,openshift,war
I have deployed the war into tomcat 7 Openshift . Everything is fine and its running .Myappp Here is my mapped web application. I am storing images in the dir webapps->docs->images But When I upload the image (with UI) it doesnt appear on site and I cant even find where...

How to use time delay in MobileFirst adapters


timer,delay,mobilefirst,mobilefirst-adapters
Has anyone tried introducing Delay/timer into the MobileFirst Platform Foundation adapters? is there anyway to introduce specific amount of delay? I tried setTimeout() but that doesn't work because of window object will not available in Adapter.js...

How to get MobileFirst 6.3 server for free for the purpose of learning


mobilefirst,mobilefirst-server
I have been given an assignment to take up training on IBM MobileFirst 6.3 Server Administration. I want to show the students how to install MobileFirst server and configure it. But after going through the documentation, i realized , the server component is not part of MobileFirst Foundation developer edition,...

How to implement “remember me”-like functionality?


mobilefirst
I am developing an hybrid mobile application using ibm mobilefirst platform. I am using the custom authentication module example to implement the login module. The problem here is when the user closes the application the app gets logged out. Is there anyway that I can implement so that the user...

How to read an internal file in a web project


java,servlets,war,web-deployment,dom4j
All, Forgive me I am still learning the Java development right row. Say we have the structure of web project like below. The src and config is under the Java Resources folder of web project. src ... |- a.b.c.package |-test.java ... config |-1.xml |-2.xml ... configfolder |-1.properties |-2.properties testfolder |-test.properties...

IBM MobileFirst 7.0 Server : No runtime environment deployed in this server


mobilefirst,mobilefirst-server
Successfully installed IBM MobileFirst 7.0 Server on following environment, and also, a runtime environment was created step by step and deployed successfully in this server (with GUI of MobileFirst Platform Configurion Tool shows deployed): CentOS 6.4 MobileFirst Server 7.0 jdk-7u79 MySQL 5.6.24 Apache Tomcat 7.0.62 But I got a No...

Preview Mode on Production Server


mobilefirst,mobilefirst-studio
We've recently migrated from 5.0.6 Worklight. The preview mode was working in 5.0.6 console. After migrating to 7.0 and uploading the common.wlapp file, I am getting the following errors and cannot preview the app. Should the preview mode work on a production MobileFirst Platform server version 7.0? I use this...

Any way to write Ant Script to enter multiple input from directory and run them in parallel


ant,mobilefirst
I want to write a script which takes input from directory all the adapters and build the adapters in parallel. I just want a generic script which works with every mobile first code to build adapters. <target name="build-adapter"> <dirset id="check" dir="/Users/admin/Documents/workspace1/MyTime/adapters" includes="*"/> <property name="test" refid="check"/> <echo>${test}</echo> <parallel> <adapter-builder folder="/Users/admin/Documents/workspace1/MyTime/adapters/${test}"...

MFP CLI v7.0 cannot build-deploy project initially created with MFP Studio v7.0


mobilefirst,mobilefirst-studio,mobilefirst-cli
Problem Context: We initially created a MFP project (native API for iOS) using MFP Studio plugin v7.0 for Eclipse. We have this project under source control (Git on DevOps). Problem: After pulling down the MFP project code from Git (fresh pull), if Studio is first used to “Deploy Native API”...

MobileFirst 7.0 Application Center user management


mobilefirst,mobilefirst-appcenter
I have uploaded two apps on Application Center Console. I also have created two users that should see only one of the apps. I have teste with and without restrictions, but the users in appcenterusergroup cannot see any of the Apps. Server.xml configuration looks like this: <basicRegistry> <user name="demo" password="demo"/>...