How to resolve : Failed to deploy the application to Worklight server Connection to IP adress refused) - ibm-mobilefirst

I am new to IBM Worklight Studio , I installed it and trying to deploy my first Hybrid app on Worklight Server . The problem is the server isn't starting and the following message is displayed :
[2014-05-16 14:21:58] Project 'HelloWorldHelloWorldAndroid' was imported.
[2014-05-16 14:21:58] Application 'HelloWorld' with all environments build finished.
[2014-05-16 14:21:58] Deploying application 'HelloWorld' with all environments to Worklight Server...
[2014-05-16 14:21:59] Failed to deploy the application to Worklight server: please verify that the Worklight server is started and reachable.Connection to
- MyIpAdress:10080 failed. (Connection to http://myIpAdress:10080 refused)
What Should I do to fix this problem to run my project ?

You have to verify the location of the projects's war file in the server's parameters to deploy the project that you are working On . And to to right click on the server and choose clean project on next Startup . It will work

Try to delete your bin folder contents.Clean your project and restart the server.
Deploy your application again.

Related

How to resolve : Failed to deploy the application to Worklight server Connection to http://localhost:10080 refused

I am new to IBM Worklight Studio , I installed it and trying to deploy the HelloWorklight app on Worklight Server . The problem is the server isn't starting and the following message is displayed :
[[2017-09-06 13:56:00] Deploying application 'HelloWorklight' with all environments to Worklight Server...
[2017-09-06 13:58:17]Failed to deploy application 'HelloWorklight' to Worklight Server: Connection to http://localhost:10080 refused
][1]
and I get this dialog box
What Should I do to fix this problem to run my project ?
"Connection to http://localhost:10080 refused" .
This seems to suggest there is some firewall or antivirus blocking your local connections. Verify if there are any such restrictions and remove it if required.

unable to deploy the application MobileFirst Server

I am new in IBM MobileFirst Hybrid mobile application. Created Project HelloWorld hybrid mobile app. when i run this application to MobileFirst server means i got following error
Failed to deploy application 'HelloWorld' to MobileFirst Server: :
HTTP 403 - Forbidden
Can you tell me how to deploy the application to MobileFirst Server.
Thanks in Advance.
Attempt the following:
Try to re-install
Verify that you do not have a firewall running (if you do, you may need to properly adjust it)
Kill the Java process and try again
check your server Host name
check if some other tools use the same MF PORT

Worklight adapters deployment failure

I am new to worklight when I try to deploy I am getting the following error
Adapter deployment failed: No server host specified
& No Mbean found
.
Make sure that you have an address specified in Eclipse > Servers view > Worklight Development Server (double-click it) > Host name. Also attempt an Eclipse restart.

IBM Worklight 6.2 App - Remote Server communication failure

I am developing a hybrid app in Worklight 6.2. I have a WorkLight Server installed Red Hat Linux 6 base as remote server.
I have give the servers ip address, port number and context root as"/worklight" in the "build settings and deploy target".
Then i added my adapter file and wlapp file into the remote servers "app" folder. I haven't made any changes in the server.xml file.
Now when i call the procedure from my app i am getting "[IPADDRESS:PORT/worklight/apps/services/api/MyApp/ipad/query] failure. state: 404, response: The server was unable to process the request from the application. Please try again later."
What am i missing and What changes do i have to make to make the request to work.?
The steps you are describing are not clear.
Make sure you are following the steps as provided in the IBM Worklight Knowledge Center.
First make sure the Worklight Server deployment to the application server was done correctly
You can verify this then by loading the Worklight Console (there will be no deployed projects)
Then follow the Worklight project (.war, .wlapp, .adapter) deployment to the Worklight Server instructions
You can verify this then by loading the Worklight Console (there will be 1 deployed application)

WL 6.0. How to generate apk or ipa pointing to the right server without the worklightServerRootURL

I have read the posts:
IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task
IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?
IBM Worklight 6.0 - application-descriptor.xml
And I think I'm missing something because all them stop with the generation of the wlapp for other servers.
After generating and installing the wlapp it is needed to generate and apk/ipa or "Run As" over the environment to execute that application.
The problem I'm having is that the deployed application in the device points to the development server always and not to the other server I have used for generating the .wlapp files with the (Run As -> Build For Remote Server...).
I have tried deploying the application with the property "publicWorkLighHostname" changed in the worklight.properites but it has no effect.
How do I deploy an application to the device pointing to the desired server?
Thank you.
Run As >> Build All and Deploy / Build specific environment, points to the local development server
Build for Remote Server, points to a server of your choosing
If you perform a Build All and Deploy after a Build for Remote Server, this will overwrite the previous action and the artifacts will again point to the local development machine.
So do a Build for Remote Server. Worklight Studio knows where to put what so that the app will reach the server.