How to configure Springboot 2.4.2 to use the 4.10 Cassandra driver please?
Currently, a Springboot 2.4.2 will pull by default the spring-boot-starter-data-cassandra-reactive 2.4.2 version as well, which depends on the 4.9 version of the Cassandra driver.
I tried overriding at the pom level by importing the 4.10 Cassandra driver, but the app still starts with the 4.9 version.
.d.o.d.i.core.DefaultMavenCoordinates : DataStax Java driver for Apache Cassandra(R) (com.datastax.oss:java-driver-core) version 4.9.0
How to configure Springboot 2.4.2 to use the 4.10 Cassandra driver please?
Thank you
I'm using this configuration. You need to update your pom.xml with the new java-drive- core version 4.12.0. You can check this link to copy the dependency: https://mvnrepository.com/artifact/com.datastax.oss/java-driver-core .
Somenting very important is to check the all the Compile Dependencies' version (18) that you use and update too. Update the maven dependency in your project. If it still show this message, you can delete the dependency fisically. If you are using the Eclipse's IDE, you can find the ...\.m2\repository the respective java-drive-core 4.9.0 and delete it.
This version 4.12.0 have new features so nice. I recommend you use it.
Related
I have generated a project using jHipster 7.1.0 which created an application (monolith) without client for me using springboot version 2.4.7
With recent times after release of new versions of spring I would like to upgrade and fix dependencies of spring to 2.6.3
Even though I update the springVersion in pom.xml I don't see the change of version when I start the project. Any information will be of great help.
You should check jhipster-dependencies and upgrade it ! The spring boot version comes with this dépendancy.
implementation platform("tech.jhipster:jhipster-dependencies:${jhipster_dependencies_version}" )
TIA
I am trying to upgrade Springboot application from 2.1.6 to 2.2.1 including spring cloud version from Greenwich.SR2 to Hoxton.SR5
Application not started
The following method did not exist:
org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
The method's class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient is available from the following locations:
jar:file:/c:/.m2/5.2.1.Release/spring-webflux-5.2.1.RELEASE.jar!/ReactorNettyWebSocketClient.class
it was loaded from the following location:
file:/c:/.m2/5.2.1.Release/spring-webflux-5.2.1.RELEASE.jar
What exactly I need to do to resolve the above issue.
Upgrade your springboot version to 2.2.7.RELEASE on your gradle.build, we had the same problem and with this version fixed!
I'm upgrading a Spring project's Spring version5.1.5.RELEASE which requires an upgrade to Hibernate 5.
I checked the jasypt maven repo but it doesn't seem to have a Hibernate 5 supported version yet.
What's the way to get around this? I don't even know if a Spring 5.x compatible jasypt is on its way.
Edit: I have already checkout out this github repo and have opened an issue on it. I couldn't get it to compile.
jasypt hibernate support is officially available now, here's a link to its maven repo.
I'm trying to install hibernate into karaf using the features mechanism.
The solution given here by Mr Christian Schneider works fine for hibernate versions over 5.0.0, but it doesn't for versions under:
karaf#root>feature:repo-add hibernate 4.3.11
Adding feature url mvn:org.hibernate/hibernate-osgi/4.3.11/xml/karaf
Error executing command: Error resolving artifact org.hibernate:hibernate-osgi:xml:karaf:4.3.11: Could not find artifact org.hibernate:hibernate-osgi:xml:karaf:4.3.11 in central (http://repo1.maven.org/maven2/) : mvn:org.hibernate/hibernate-osgi/4.3.12/xml/karaf
I suspect because features for those versions aren't available.
So my question:
How to know which versions are available ?
How to install features for versions under 5.0.0 ?
To know which versions are availiable you can use the feature:versions-list command, it will show you the availiable versions of that feature and which features repository owns it.
And for the versions older than 5.0.0, you have some choices:
You can create your own hibernate feature, search for older versions of the feature you want to install, or you can also edit the existing feature.xml adding the version you want and refreshing the repository with feature:repo-refresh .
For the last one you can find the hibernate-osgi feature at %KARAF_HOME%/system/org/hibernate/hibernate-osgi.
I am using Hibernate in my application and now there is a need of upgrading to the latest version of Hibernate(now its 4.3.5.Final) and I have to integrate it with Spring.
Now my question is that which version of Spring is compatible with Hibernate 4.3.5.Final or which latest version of hibernate is compatible with Spring 4.x version.
FYI: During my search I found this SO link which tells that how to know the Spring and Hibernate version comparability. And according to that I opened spring-orm Maven POM and found that with spring-orm: 4.0.5.RELEASE I can use hibernate-core: 4.2.12.Final and hibernate-core: 3.6.10.Final among these only hibernate-core: 3.6.10.Final is working. Then how can I solve this problem of version conflicts.