Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Temporary Directories in WebLogic 10

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?

like image 501
Em Ae Avatar asked Sep 06 '12 14:09

Em Ae


2 Answers

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.

like image 72
pd40 Avatar answered Oct 14 '22 13:10

pd40


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.

like image 27
Ted Shaw Avatar answered Oct 14 '22 13:10

Ted Shaw