Do not delete the tmp/_WL_user/appname/ before deploying the new version; delete it after deployment, if necessary.
Better yet, do something in writing / create your application so that the new WAR/EAR/JAR/TRUCK/BICYCLE files contain only files with newer timestamps.
Even better, there is a file that, if it exists in WEB-INF or META-INF (donβt remember which one), when you access WebLogic the first time after re-deployment it will see that this file has a newer timestamp and will automatically hide the entire cache -Ore. The problem is that I donβt remember what this file name should look like (IIRC, this is in ALL CAPS, though).
But even better, rewrite the application (s) so that this is not a problem. Of the several hundred applications that I run here on WebLogic servers, only a very small number have ever encountered this problem. The vast majority of Just Work applications, when they are updated,
NTN.
source share