aspose file tools*
The moose likes Tomcat and the fly likes Undeployed application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Undeployed application" Watch "Undeployed application" New topic
Author

Undeployed application

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
I was wondrin if there is a way that I can recover my application directory when I clicked the undeploy link.

I was surprised when I saw the directory was gone, I have a backup but its a week ago... I had many changes.
Hope somebdy can explain where its gone when undeployed, thanks.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No, unfortunately, it's gone.

Before starting over, you might want to consider exploring a revision control system like CVS or subversion.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ram Dixit
Greenhorn

Joined: Feb 21, 2008
Posts: 6
Hi Everybody :p

I have by mistake undeployed my web application from Apache Tomcat 5.5.
Now application folder has been deleted form server.

Is there any way to recover my application as I have app folder which is of 10 days before. I have lost all my 1o days effort.
Please someone help me.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Please read what Ben wrote - it can not be done.

Unless you have a Mac with Leopard OS - and the Time Machine enabled.


Regards, Rene Larsen
Dropbox Invite
Ram Dixit
Greenhorn

Joined: Feb 21, 2008
Posts: 6
Thanks Rene,
But how could it possible.
If someone has by mistake undeployed a web appl.,
Then we java programmers don't have any way to recover it,
Quite strange,
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Originally posted by Ram Dixit:
Thanks Rene,
But how could it possible.
If someone has by mistake undeployed a web appl.,
Then we java programmers don't have any way to recover it,
Quite strange,


I hope that a programmer don't program directly to a Application Servers webapp folder.

A developer/web-programmer have an IDE e.g. Eclipse, from where he/she build a web application (WAR, EAR, etc.), and when this 'package' is ready for deploy, it will be deployed to the Application Server of choice.
If somthing went wrong in the deploy or the application doesn't work, you can fix it and then redeploy.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42634
    
  65
On a production machine, the manager web app should be disabled. On a developer machine, there shouldn't be anything that can't be recreated from version control.

As Ben said, if you're not using a version control system for source code, you're making a big mistake. Using any kind of backup (which is not optional if what you do has any value at all) also helps.


Ping & DNS - my free Android networking tools app
Ram Dixit
Greenhorn

Joined: Feb 21, 2008
Posts: 6
Thank you,
Rene and Ulf Dittmer,
I will show your posts to my team's PM and TL.
May be,they will now take precaution and will use Version Control System.
But the point is that I am not able to recover my lost files,
means a lot of rework.

That's why I posetd this topic on the forum.
It's really a setback for me.
 
 
subject: Undeployed application