How to configure Spring 3 in weblogic 10.3.5 - weblogic-10.x

How to configure Spring 3 to Weblogic 10.3.5.
Currently I get this exception.
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;

There's no add method on that class in Spring 2.5, according to the javadocs:
http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/beans/MutablePropertyValues.html
But there is in version 3:
http://static.springsource.org/spring/docs/3.1.x/javadoc-api/
Sounds like you have a mix of versions 2.5 and 3.x that is incorrect.

Related

Spring 5 with Spring-social reports java.lang.NoSuchMethodError: org.springframework.web.util.WebUtils.extractFullFilenameFromUrlPath

I have tested Spring 5.0.0.RELEASE to 5.3.4 and all failed with the latest spring social with Facebook login and all reported this error
java.lang.NoSuchMethodError: org.springframework.web.util.WebUtils.extractFullFilenameFromUrlPath(Ljava/lang/String;)Ljava/lang/String;
I looked at all JARs & it seems that the static method of WebUtils.extractFullFilenameFromUrlPath doesn't exists in 5.x.x. BTW. I tried this solution and it failed too; Spring still attempts to invoke the method
On the other hand, Spring 4.x.x worked like a charm
It should be noted that I am not using Spring Boot
Plz help

Spring-Kafka: RecordIntercepter class not found

I am using spring boot 2.1.5 and spring-kafka, version not specified. Project is gradle 6.0, java 1.8
I am getting this error
error creating bean with name 'org.springframework.boot.autoconfigure.kafka.kafkaannotationdrivenconfiguration': unexpected exception during bean creation; nested exception is java.lang.typenotpresentexception: type org.springframework.kafka.listener.recordinterceptor not present
What could be this due to? Please help.
2.1.5 is nearly a year old; the current Boot 2.1.x release is 2.1.13.
2.1.5 uses spring-kafka 2.2.6 so I don't see how you can get that error, based on your description.
RecordInterceptor was added in spring-kafka 2.2.7.
It was added to the Spring Boot autoconfiguration in 2.2.0.
So what you are describing makes no sense; you must be using Boot 2.2.x and an old spring-kafka version.
You have mis-matched Boot/Kafka versions.
Upgrade to Boot 2.1.13 (or preferably 2.2.6).

Spring cloud sleuth doesn't work with log4j2

When i add sleuth dependency in a spring boot project that uses log4j2 for logging, i get the following error
Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/context/embedded/FilterRegistrationBean
Does sleuth work only with logback and it support log4j2 also ?
the error you are getting is for FilterRegistrationBean, it maybe due to the version mismatch of spring-cloud and spring-boot. There is a issue with compatibility of Spring-boot version 2.x.x and Spring-cloud version 1.x.x
refer to this:
https://github.com/spring-cloud/spring-cloud-config/issues/836#issuecomment-376846920

spring 4 and quartz 1.x

I have upgraded my project from Spring 2 to Spring 4. I have quartz 1.7 in my project. After I upgraded to Spring 4, I got this error
Invocation of init method failed; nested exception is
org.quartz.JobPersistenceException; Couldn't receive trigger: Invalid column name 'SCHED_NAME'
Any suggestions?
If you take a look at Quartz 2 migration guide
http://quartz-scheduler.org/documentation/quartz-2.x/migration-guide
SHED_NAME column was added to all tables in Quartz.
Check your dependencies for Quartz, I think you are on 2.x.x version now.
Copying the latest quartz.jar in /jboss/server//lib worked for me

Spring + Hibernate Not able to address issue

i am using spring 3.2.4 (latest stable version) with hibernate
i have added all the dependencies but still i am getting the error which is below
java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor
if i use maven
then i get too many errors like Failed to Autowired (in both service and DAO),
org.springframework.beans.factory.BeanCreationException:
java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider
please help me to solve problem for one of above. i want to create an application (spring + Hibernate) any of way (with maven or without maven)
The application is missing the hibernate-core-x.x.x.jar file. You will need to find the appropriate version of the jar.
Use FindJar: http://www.findjar.com/jar/org/hibernate/hibernate-core/3.3.2.GA/hibernate-core-3.3.2.GA.jar.html
The class java.lang.ClassNotFoundException: org.hibernate.cache.CacheProvider is included in version of Hibernate before version 4.0. I would update all of your libraries to use the 4.0 version.

Resources