Worklight adapters deployment failure - ibm-mobilefirst

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.

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.

Worklight access remote adapter from different server mobilewebapp

I have few adapters deployed in remote uat server.
I want to access them n develop mobile web app in my local worklight server.
Im using IBM Mobilefirst 7.1.0
I tried setting host and contxt path of uat server in mobilewebapp build settings and run the app in my local server. But query call is throwing 404 error.
Can anyone help me in accessing remote adapters in local server.
It would've been easier to help you had you provided information such as where are you setting that connection info and what are you setting... since you're getting 404, this would typically mean that you have incorrectly inputted the connection info.
In MobileFirst Studio, right-click on the application folder and select Run As -> Remote Target and Build Settings. There you need to input the server address:
Host: https://your-server-ip-address:port-number
Context root: /myproj (typically the project name, unless you've specified otherwise in the server.xml of the remote application server).

IBM MobileFirst Platform 7.1 - No runtime environment deployed in this server

I have installed IBM Mobile First Server on a VM. As a part of Mobile First installation, I installed Application Center, IBM DB2 , WAS Liberty Core as well and Mobile First Studio on my local machine. I am able to view the Mobile First console on http://localhost:9083/console and providing the required credentials.I uploaded a war file by using the Server Configuration Tool. Restarted Application Server. Tried with different war files.
My issue is when I open my mobile first console I'm getting
No runtime environment deployed in this server
Here you can find my messages.log and server.xml files https://www.dropbox.com/s/ftb3bb71wyuarrl/share.zip?dl=0
You've changed the following:
<httpEndpoint id="defaultHttpEndpoint"
httpPort="9083"
httpsPort="9446" host="*" >
But kept this:
<jndiEntry jndiName="ibm.worklight.admin.jmx.port" value='"9443"'/>
And in the log, it mentions:
[9/24/15 8:29:06:429 CDT] 0000005b
com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I
Impossible to establish a REST connection to :
service:jmx:rest://localhost:9443/IBMJMXConnectorREST
In your previous question on the same topic it was identified that you have some VM network problems with the ports 9080 and 9443. So, try changing "9443" to align with the actual HTTPS port you're using, 9446.

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)

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

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.