Unsupported protocol: rest mobilefirst - rest

I am trying to setup my first mobile app but without success for more than a week now
I use MFP 7.0 and MySQL 56 on RHEL 6. I am still trying to find a solution for this error through google
I use 'localConnector-1.0' in server.xml as shown below
<featureManager>
<feature>jsp-2.2</feature>
<feature>jdbc-4.0</feature>
<feature>appSecurity-2.0</feature>
<feature>servlet-3.0</feature>
<feature>localConnector-1.0</feature>
But in messages.log I am able to see 'connection via REST' despite using 'localConnector' followed by 'Malformed URL'
[7/31/15 9:57:35:188 IST] 00000048 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST
[7/31/15 9:57:35:189 IST] 00000048 com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler I Establishing REST connection to service:jmx:rest://localhost:9443/IBMJMXConnectorREST
[7/31/15 9:57:35:190 IST] 00000048 com.worklight.core.jmx.ProjectSynchronizationBean E FWLSE0320E: Failed to check whether the admin services are ready. Caused by: [project worklightconsole]
java.net.MalformedURLException: Unsupported protocol: rest
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:367)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:277)
at com.worklight.common.util.jmx.LibertyRuntimeMBeanHandler.getMBeanServerConnection(LibertyRuntimeMBeanHandler.java:84)
at com.worklight.common.util.jmx.MBeanConnectorFactory.getLocalMBeanProxy(MBeanConnectorFactory.java:139)
at com.worklight.core.jmx.ProjectSynchronizationBean.isReady(ProjectSynchronizationBean.java:126)
at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:140)
at java.lang.Thread.run(Thread.java:780)
Any help or URL links will be of great help

By design, the connection to the MobileFirst Admin Services uses JMX and is secured with SSL.
To make it possible to use such a connection, you have to use feature restConnector-1.0 in Liberty instead of feature localConnector-1.0.
"Configuring secure JMX connection to the Liberty profile"
https://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/ae/twlp_admin_restconnector.html?cp=SSD28V_8.5.5%2F1-5-2-10-1
This is mentioned in the MobileFirst 7.0 documentation in section "Configuring WebSphere Application Server Liberty profile"
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/install_config/t_optional_config_app_server_liberty.html
where it is said that MobileFirst Server requires the secure JMX connection to be configured.
You may find the manual steps for configuring the MobileFirst Admin Services in this section
"Configuring WebSphere Application Server Liberty profile for MobileFirst Server administration manually"
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.installconfig.doc/admin/t_configuring_liberty_profile_for_wladmin_manually.html
The list of Liberty features to use depends on Liberty version but in all cases, you can notice that only feature restConnector-1.0 is used.
To go a step further, note that there is also a section for configuring Liberty with MySQL
"Configuring Liberty profile for MySQL manually"
http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/admin/t_configuring_liberty_profile_for_my_sql_manually.html

Related

Unable to install local cloud services

While I'm trying to install local cloud services using Spring Tool Suite 4
Spring Tool Suite 4
Version: 4.3.2.RELEASE
Build Id: 201908130627
and I'm getting
IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1
407 authenticationrequired" Unable to tunnel through proxy. Proxy
returns "HTTP/1.1 407 authenticationrequired" error messagge.
The same error occurs for if I try to edit Spring boot starters
https://start.spring.io
I've already configured my proxy server under Windows->Prefernces->General ->Network connections -> Active provider to Manual and configured our proxy details for HTTP and HTTPS schemas.
Note:
I'm able to install other plug-ins from eclipse market place.
To fix this problem, j just add this parameter in file config STS.ini :
-Djdk.http.auth.tunneling.disabledSchemes=""
You must restart Spring-STS after.

500 Error: Failed to establish a backside connection, on bluemix when connecting to Exchange web services

I have a Liberty Websphere application hosted on Bluemix that connects to Exchange Web Services. When I run this api on localhost it works fine and returns the desired results. But when I host it on bluemix, it returns the error
"500 Error: Failed to establish a backside connection"
No errors in the logs.
i have tried the solutions given in other posts and searched a lot on internet. But still not able to solve this issue.
Finally the problem is resolved. There was a configuration error in the application as my company's Bluemix server is on dev environment and the application was trying to connect to the prod environment.
When we connected using the dev IDs, from dev bluemix servers to dev exchange servers, the application works fine.

restarting application server in websphere without admin user/password

I have a requirement where I need to restart websphere application server without providing username/password with the startServer.sh/stopServer.sh
Also I don't want to disable the WebSphere administrative security.
See the Configuring the soap.client.properties file topic in the Knowledge Center.

Spring : No connection could be made because the target machine actively refuse it

I have developed SFTP, MQ using Apache Camel + Spring DSL and restful web service. For Restful Web service , I have used Spring MVC restful. I am getting below message when I call my web service.But, I verified that MQ is partially working fine without restart the server, but data is not updated in DB, messages are coming to server folder. After restart the server, spring MVC restful is working fine. But, using ps-ef command verified that server is up.
please guide me where the issue is.
web.xml
i have configured dispatcher-servlet.xml for Spring MVC restful
I am using jetty server(version:8).I think after 2 days if there is no hit in server. it become idle or something. please help.
Exception
The connection to 'SYSTEM ADDRESS' failed. Error: ConnectionRefused (0x274d). System.Net.Sockets.SocketException No connection could be made because the target machine actively refused it IP:PPORT

What protocol provider to connect to JMX on WebSphere via SOAP?

I'd like to connect to the JMX server on a WebSphere application server instance using a SOAP over HTTP connector but I don't know where to find a compatible SOAP protocol provider.
I get a MalformedURLException when using a JMXServiceURL starting service:jmx:soap:... that says Unsupported protocol: soap. What jar(s)/protocol provider string do I need to include?
Update: I am playing with a standalone Java client.
Unfortunately, IBM only provides a proprietary API to connect with SOAP over HTTP. They don't provide an implementation of the standard JMX API for that protocol. I faced the same issue and I developed such a connector (which is basically a thin JMX compliant wrapper around IBM's proprietary API), which is now available as Open Source. You can find more information here:
https://github.com/kszbcss/xm4was/wiki/JmxClientConnector
The following document describes how to set up a standard JMX tool (VisualVM) to use that connector:
https://github.com/kszbcss/xm4was/wiki/VisualVMHowTo
As you can see from these documents, after adding the relevant JARs to the class path and setting the necessary system properties, you would simply connect using wssoap as protocol.
Check that in the path Application servers > <server_name> > Administration services > JMX connectors the relative SOAPConnector exists and is Enabled.
Refer at Infocenter for more information.