Thread to shut the tomcat and restart

THIS IS WHAT I AM TRYING TO DO BUT AFTER STARTING THE TOMCAT MY THREAD IS NOT WAKING UP
HELP PLEASE
class Restarts extends Thread{
     String fileStart="",fileRestart="";     
     String line,line1;
     public Restarts(String start1, String restart1){
          fileStart=start1;
          fileRestart=restart1;
          start();
     public void run(){
          try{
               Process p = Runtime.getRuntime().exec(fileStart);
               BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
               while ((line = input.readLine()) != null) {
               System.out.println(line);
               input.close();     
               sleep(20000);
               Process p1 = Runtime.getRuntime().exec(fileRestart);
               BufferedReader input1 = new BufferedReader(new InputStreamReader(p1.getInputStream()));
               while ((line1 = input1.readLine()) != null) {
               System.out.println(line1);
               input1.close();
          catch(Exception e){
               e.printStackTrace();
class Restart
     public static void main(String a[]){
          Restarts start = new Restarts("startup.bat","shutdown.bat");
}

Quit Mail. Force quit if necessary.
Back up all data. That means you know you can restore the Mail database, no matter what happens.
Triple-click the line below on this page to select it:
~/Library/Mail/V2/MailData/Envelope Index
Copy the selected text to the Clipboard (command-C). In the Finder, select
Go ▹ Go to Folder
from the menu bar. Paste into the box that opens (command-V), then press return.
A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

Similar Messages

  • I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    Connect to iTunes and try to reset it from there.

  • IBooks updated red 1 indicator by the word purchased. But it doesn't do anything. I've shut down the phone and restarted to no avail. Any suggestions?

    iBooks updated to 3.2 on iPhone 5. Now I have a red 1 indicator by the word purchased. But it doesn't do anything. I've shut down the phone and restarted to no avail. Any suggestions?

    I am having a similar problem. Running Xp.
    Latest revision of firefox.
    After using firefox for a while if I exit, parent.lock is locked and i have to reboot to reload firefox.
    I have killed all firefox applications from task manager (usually there are none). and I have tried 3 different "file unlock" programs including unlocker to no avail.
    I also recently installed a program that shows -all- open files, and parent.lock is not listed, and thus not closable/unlockable from there.

  • "Firefox doesnot respond" is not the same as "crashed" When it does not respond the whole system hangs , qonsequently it is impossible to send a krasch report. The only wayto get the system working is to shut it down and restart it

    During browsing for 3-6 pages F-fox hangs the system with a error message "Firefox doesnot respond" and dimming the screen.
    Nothing else but switch of the computer and restart it.
    After browsing for 3-6 pages it is the sam procedure.
    No possibility to send a crasch report

    Ask symantec why their prodcut won't allow you to run
    other software and is freezing when you try to add
    new rules?
    Is your Norton subscription up to date?
    I don't have Norton on my PC. I am of no further help
    to you in configuring Norton.
    You can use MSCONFIG to shut Norton off temporarily.
    Using MSCONFIG to troubleshoot conflicts in
    Windows
    wouldn't that make me more vulnerable to viruses and kind of make my computer messed up?

  • When I close the lid on my retina MacBook Pro with Thunderbolt and it goes to sleep, I cannot wake it without shutting it down and restarting it.  Called Apple tech and they did not have a solution.  Any ideas?

    When I close the lid on my retina MacBook Pro with Thunderbolt and it goes to sleep, I cannot wake it without shutting it down and restarting it.  Called Apple tech and they did not have a solution.  Any ideas?

    Try these places:
    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    Mac OS X Help 
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    Mac OS X & Mountain Lion Community
    https://discussions.apple.com/community/mac_os
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    Recovery Mode
    http://support.apple.com/kb/HT4718 

  • I am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to

    i am john and I need help downloading a progmmme yesterday and wanted to finish downloading open it and I am not told me that the program was shut down unexpectedly and restart ponia not opened and went back to download it and not opened my back probe to turn off the computer and there was no case

    i am john and I need your help yesterday bought a program called DJAY when I finish the download and got an error opened and I saw him there was no case to install and thank you for your help anyway

  • My mba won't restart.  it freezes up.  i would have to push the on/off button to shut it down and restart up. please help

    my macbook air works fine but i can't restart it. it freezes up and displays the thinking circle.  after i push the on/off button it shuts down fine and restarts fine.  please help

    Ops I replied to myself in error.....
    Tom:
    I performed the steps indicated but this morning when I clicked the mouse and hit the space key and clicked the track pad again as before nothing happens.
    I hold the power button for a few seconds and the screen fills as if the computer was normally awakened but it is locked up.
    Then I have to shut it down with the power button  and then power it up as a reboot.
    Not good...SMC reset didn't work....Throughout the day yesterday I put the computer to sleep and woke it up normally.  It seems to be a overnight problem.
    Am I going to have to shut it down everynight?
    Jim

  • I haven't updated my iPod in forever so when the new update came out I tried to update it but it kept freezing my computer so I had to manually shut it off and restart it. I have windows btw. Someone please help me !!!!!!!!

    I haven't updated my iPod in forever so when the new update came out I tried to update it but it kept freezing my computer so I had to manually shut it off and restart it. I have windows btw. Someone please help me !!!!!!!!

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

  • When syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.

    when syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.  Ipad does not show up in itunes even though cable plugged in.  Have shut down and restarted Windows 7 computer.

    I had done all of that to no avail.  I did call Apple Tech Support and after he suggested I try a USB port in the rear of the Win 7 computer, things starting working again.  I had tried switching the USB port at the front of the machine but that had not helped.  Everything is good to go again.  thanks for  your reply

  • HT200047 when watching a movie sub titles keep popping up and wont go away unless I stop the movie and restart it.  I have sub titles and closed caption off but it still comes up.

    dont know what to do. When watching a movie, closed caption comes up and it wont go away unless I stop the movie and restart it.  Closed caption and sub titles are off but still comes up.  I restored my apple tv to factory settings to see if that would stop it, but it didn't work still comes up. What can I do?

    Hi,
    I suggest you try the steps in this thread for test:
    Disable Suggested Sites does not work.
    http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/disable-suggested-sites-does-not-work/4ba064b1-1c6e-43f1-939e-2db1d335b2ef
    Regards,
    Vincent Wang
    TechNet Community Support

  • I want to install xp on my MacBook Pro with i5 processor, but that creates the partition and restart the computer just stays in the following message: The Setup is inspecting your hardware configuration of your computer, someone can help me with this ?

    I want to install xp on my MacBook Pro with i5 processor, but that creates the partition and restart the computer just stays in the following message: The Setup is inspecting your hardware configuration of your computer, someone can help me with this ?

    The answer has not changed since your last post here https://discussions.apple.com/thread/3230576?tstart=0
    There are no XP or Vista drivers for the new Apple computer hardware. Apple stopped XP and Vista support. http://support.apple.com/kb/HT4410.

  • TS1591 i just got an ihome system and had trouble with it connecting to my iPhone.  I finally got it to work and now my itunes doesn't recognize my phone.  My software is up to date on both my Mac and my iPhone and I have shut everything down and restarte

    i just got an ihome system and had trouble with it connecting to my iPhone.  I finally got it to work and now my itunes doesn't recognize my phone.  My software is up to date on both my Mac and my iPhone and I have shut everything down and restarted.  Does anyone have any other suggestions?

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • I have an ipad 2, verizon jet Pak router, canon pixma mg3220 wireless printer. All were working until yesterday. Now I get  no air printer found message. Have shut down everything and restarted. No change

    I have an ipad 2, verizon jet Pak router ang canon pixma mg3220 wireless printer. All were working until yesterday. Now, I am getting no air printer message. Have shut everything down and restarted. It did not work.

    See requirements for AirPrint (http://support.apple.com/kb/ht4356):
    If your printer supports AirPrint but does not work then:
    Your printer might need a firmware update
    Your printer must be on the same WiFi network
    Your router must support Bonjour (Zero-configuration networking).
    For troubleshooting:
    Turn Off iPad, WiFi router (remove from power), and Printer (remove from power).
    Turn on WiFi router
    Wait 30 seconds
    Turn on printer
    Wait 30 seconds
    Turn on iPad
    Try to print.

  • The monitor on my macbook is turned off while I was working, I could not in any way to do it again, I could see through the screen off the open pages I was working on, I had to turn off the machine and restart it. and it runs. O.O?

    The monitor on my macbook is turned off while I was working, I could not in any way to do it again, I could see through the screen off the open pages I was working on, I had to turn off the machine and restart it. and it runs. WHAT 'success? The report says the console like this: (at approximately 12.30)
    No receipt for 'com.apple.pkg.JamPackWorldMusicInstruments' found at '/'.
    03/05/11 12:08:30 [0x0-0x1e01e]. Com.apple.garageband [239] No receipt for 'com.apple.pkg.JamPackWorldMusicInstruments' found at '/'.
    03/05/11 12:08:30 [0x0-0x1e01e]. Com.apple.garageband [239] No receipt for 'com.apple.pkg.JamPackOneInstruments' found at '/'.
    03/05/11 12:08:30 [0x0-0x1e01e]. Com.apple.garageband [239] No receipt for 'com.apple.pkg.JamPackOrchestralInstruments' found at '/'.
    03/05/11 12:08:30 [0x0-0x1e01e]. Com.apple.garageband [239] No receipt for 'com.apple.pkg.JamPackRhythmSectionInstruments' found at '/'.
    03/05/11 12:08:30 [0x0-0x1e01e]. Com.apple.garageband [239] No receipt for 'com.apple.pkg.JamPackRemixToolsInstruments' found at '/'.
    03/05/11 12:08:32 MIDIServer [255] MIDIServer [255] starting; arch = i386
    03/05/11 12:34:35 com.apple.launchd [1] *** launchd [1] has started up. ***
    03/05/11 12:35:06 com.apple.launchd.peruser.501 [86] (com.apple.ReportCrash) Falling back to default Mach exception handlers. Could not find: com.apple.ReportCrash.Self
    03/05/11 12:35:09 com.apple.launchd.peruser.501 [86] (com.apple.Kerberos.renew.plist [110]) Exited with exit code: 1
    03/05/11 12:35:25 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:25 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:26 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:26 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:32 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:33 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:35:33 [0x0-0xd00d]. Com.skype.skype [127] WirelessAttach: IOServiceOpen error: e00002c7
    03/05/11 12:36:06 com.apple.WindowServer [64] Tue May 3 12:36:06 MacBook-Pro-17-of-Admin.local WindowServer [64] <error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint () to catch errors logged as They Are.
    03/05/11 12:43:39 helpd [160] Response failed Because Listener can not find a port for this QueryID.
    03/05/11 12:43:43 helpd [160] Response failed Because Listener can not find a port for this QueryID.
    03/05/11 12:43:43 helpd [160] Response failed Because Listener can not find a port for this QueryID.

    Do you have backups of all the data on the startup drive? If not, do nothing else until you've backed up that data, if you still can.

  • How can I restore addons if I told the computer to permantly disable them in safe mode then apply the changes and restart

    I got stuck with the Yahoo tab that opens Yahoo every time you open a new tab . I looked online for a way to get rid of it and in the process told the computer to restart Firefox in safe mode. Here I chose to permanently disable add on s and then I clicked the apply and restart button. Since then I can't download the new version of flash because Firefox sees it as and add on. Any Idea on how I can get this to work with out having the Yahoo tab back?

    See:
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    You can enable individual extensions on the Tools > Add-ons > Extensions page.

Maybe you are looking for

  • When I connect to itunes with my iphone I keep getting the error -42110 but I am able to get on itunes and download a cd but it will not sync. please help

    When I connect to itunes with my iphone I keep getting the error -42110 but I am able to get on itunes and download a cd but it will not sync. please help

  • Any hope for a liquified macbook?

    Water was spilled on my Macbook last night. Once it had a few hours to dry, I powered it on. Sadly, when I got to the main log-in screen, everything was frozen... from the mouse to the keyboard. Any hope for this Macbook?

  • Adove Reader 8.1.2

    I downloaded Adobe Reader 8.1.2 and when the download was finished is said "Setup was completed successfully." When I try to open Adobe Reader 8.1.2 I get a message that says "Adobe reader 8.1.2 has encountered a problem and needs to close." I am usi

  • Cannot open PDFs inserted as objects into Excel.

    Two-part question.  I know this has been addressed before, but the solutions are not working for me. I have Adobe Acrobat 9 Pro and Adobe Reader XI.  When inserting a PDF document as an object into Excel, it will not allow me to insert the icon/objec

  • Binary search in java

    Hi, I keep getting a java.lang.ClassCastException with these two classes when I try to perform a binary search. Any tips? Phonebook class: ============= import java.util.*; public class Phonebook private static long comparisons = 0; private static lo