How to configure SSL with commons-httpclient-4.0.3 - apache-commons-httpclient

I'm unable to find any documentation on Apache commons-httpclient version 4.0.3. I'm deploying something in someone else's JVM and I'm stuck with the versions of libraries that they provide.
In particular, I need to configure SSL for httpclient. Does anyone know how to do this or where I can find some decent documentation?

Found an example in their svn repository:
http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.3/httpclient/src/examples/org/apache/http/examples/client/ClientCustomSSL.java

Related

How to fix Spring4Shell Remote Code Execution Vulnerability (CVE-2022-22965) on System-Jfrog-Artifactory nodes

What is the correct way to solve this vulnerability? Should we upgrade version spring shell version to 5.2.20
I am using Spring Boot directly – upgrade to version 2.6.6
JFrog platform is not vulnerable to SpringShell CVE-2022-22965.
JFrog's Security Research team investigated and detailed their findings and remediation strategies in this blog, and introducing a new set of OSS tools to help developers address this latest threat.
The documents from JFrog, below should help you on this issue and remediation
https://jfrog.com/blog/springshell-zero-day-vulnerability-all-you-need-to-know/
https://jfrog.com/blog/springshell-remediation-cookbook/

Cannot kotlinc-native compile restful service with Spring

Quick Question: Is it possible to convert a Kotlin + Spring restful web service to a linux native application?
It works properly when run on the JVM, but I get compilation errors when I try to build it using kotlinc-native for linux.
I cannot find any definitive statement about whether I am trying to do something that is unsupported. Am I trying to swim upstream, here?
Thank you for your comments and help!
Mike
Here are some details...
Ubuntu 18.04
Latest versions of stable dependencies
You can not link a jvm library with kotlin-native. You must have a C library to be able to link it or convert the java code to kotlin.
If what you need is a embedded server executable you could check the ktor project.
The project have some client native examples and a embedded native http2-push.

Missing config features on Opendayligth Rest API

I am using the YangUI on the REST API of ODL(Oxygen Release) and I want to use the config features of opendaylight-inventory but I can only see the operational ones. Like this.
¿What can be the problem?
I have solved installing the same features on a previous ODL release. I don't know why but I can't see config features on Oxygen.

Deploy a Ninjaframework application on openshift

Apologies for the vagueness of this question.
Is it possible or, how can a ninjaframework application be deployed on Openshift.
Basically, I have a Ninjaframework application running locally in superdev mode. I can even build a war file. However, when I push it to an Openshift git repository it simply doesn't work. Specifically, I get a vague "Oops. That's an internal server error and all we know." page when I try to access the site.
TBH, I'm not surprised. I need to somehow specify to Openshift how to build the application. I'm hoping this can be done by some Maven configurations etc. but I haven't the faintest idea how?
Any help or pointers very much appreciated.
Yep, cool, thanks guys. I'm afraid i was so clueless on how to do this that logs would only tell me what I already knew; that simply git committing a NinjaFramework application configured to build as a fat jar (by default per the archetype) was never going to work in a Tomcat application server. Apologies if that didn't come across in the question.
I expected some elaborate Maven stuff would be required but luckily I was wrong. It turns out that a simple Maven change was all that was required to have the application deployable in OpenShift (Tomcat 7).
I've outlined the steps here in tutorial form: http://outbottle.com/deploying-a-ninjaframework-application-on-openshift/

Using Spring Insight with Tomcat 6

I want to use Spring Insight with Tomcat 6. I cant use TC server because of reasons beyond my control. So I am looking at integrating Spring Insight with Tomcat 6. Has any one worked on this before or can any one point me to any documentation.
Thanks,
Anuj
Insight Developer (the free product) comes in two form, packaged with tc Server Developer and packaged with STS. Neither option will provide an easy mechanism for installing Insight into Tomcat. I'm not saying that it can't be done, there is just no simple way to do it.
If you really want to run Insight on Tomcat then you are going to need to do some work. Here are the rough steps that you'll need to do.
Download vFabric tc Server Developer
Create a vFabric tc Server instance which has Insight enabled.
Download the latest Apache Tomcat 6.0.x or 7.0.x
Copy the following files & folders from the tc Server instance w/Insight
bin/setenv.sh
bin/insight-bootstrap-tcserver-1.8.3.RELEASE.jar
insight
lib/*
webapps/insight.war
Edit conf/server.xml and add the following Valve to the Engine block.
<Valve className="com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve"/>
Edit conf/context.xml and add the following before the closing Context tag.
<Loader loaderClass="com.springsource.insight.collection.tcserver.ltw.TomcatWeavingInsightClassLoader" />
<Listener className="com.springsource.insight.collection.tcserver.lifecycle.ApplicationLifecycleCollectionListener" />
Start the Tomcat instance.
Alternatively, Insight Operations (a paid product) makes this much easier and offers an installer that allows you to easily and quickly add the Insight Agent into different containers, including ASF Tomcat. Here's a link to the documentation.
http://pubs.vmware.com/vfabric51/topic/com.vmware.vfabric.tc-server.2.7/operations/install-agents.html
I think this instruction can be helpful for you http://blog.jelastic.com/2012/11/28/application-monitoring-in-the-cloud-with-spring-insight/
Actually in this tutorial Tomcat is a cloud instance, but I guess it is suitable for local installation too.
I downloaded vfacbric-tc-server-2.9.6 and followed the instructions mentioned by Daniel Mikusa to set up insight on tomcat 7. Unfortunately tomcat was not able to find the classes HttpRequestOperationCollectionValve, TomcatWeavingInsightClassLoader and ApplicationLifecycleCollectionListener in the jars provided. After struggling 2 days adding new jars containing these classes and getting class clash., finally I figured out that just removing the configuration in server.xml and context.xml are sufficient to get insight working on tomcat.
So, all you need to setup insight on tomcat are the steps 1 to 4 and 7 in his answer. I'm copying the same for the ease of others
Download vFabric tc Server Developer
Create a vFabric tc Server instance which has Insight enabled.
Download the latest Apache Tomcat 6.0.x or 7.0.x
Copy the following files & folders from the tc Server instance w/Insight
bin/setenv.sh
bin/insight-bootstrap-tcserver-1.8.3.RELEASE.jar
insight
lib/*
webapps/insight.war
Start the Tomcat instance.
I am trying to follow the updated instructions provided by "nagamanojv". I am able to start http://localhost:8080/insight/ on Tomcat 6, but I do not see any applications. I have deployed one of my web applications on the same tomcat instance. Let me know if I am missing anything.

Resources