Cannot delete reports, unless I close and open Eclipse/Tomcat

Please can someone help me.
I cannot delete reports. I have not worked out all the details yet but this is what I got so far...
First I thought it was a problem with my tomcat setup, I would deploy my WAR and run the app. After
viewing the report and closing the browser. I would not beable to delete the rpt file until I close Tomcat.
I have now got a similar problem within Eclipse. (as far as I can tell its the same problem but even worse)
If i create any report and design it or even a new blank report. And not do anything to it, just save it as a blank report. I then try delete the
report. Right click and then delete.
After a few seconds Eclipse brings up an error and says it cant delete the file, the reason it gives is
Problems encountered while deleting resources.
  Could not delete 'C:\WorkSpace\Project\WebContent\Report1.rpt'.
    Problems encountered while deleting files.
      Could not delete: C:\WorkSpace\Project\WebContent\Report1.rpt.
I have tried creating a fresh new project and only one report. And I still get the error.
If I try delete the whole project perminatly it also gives the same error. (But deletes the default crystal report)
I have to close Eclipse and then open it again before I can delete the rpt files properly.
I have not always had this problem. It used to work fine (dont ask what I have done since
cause I would not beable to tell, sorry)
Hopefully someone can help me, as this is driving me insane, and having to stop and start Tomcat every
time I want to deploy a new test version is not really an option.
Cheers
Darren

Hi Merry,
Thanks for getting back to me.
My reports within Eclipse seem to be behaving themselves now and dying gracefully without and hassles,
so I dont know what fixed that problem as I have not made any changes or done any updates. One of
those things I guess.
With regards to TOMCAT still having a handle on the reports, As far as I am aware I am putting the
report source in session
Below is my JSP that loads the report
I store report name in session via a servlet and set all the DB connection details in the servlet also.
imports....
try {
   String reportName = session.getAttribute("Report").toString();
   ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
   if (clientDoc == null) {
      clientDoc = new ReportClientDocument();
      // Open report
      clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
      // ****** BEGIN LOGON DATASOURCE SNIPPET **************** 
         //Call the process to set all the database detail retrieved from web.xml
         // Custom function to set the connection details
         ReportFunctions.setConnection(clientDoc);
      // ****** END LOGON DATASOURCE SNIPPET ****************           
      // Store the report document in session
      session.setAttribute(reportName, clientDoc);
   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
      // Create the CrystalReportViewer object
      CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
      //set the reportsource property of the viewer
      IReportSource reportSource = clientDoc.getReportSource();                    
      crystalReportPageViewer.setReportSource(reportSource);
      // set viewer attributes
      crystalReportPageViewer.setOwnPage(true);
      crystalReportPageViewer.setOwnForm(true);
      crystalReportPageViewer.setDisplayGroupTree(false);
      crystalReportPageViewer.setHasToggleGroupTreeButton(false);
      crystalReportPageViewer.setHasPrintButton(false);
      crystalReportPageViewer.setEnableDrillDown(false);
      // Process the report
      crystalReportPageViewer.processHttpRequest(request, response, application, null);
   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
   } catch (ReportSDKExceptionBase e) {
    out.println(e);
So far its very basic.
How best can I kill and clean up once the web page is closed. I have tried a few options but dont seem to
know the best way,
I tried "onbeforeunload" but I dont know if this is the best practice,
I have a session listener with sessionDestroyed but have not learnt how to envoke this correctly, or atleast when to correctly call it. And then I dont know how to clean out any loaded reports from here.
I have used 
request.getSession().invalidate();
at the end of my JSP but that destoys everything everytime a user does anything on the page, (selecting any of the buttons on the report)
I am still learning everyday, and so I appoligise for questions that I should really know, am being pushed into the deep end here so trying my best :).
Thanks again.
Cheers
Darren
Sorry for bumping this back the list, but I am at my wits end as how best to "clean out" the reports
once they have been closed or timed out.
Surely there must be a way to release all objects (be it a actaul rpt file or the classes12.jar) once the
reports have been viewed and closed.
Even if there is something I can load via another servlet that destroys anything that has to do
with the main website.
Thanks and again sorry for moving this back up the list. If i get no replies, ill assume this is impossible
and that the only way to upload a new version of a report is to shut the whole Tomcat service and
make the changes.
Cheers
Edited by: Darren Jackson on Dec 3, 2008 12:31 PM

Similar Messages

  • Mail applications is blank when I open it, then it closes and opens again by itself, keeping blank

    In my Ipad, when I open Mail application it is blank. It stays like this for a few seconds, then it closes and open again by itself.  Keeping all time blank.

    Have you tried to force quit the app. Double tap the home button. Scroll sideways if needed to bring the mail app preview up on the screen. Flick that preview up and off the screen to close the app. Tap on the home page preview to exit the mode. Then try your mail again.
    Other things people have needed to do, especially after an update is to go into the settings, mail contacts and calendars, delete their mail account (it only deletes it off the iPad not out of existence) then exit out, go back i and re-enter the info.

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • When I change the row heights in a spreadsheet, then save, close, and open it, the row heights are back to default. How can I prevent this?

    One of our reports has lots of text in some rows. I import the data, adjust the row width and ask the text to wrap, which automatically sets the row height appropriately. When I save, close, and open that spreadsheet, the width is still the same and Wrap is still selected, but the rows are only one line high, which means that the report is unreadable and a serious pain to make readable.
    I can save it as a PDF, but I'd rather be able to use the Numbers format or Excel and be confident that my recipients can read it.

    Hi k,
    I'm unable to reproduce the described behaviour.
    The document containing the table below has a combination of row heights set manually using teh stepper in the Table Inspector (both 0.76" labeled rows), set manually by dragging the row boundary between row reference tabs (labeled 1/13"), and set automatically by Numbers to fit the content of the remaining cells.
    Content in the rows with names beginning E, F, G or H wraps automatically to form two rows in the cell. The rest are forced into two lines using a carriage return character.
    All maiintained their row heights through two Saves and reopenings.
    Regards,
    Barry

  • Reg.Automatic posting period close and open

    Dear Experts
    We have to do Posting period close and open in MMPV every month, is there any way to do automatically as background job. Pls help me.
    Thanks in advance
    Rajakumar.K

    Hi,
    To open the MM period every month, you can schedule the batch job in background.
    Use transaction code SM36 and the program name for this transaction code is RMMMPERI.
    Use dynamic selection for the date, where u can give the date as a first day of next month and schedule the job for the last day of every month.
    It is working fine in my system
    I hope it will help.

  • Firefox will hang on a website then everything else will no longer load and forces me to close and open firefox to get it to work.

    As the question says I am having several issues with Firefox lately. I've tried disabling every addon, disabling JavaScript, running it in safe mode - no addons. Nothing seems to work.
    I'll be on pandora listening to music, I open a new tab and go to a site like facebook. If that page does not load or hangs, my browser will no longer allow me to go to any other site until I close and open the browser. (Of course closing the tab that caused the issue). This happens about 10+ times every day, and I've supported firefox for years but this issue just keeps getting worse. It started when I upgraded to FireFox 6.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    What version of flash player do you have installed? http://www.adobe.com/software/flash/about/

  • I am a Windows Vista User. I updated my iTunes Version 10.3. Then, when I re-opened my iTunes, all files were gone! Good thing I consolidated the files and just imported the files again. But, this happens every time I close and open my iTunes. Help?

    I am a Windows Vista User. I updated my iTunes Version 10.3. Then, when I re-opened my iTunes, all files were gone! Good thing I consolidated the files and just imported the files again. But, this happens every time I close and open my iTunes. Help?

    In iTunes 11 uncheck the preferences setting in in the iTunes Preferences panel "Advanced > Copy Files to iTunes Media folder when adding to Library"

  • I cannot delete mail from my inbox and get a message saying (msg) could not be moved to the mailbox trash-POP account".

    I suddenly cannot delete mail from my inbox and get a message saying " (msg) could not be moved to the mailbox trash-POP account".  It does not matter if I am trying to delete a single message or mulitiple messages.  Can anyone help?

    If you're running Leopard, as your profile says, then you need to post your question in that forum, not the Snow Leopard forums. So if you're really running Snow Leopard, you need to update your profile to show that, as well as give more details about what kind of mail accounts you have, and who your email provider is.

  • Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

  • I want to use Control-W and Control-T to close and open tabs in OS X

    On Windows, you can use Ctrl-W and Ctrl-T to close and open tabs. On OS X, you have to use Cmd-W and Cmd-T instead (this bothers me because it is asymmetric with using Ctrl-Tab and Shift-Ctrl-Tab to navigate between tabs). Ctrl-W and Ctrl-T don't seem to do anything by default, so it would be nice if both Cmd or Ctrl could be used as a modifier for closing and opening tabs. Is there a way to accomplish this?
    I tried using the System Preferences > Keyboard > Keyboard Shortcuts tab to set Ctrl-W and Ctrl-T to operate the Close Tab and New Tab menu options, but, this does not work; when I press those key combinations, the File menu briefly flashes, but nothing else seems to happen.
    Thanks in advance for your help!

    Try this addon: keyconfig
    http://forums.mozillazine.org/viewtopic.php?t=72994

  • Illustrator extension persistence between close and open again

    I'm creating a extension in eclipse that redirect the panel to one web where I login and i've the possibility to login and remember the user.
    All works fine but if I close illustrator and open again, I think that it doesn't save this information and I must login again.
    I'm using windows 8 and chrome as default browser.
    It's something about cookies configuration?. In chrone are activated.
    How can I activate persistence of the variables from my extension between close and open illustrator? It is a web app.
    Best regards,
      Couso

    Hi,
    CEP (which contains CEF for HTML5 extensibility support) only supports session cookies at this time.
    Best regards,
    Hallgrimur

  • My tabs are NOT restored after I reopen close and open firefox. I have tried all the suggested decisions- didn't work.

    My tabs are NOT restored after I reopen close and open firefox. I have tried the default page - on it I don't have "Restore Previous Session" button. I tried with the history menu - the "Restore Previous Session" option is not even available, like I never had previous session. I have tried to put my settings to always restore the tabs from the previous time- in fact, this option is on "Show my windows and tabs from last time" for a very long time now. Still don't work. Please, give me ideas, or even set up some time to chat live. Thank you all in advance.

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • [Solved] Session 7 closes and open 8 and in 7 shows a weird message.

    Hi people, look at my problem :
    I was using my arch listening music when X closes and open another X in 8 and when I try go back to 7 with Ctrl+Alt+7 , I see this weird message or screen:
    What can do it??
    Is the second time what it happen. (
    Obs: I use Rhythmbox to music and pidgin to messages and gnome 2.20.3
    MEMORY PROBLEM
    Last edited by solanoalves (2008-02-06 03:32:20)

    I bought a new processor and motherboard, here in Brazil, how we are third world, I chosen an Athlon X2 4200+ and Abit AN52 then I will buy a DDR2 instead of replace the broken memory DDR1. I believe that solve now.

  • When I remove a button, it reappears when I close and open firefox again, how do I fix this?

    For example the "share" button, if I remove it by customising Firefox, it is there again when I close and open Firefox.

    The file that stores details of customizations may be corrupt. For details on how to fix that see https://support.mozilla.com/kb/Toolbar+keeps+resetting

  • PB freezes when idle, need to close and open display to un-freeze

    My PB seems to go to sleep fine when it's been idle for awhile and I've left the display open but when I go to use it, it seems to be frozen. The display comes back on and the curser moves but nothing happens. If I close the lid and re-open it, it will do everything I asked it to while frozen (ie, if I clicked on a window it will go to it or if I clicked on a menu, it will open it). It seems to be getting worse now though. The first time I close and open the lid after a freeze-up, the screen goes black and you can see the curser but nothing else. It will work again fine on the second close and open cycle. All this started happening when I got it back after having the HD replaced. I have done the ctrlcommand+PR trick. Nothing changed. Anyone have any answers?

    Is the Home button physically broken? If so, you can use the multitasking gestures to get to the Home screen (the four/five finger pinch).
    See Settings > General > Multitasking Gestures to turn ON.

Maybe you are looking for

  • Purchased music from multiple itunes accounts on the same computer

    I mistakenly opened up two itune accounts and have purchased music using both accounts. The problem is that itunes won't let me download my purchased music from one of the accounts to my ipod. It will download all of the music from account "a" but no

  • Missing fonts in Mail

    My Mail only shows seven fonts, out of the 176 installed in my iMac. Can anyone tell me what I am doing wrong or is this normal?

  • I AM WORKING ON A FREELANCE JOB & I CAN'T OPEN THE CS5 IN INDESIGN FILE:

    I AM WORKING ON A FREELANCE JOB & I CAN'T OPEN THE INDESIGN FILE IN CS5  BECAUSE OF THESE MISSING PLUGINGS? DOES ANYONE KNOW? SharedContent.IndesignPlugin FormField.IndesignPlugin XML.InDesignPlugin GenericPageItem.IndesignPlugin Document.Frame.Indes

  • Blue Ray discs supported?

    On my MacPro I have an OPTIARC DVD RW AD-7170A burner. Can I burn Blue Ray discs with it? Or there must be a particular burner for Blue Ray discs? Tnx

  • Multiple people in one card

    Hi, I'm trying to figure out the best way to manage multiple related people, e.g. a husband, wife, and kids, in my Address Book. Right now I stick them in one card, with fields like FirstName: "Joe & Mary", LastName: "Johnson", and multiple email add