Resources not being wired after upgrading to jakarta-api 2.1.1 - spring

When upgrading jakarta-api 1.3.5 to 2.1.1, the #Resource annotated fields remain null. I'm using spring-context 5.3.22 (not spring-boot) and java 17.
The spring context is initialized manually; The AnnotationConfigApplicationContext is instantiated in main.
I figured, since Spring Boot 3.0 has migrated all Java EE APIs to their equivalent Jakarta EE variant, spring-context 5.3.22 should be able to wire the #Resource annotated fields. What am I missing?

Related

ElasticsearchAutoConfiguration not available in spring boot autoconfigure 2.7.6

I am working on spring-boot upgrade from 2.2.2.Release to 2.7.6. I am noticing org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration is not available in spring-boot-autoconfigure:2.7.6. Is there any substitute for ElasticsearchAutoConfiguration class which is introduced in 2.7.6 version.
I checked the spring boot project source code but didn't find the ElasticsearchAutoConfiguration class present in latest version
It looks like the org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration class was removed in favor of ElasticsearchDataAutoConfiguration in the same package in b780e52 since Spring Boot 2.3.0.
See also https://github.com/spring-projects/spring-boot/issues/19668.

I have an issue on migration JSF Apache myfaces CDI to Spring Boot

Am migrating JSF to Spring boot. I have some Apache myfaces CDI annotation like 'ViewAccessScoped' and #Inject WindowContext. I have added dependency in pom.xml file. When I try to run an application. It throws error : illegal state exception : no org.apache.myfaces.extensions.cdi.core.api.provider.BenManageProvider in place ! Please ensure that you configured the CDI implementation of your choice properly. Can I use Apache myfaces CDI in spring boot.? or is there any another way to resolve the issue.?

Compatibility of Spring, Spring Security and Spring Webflow

Is there a compatibility matrix for spring, spring security and spring webflow for recent releases resp. versions running under Java 7 and JSF 2.2? Or are simply all versions > some threshold compatible?
you can check on maven here and check the compile dependencies of the versions.
for example you can see that WebFlow 2.4.4 is compatible with Spring Security 4.1.0.RELEASE and Spring 4.3.0.RELEASE which is then compatible with jsf 2.2 (through spring-web)

Spring boot, Spring core dependency

I run spring boot 1.3.3.RELEASE, I have run into this issue that are solved in spring 4.3 https://jira.spring.io/browse/SPR-14114
When does spring boot support spring 4.3 ? Can I upgrade my spring-core dependency in current version of spring boot that I have.
When does spring boot support spring 4.3 ?
Spring Boot 1.4 will use Spring Framework 4.3 by default.
Can I upgrade my spring-core dependency in current version of spring boot that I have.
Yes. Spring Boot 1.3.x uses Spring Framework 4.2.x by default but it is compatible with Spring Framework 4.3.x. Assuming that you are using Maven and spring-boot-starter-parent as your pom's parent, you can use the spring.version property to control the version of Spring Framework that's used. For example:
<properties>
<spring.version>4.3.0.RC1</spring.version>
</properties>

apache camel 2.9.1 works with spring 3.1.x and Spring 4.x

Hi Currently I am using camel-2.9.1 with default underlying dependency spring 3.0.5. This is working fine in production. Now I have to use some feature of Spring 3.1.x or Spring 4.x.
Will camel-2.9.1 works if I replace underlying spring jars to 3.1.x or Spring 4.x.
Since it is already in production i don't want to upgrade camel jars.
Will same camel-jars of 2.9.1 works with Spring 3.1.x or spring 4.x

Resources