Problem Description:
The application published in weblogic uses commons-lang-2.6.jar, but is calling. When StringUtils.startsWith method, an exception is reported
Java.lang.NoSuchMethodError:org.apache.commons.lang.StringUtils.startsWith(Ljava/lang/String;Ljava/lang/String;)Z。
reason:
Weblogic starts with a commons-lang preloaded (bea11g\modules\com.bea.core.apache.commons.lang_2.1.0.jar). The package that causes the application of 2.4 below is not loaded.
Solution:
1: Enter the directory D:\Oracle\Middleware\user_projects\domains\esb\bin (the esb domain is different for everyone)
2: Open startWebLogic.cmd with Notepad (it is recommended that you install notepad++ software and open it through notepad++)
3: Add a variable xmpath and assign it to the path of the project (note the location)
4: Assign the variable CLASSPATH to: %xmpath%\daieweb\WEB-INF\lib\commons-lang-2.6.jar;%SAVE_CLASSPATH%