Tomcat cache delete automation

Hi
  Is there any way to automate the Cache delete under tomcat folder (i.e deleting all the contents under Tomcat>work>localhost )?
I am looking the following steps in the automated script
1. Shutdown Tomcat
2. Delete Cache under Tomcat localhost folder
3. Restart Tomcat
Thanks
Venkat

you can write batch script and schedule via task manager.
Include Stop Tomcat and Start Tomcat to below script.
Example:
@echo off
set folder="D:\Program Files\Tomcat55\work\Catalina"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
exit

Similar Messages

  • Deleted Automator

    I accidently deleted automator when I was cleaning my HD. How do I re-install it? Is there a download anywhere?

    A program called Pacifist http://www.versiontracker.com/dyn/moreinfo/macosx/12743 will allow you to extract Automator from your original OSX installer disks.
    Otherwise you could just ask a friend to email it to you.
    hth,
    b.

  • Tomcat Cache Issue

    Hi,
    Not sure if this is the right place to post this, so please advise if not.
    I am developing a JSF based site using Tomcat 6.0.16. The problem is that when I am editing pages coded in JSF, the updates to the pages are not immediately apparant. The problem is that I am getting errors when I am calling pages. These errors are in fact "historical" meaning that I have fixed the code but I still get the errors. The pages update to the correct after some time but only if I amend something in page, forcing the servlet files to be regenerated. I hae tried deleting the cache under CATALINA/work/Catalina/mywebapp but this doesn't always seem to work.
    Is there anything I can do to ensure that the latest page is being called?
    Thanks,
    Tim

    restarting tomcat doesn't seem to work weirdly - and redeploying? well the pages are being edited directly in the web directory so am not deploying/redeploying. Is it a server config issue perhaps?

  • Data refresh problem - QaaWS and Tomcat cache

    Hi Experts,
    I have a problem with data refreshing in Xcelsius 2008 dashboard when I use QaaWS.
    System is: BO XI 3.1 on the Win2008 server.
    When data are changing in the database InfoView documents show it immediately, but into the Xcelsius dashboards new data not coming.
    In the dashboards I use auto refresh, and Refresh button too... It doesn't help.
    New data are appearing just after restarting of Tomcat.
    Maybe Tomcat is caching data...?
    Do somebody have similar issue? Could you suggest me something to do?
    Thx,
    János

    Hi Janos,
    Tomcat has cache which the default time is 60 seconds.
    You can change the cache time when you create QaaWS wsdl.
    If you do NOT want the cache, you can
    1. locate to: ${BOE Install Path}\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
    2. Open dsws.properties
    3. Find the property qaaws.cache_dpresult.optim= and set it to false.
    4. Re-start tomcat.
    Hope this can help!

  • Page navigation cache delete on back navigation

    Hi,
    Building a Universal WinRT app.
    Is there any way to delete a pages navigation cache when a user navigates backwards via the WP back button?
    e.g. page saves state when user follows link in that page and returns to it. However if a user navigates away from the page using the back button and then returns to it then no state is saved and it reloads
    Thanks!

    Hi,
    Please see this:
    NavigationCacheMode enumeration
    The NavigationCacheMode enumeration has these members.
    Member
    Value
    Description
    Disabled
    0
    The page is   never cached and a new instance of the page is created on each visit.
    Required
    1
    The page is   cached and the cached instance is reused for every visit regardless of the   cache size for the frame.
    Enabled
    2
    The page is   cached, but the cached instance is discarded when the size of the cache for   the frame is exceeded.
    As your description, you should set the Page’s  NavigationCacheMode to Disabled
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • IPdo photo cache delete problem

    I have a lot of images and they are all organized alphabetically and in numerous folders. I have over 40,000 synced photos.
    When I delete my iPod Photo Cache, it was 30GB, and resync, it jumbles all the images up and they aren't in their original order or folder.
    I keep reading that iTunes will rebuild the IPC but I am not haveing that outcome.
    Any ideas or hints? I'm on a PC syncing to a folder location on my hard drive.
    Thanks

    Wow, no one with this issue but me?

  • When is query cache deleted?

    Hello All,
    I searched this forum and SAP for notes but couldn't find exactly when query cache is deleted.
    For example, we know when new data is loaded to an infocube, but what about when new master data is loaded?  If a query still has the existing transaction data loaded, but new master data is loaded (and a query output is reading and attribute), should it NOT read cache?
    What are the hard and fast rules?
    Thank you so much!

    Queries check to see if new data has been loaded to a cube/DSO since teh data has been cached. If new data has been loaded, the old cached data for that query is deleted and the new execution of the query will read the data from the database.  A new master data load would not effect the last load date on a cube/DSO, so it would not cause the the cache to be deleted for a quary on the cube/ODS.  If you had set the Master Data InfoObject to be an InfoProvider and had just a master data query (no cube/ODS), the cached master data query results should get deleted.
    As a matter of practice, Master Data should be loaded before loads to the cubes/ODS are done.
    As mentioned you can delete OLAP cache from tran RSRCACHE.  There is also a batch program you can run to delete entries from OLAP cache.  You can specify specific query results to be deleted, and you can also use it to delete all cached results that are older than a specifiied number of days.

  • Does emptying cache delete games stats?

    This may sound like a stupid question but here goes: On Firefox I am no longer able to load the game Words With Friends on Facebook, but I can load it on Chrome with no problem. One of the trouble-shooting points was to empty the browser cache. I'm hesitant to do that. I have several online games I play which keeps track of my progress. If I empty the cache, will all those stats be deleted? I really would rather not start from levels 1 again.

    If you use extensions (Firefox/Tools > Add-ons > Extensions) that can block content (e.g. Adblock Plus, NoScript, Flash Block, Ghostery) then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Youtube videos gone blurry since clearing cache/deleting history on my ipad2?

    Earlier on one of my YouTube videos froze and couldn't get it to move at all, so decided to clear cache and delete history. This worked in that my videos started playing again fine. Trouble is, since this happened, all the videos are playing blurry unless i manually change resolution on screen. I have gone several years never having to manually change each video to watch for best picture and want it back as it was before. Any suggestions please? By the way, I use YouTube itself on safari, not as an app (do not like how it looks on the app). Also would there be a way to make 360p a default on safari without an account? 

    Do the videos start to play and quit? Do they not start at all?
    Close all apps and restart the iPad and then try YouTube or Netflix again.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    You can also try resetting/rebooting the iPad and see if that helps.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Even if your the internet is OK with other applications doesn't mean that there isn't an issue with the way that the iPad is connecting to NetFlix and YouTube. You can always try rebooting your router - unplug it for about 30 seconds and then plug it in again.

  • Help!  I accidentally deleted Automator

    I accidentally deleted the Automator application. I run a Mac 10.4.11 (just haven't needed to update...everything works fine as it is), and recently found I needed the Automator in order to record macros using the Word program on my Mac. How can I replace the Automator application itself?
    Thanks

    Hi there,
    Get Pacifist...
    http://www.charlessoft.com/
    then extract/install what you need from your Install Disc.
    Use Pacifist's search box & type in Automator.

  • Accidentally deleted Automator

    Hi
    I seem to have accidentally deleted the Automator application by deleting the icon from the application folder and then emptying trash. I tried searching for it in Spotlight to see if the application exists elsewhere on the HD but couldn't find it.
    How can I restore the application and put it back in the my Applications folder? I'm relatively new to Macs.
    Thanks

    How to Use Pacifist to Replace Deleted OS X Applications
    Download the shareware utility Pacifist from VersionTracker or MacUpdate. Use it to extract a fresh copy of the missing item(s) from the file archives on your OS X installation DVD. The file archives are in the /System/Installations/ folder (use Go to Folder option in the Go menu of the Finder.)
    Here are Four Basic ways to use Pacifist (courtesy of George Orville.)
    A. Drag a .pkg icon onto the Pacifist window .....proceed to step 7.
    B. Click on “Open Package ....” and navigate to package desired and click “Open” in the open/save window.....proceed to step 7.
    C. Insert Mac OS X installer CD and when it mounts, navigate to .... Menu->Go->Go to Folder.
    In the path field enter or paste ....
    /Volumes/disc name/System/Installation/Packages (where disc name is the name of the CD/DVD that you inserted.
    • Click on the "Go" button .....
    • Drag a .pkg to Pacifist..... proceed to step 7.
    The package you'll need will have to be discovered by trial and error, but for most applications you should start with the Essentials.pkg and/or Additional Essentials.pkg.
    D. Insert your Mac OS X install disk 1 .... and open Pacifist.
    1. In Pacifist, select "Open Mac OS X Install Packages" ... dialog may appear asking for disk 2, then disk 3 and finally disk 1 again.... {if DVD is not used)...If “Stop Loading” is selected...the procedure will stop!!!
    2a. When loading is complete, a new window appears, click the triangle to display contents of each package...Select item and proceed to step 7.
    2b. or click the “Find” icon in the Pacifist window and type the name of the software you need.
    3. In the list that comes back, click the top most entry for the item that you want. ..... that is the one for the English language.
    4. On the top of the Pacifist window, click “verify” .... you will probably be prompted for your password.
    5. Enter checks for.... “verify permissions” and “verify file contents.” and click “verify” ....enter password when prompted.... you will get back output which may look like this:
    20 files were scanned.
    20 of 20 files were present on the hard disk.
    0 of 20 files had file permissions that did not match those specified in the package.
    0 of 20 files had checksums that did not match those specified in the package.
    6. Click “close”. Go to step 7.
    Extract or Install........
    7. In the Toolbar (upper left), you now have the option to extract or install. Click a file in the lower list and those two icons will be enabled.
    8. If “Extract to...” is selected.... navigate to the location where the file will be placed, select “choose”, select “extract” in new dialog that appears,authenicate , if prompted, click “OK”.
    9. In the next dialog, click “Extract”.
    10. If “Install” is selected... dialog will appear with the location/path of the installed software. Click “Install”
    11. Type in your password, click “OK”
    • Pacifist will begin to extract files.
    12. In steps 8/10ß.... you also have the choice to “cancel”
    Notes.....
    • Pacifist may find that a file it is installing already exists on the hard disk. Pacifist will present you with an alert panel....
    Stop
    Leave original alone
    Update ..... Default selection
    Replace .... Replace option should only be used on full install packages

  • Tomcat cache setting

    hi all.
    am developing a application in jsp & java servlets. my query is i need to set cache for all jsp pages .. what should i do for this. is it possible to set cache setting on tomcat. or should i make the setting on jsp pages?
    i came to know that
    request.setHeader("Pragma", "no-cache");
    request.setHeader("Cache-Control", "no-cache");
    request.setDateHeader("Expires", 0);
    these are the settings for caching. but its not working.. could anyone help me out of this

    If you aren't using a framework like Spring or Struts (either of which will do it for you) you need each JSP to add the cache suppression headers. Usually my web projects use a custom tag library for the overall page structure, headers, footers, style sheet links etc. and put the cache suppression in the tag. But there are lots of other ways to avoid putting a scriptlet into each JSP, like using <@ include to pull in a common jsp fragment.

  • How to delete automator plugin in finder

    Hi!
    I made an automator script, which I saved as plugin for finder. Unfortunately the script does not what it should. Now I want to remove the plugin. But I don't know how.
    Helge

    They will be in
    /Users/~/Library/Workflows/Applications/Finder

  • Deleting automation in logic?

    is there a way to to this? it seems that even when you delete it its still there?

    No one else has this problem?
    You know...it be nice if there was a trouble shooting section in the thousands of manual pages. Were the Germans smart enough to include that in Logic 8 manuals or no?

  • Deleting Macintosh HD's Caches. Good or bad?

    Macintosh HD > Library > Caches, delete them
    Macintosh HD > System > Caches, delete them
    good or bad?

    Maybe not a good idea.
    Better to let your Mac do the maintenance for you.
    Mac OS X: About background maintenance tasks

Maybe you are looking for