Unable to install local cloud services - spring-batch

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.

Related

tomcat localhost url return ERR_CONNECTION_REFUSED

I developed a spring MVC app in eclipse and trying to test in my laptop tomcat localhost. This URL works http://localhost:8080. It brings up the tomcat admin page. But when i call http://localhost:8080/mywebsite, as part of spring security port mapping it forwards to https://localhost:8443/mywebsite, but i get
This site can’t be reached
localhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
This is definitely not firewall issue, as i uninstalled all my antivirus, disabled firewall in windows defender
I have also changed the server location to "use tomcat installation" in eclipse
I have cleaned up deployment folder multiple times and reinstalled app and restarted server multiple times. The server started successfully i can see the logs
I am using tomcat 9 and JDK-19
I dont see any calls in access logs, only a 302 when it redirects from http://localhost:8080/mywebsite to https://localhost:8443/mywebsite
I have been trying this for 2 days and it wont budge an inch. I need help please
As #nitin pointed out in the comment above, I had not configured SSL connector. My bad I thought SSl cert is not needed for localhost testing. But it is required. I following the steps in
https://medium.com/beingcoders/setup-ssl-on-apache-tomcat-in-just-10-minutes-step-by-step-guide-706484094bb2

service fabric failed to contact the server. please try again later or get help from "how to configure secure connections"

I'm trying to deploy a service fabric application to an unsecure Azure Service Fabric cluster. When I open the publish window in VS 2017 I get the following. If my cluster is unsecure, shouldn't I be able to publish it w/o configuring the cert?
I tried a publish anyways and I got:
Try accessing the server via powershell to maybe get a better error. Usually, errors like this are caused by firewalls blocking the port 19000.

Unsupported protocol: rest mobilefirst

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

How to get tcp/ip monitor to use authentication in Eclipse

I have a web-service defined in XML (EJB project). I override this endpoint and send it through the tcp/ip monitor - which works fine, however I get:
javax.xml.ws.WebServiceException: HTTP ( 401 ) Unauthorized address
I know the credentials and can hit the service through a browser but I can't seem to get Eclipse (IBM's RAD version) to allow me to specify the security credentials, there's no option for it:
In my XMLI have:
overriddenEndpointURI="http://localhost:8887/xxx/xxx/ServiceName"
Any suggestions?

How do I troubleshoot a 404 error on a webapp accessed via apache vhost?

In my development system ( macos ) I have a webapp running in a jetty container on port 8080
Part of this webapp is a REST service
I can hit the REST service as follows
curl http://fake.hostname.com:8080/find/http%3A%2F%2Fwww.nfl.com
and I get the expected JSON result from this call.
Because on the server I am deploying on, I have an apache front end using ajp to route to tomcat, on my dev system I have an apache vhost routing to port 8080. This helps with testing some oauth dependencies where facebook redirects to a specific host URL.
The webapp works fine in this configuration except when I try and hit the service using
curl http://fake.hostname.com/find/http%3A%2F%2Fwww.nfl.com
Nothing is showing up in the jetty console reporting a proplem and I am getting a 404 response from apache.
Can anyone suggest how to troubleshoot such an issue? Or things I should look at?
note 1. I know the issue of using apache as a proxy to tomcat or jetty is contentious but given there are other apps already living on apache port 80 I’m not willing to run tomcat in its place.
note 2. the webapp is in scala using the lift framework.
Not really an answer to the exact question, but did you consider to use nginx as a proxy+load balancer? It's a de-facto standard, as far as I know.
Also, what's in the logs? tomcat-s logs, apache logs..