weblogic 12c java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add
java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add in WebLogic 12c
solutions:
Add below script in weblogic.xml in WEB-INF directory
<wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
for example:
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd">
<wls:weblogic-version>12.1.3</wls:weblogic-version>
<wls:context-root>inho</wls:context-root>
<wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
</wls:weblogic-web-app>
I tried to deploy Web Application packed war to Oracle Java Cloud and Oracle Developer Cloud, But I met above error message.
So I tried to treat with below actions:
1) add system properties
-Dweblogic.spring.monitoring.instrumentation.disablePreClassLoader=true
If you want to how to add system properties to your managed servers, please check below link.
2) I changed deploy option in Oracle Developer Cloud with Automatic.