Weblogic prefer application resources

Problem:

Solution:

For this problem we have to edit weblogic.xml according to the configuration below. The prefer-application-packages element specifies a list of packages for classes that must always be loaded from the application. For more information, see prefer-application-packages in Developing Applications for Oracle WebLogic Server.