• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat Crisis

 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope I just didn't do what I think I did. So I have all my Beans and jsp pages in a directory calls MyApps. So, for some reason, when I try to access the MyApps directory via a URL, it's not showing up. So I go to the Tomcat Manager, see that it is there, and try again. Nothing. So I click on Remove, and I'll just load it up again. And yes, you many be saying "I'm glad I'm not this guy" right now, because all my jsp pages and Beans are gone from my local machine?
Is there any recovery mechanism? Anything...at all?
If not, there will be some long nights ahead. F*#$@$$#@$#K!!!
 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind. I just went out to buy a pack of cigarettes and I tried to tell myself it's just a couple of weeks of work and it's all still in my head. Yeah, way to go. Now I'm going to smoke all my cigarettes while I dig a hole to bury myself in so I don't have to face the embarrasment of being a developer who did not back up his work.
Lesson learned.
Over and out.
[ December 05, 2003: Message edited by: Winston Smith ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't give up yet; if it's a Windows machine, Norton Undelete will probably let you pull those files right back.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65516
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh dear. Barring the use of any undelete utilities (e.g. Norton if you are on Windows), if the files have been deleted, Tomcat does not make any kind of backup that I know of...
My advice for a happier future:
1) Never develop in your deployment location. Develop in a separate area, and use Ant to control your build and copy the appropriate files to the deployment area.
2) Keep all your sources in CVS (or other source control). If you are using OS X or other unix this is easy. There are other options for Windows.
3) Quit smoking. I watched my mom die slowly of emphysema. Not pretty.
hth,
bear
[ December 05, 2003: Message edited by: Bear Bibeault ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure if the 'remove' command also cleans out the working directory...

but if you do have it still, you can salvage the generated servlet code out of there. Depending on how much you use model-1 development, these files might be able to save your bacon.
 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hahaha, you know the only reason I wasn't using CVS is because we are in the initial stages of development and no one else is needing my files. I tell myself I'll implement CVS tomorrow, and of course, this leads to tomorrow...and tomorrow...and so on. Anyhow, I'm not sure if Tomcat totally "wipes" the files from the FAT as well, but I've run two recovery programs and neither picked up the files.
So, I suppose venting eases the pain somewhat. And now ladies and gentlemen, watch Winston Smith as he timidly walks into his supervisor's office to discuss this dark day in history.
She'll speak soothingly, mentioning the fact that, in the next few months, the government is sinking that aircraft carrier of the coast nearby to create an artificial reef. I'll wonder what this has to do with anything.
She'll speak assuringly, mentioning the fact that I will be on it.

auf wiedersehen (I may be fleeing the country!)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!