상세 컨텐츠

본문 제목

weblogic 12c java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add

소프트웨어/spring

by 야솔아빠 2016. 5. 16. 20:07

본문

반응형

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.

http://docs.oracle.com/cloud/latest/as111170/WLACH/taskhelp/startstop/SetJavaOptionsForServersStartedByNodeManager.html#WLACH03404


2) I changed deploy option in Oracle Developer Cloud with Automatic.


반응형

관련글 더보기

댓글 영역