Temporary Directories in WebLogic 10

折月煮酒 提交于 2019-12-20 11:17:32

问题


Whenever, WL is stopped it doesn't delete its temporary directories .. i.e.

domains/mydomain/servers/myserver/tmp/_WL_TEMP_APP_DOWNLOADS

/domains/mydomain/servers/myserver/tmp/_WL_user/ /domains/mydomain/servers/myserver/stage

and because of this, when we deploy new application, it doesn't deploy some JSP or some classes and it keeps the old version of those files. resulting in lots of business errors + runtime error.

Is it a known issue ? How can we tackle it?


回答1:


In general WL will cache your deployment and won't redeploy unless it is asked to. But it depends on how you deployed your application and if the server is in production or development mode. See development deployments and production deployments.

One easy fix, go to the /domains/mydomain/servers/myserver/ directory and delete:

  • tmp
  • cache
  • logs

and leave the data and security directory. Then restart. This will force WL to redeploy.

My original answer included a delete of the data directory but as @g-demecki and @j23 point out below, that can mess up an admin server. I believe it is OK to delete the data directory on a managed server.




回答2:


I never run into such issue in production mode, if you are running in development mode and using auto deploy, please follow best practices documented

You must touch the REDEPLOY file (alter its timestamp) any time you wish to trigger redeployment of an auto-deployed application. Even if you modify an application while a server is shut down, you must touch REDEPLOY to ensure that changes are applied when the server next starts up.




回答3:


Redeploy should update the tmp - maybe your timestamps are not ok ? Stop and start will not refresh tmp as it is still used after restart.

From my experience it is enough to delete tmp when server is down to force unpack WAR (it is a matter of unpacking WAR to tmp by Weblogic, this is the main task done during deployment). e.g. in your case

/domains/mydomain/servers/myserver/tmp/



回答4:


In my case, a simple reboot of the Linux machine fixed the issue.



来源:https://stackoverflow.com/questions/12301976/temporary-directories-in-weblogic-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!