Temporary directories in WebLogic 10

Whenever WL stops, it does not delete its temporary directories. Those.

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 you deploy a new application, it does not deploy some JSPs or some classes and saves the old version of these files. leading to many business errors + runtime error.

Is this a known issue? How can we handle this?

+6
source share
4 answers

In general, WL will cache your deployment and will not relocate unless prompted. 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 .

A simple fix is ​​to go to the / domains / mydomain / servers / myserver / directory and delete:

  • Tmp
  • cache
  • magazines

and leave the data and security catalog. Then restart. This will force WL to redistribute.

My initial answer included deleting the data strong> directory , but as shown below, @ g-demecki and @ j23 can ruin the admin server. I believe that it will be possible to delete the data directory on the managed server.

+4
source

I never encounter such a problem in production mode, if you work in development mode and use automatic deployment, follow the recommendations described in

You must touch the REDEPLOY file (change its timestamp) anytime you want to initiate a redistribution of an automatically deployed application. Even if you modify the application when the server is turned off, you must touch REDEPLOY to ensure that the changes will be applied when the next server starts.

+1
source

Redeploy should update tmp - maybe your timestamps are out of order? Stop and start will not update tmp since it is still in use after a restart.

In my experience, it is enough to remove tmp when the server is turned off to force unpack WAR (this is a matter of unpacking WAR tmp using Weblogic, this is the main task performed during deployment). for example in your case

 /domains/mydomain/servers/myserver/tmp/ 
0
source

In my case, just rebooting the Linux machine fixed the problem.

0
source

Source: https://habr.com/ru/post/924741/


All Articles