Uninstall or Undeploy an application in Red5 webapps/ directory

Posted on 2010-01-08
Last Modified: 2013-12-02
I have created a sample.war file which I load onto the Red5 server in /opt/red5/webapps directory. After waiting for a minute (I've set the time as 60000) the sample.war file is deleted and instead I have a sample/ directory, which I need.

Now the challenge is, if I modify my sample.war file and put it again in /opt/red5/webapps directory, then red5 gives the message "Application sample already installed, please un-install before attempting another install"

If I delete the /opt/red5/webapps/sample directory, then the sample.war is extracted, but my flex front-end still refers to the old installation and follows the old methods. If I restart red5 then the issue is resolved and all is well.

I need to understand how to undeploy an application in Red5, or maybe "redeploy". I'm using Apache Ant and standalone version of Red5 server version 0.8. I'm not using an IDE such as Eclipse. Red5 v0.8 standalone probably uses Jetty.
Question by:technotablet
    LVL 86

    Expert Comment

    I don't know the software you're using, so the best i can suggest is to automate what you've found to work with an Ant task. That will work

    Author Comment

    I am using Linux (Ubuntu 8.04 server). The java server is Red5 ( and it uses Jetty ( as the web server. It is possible to use Tomcat as the backend instead of jetty, but Red5 by default uses Jetty and I don't want to disturb that. Red5 is used to interact with Adobe Flex.

    Through the Ant task I've managed to move the .war file to the red5/webapps/ directory and delete the existing directory of the same application. But I don't want to shutdown Red5 and start it again as it will lead to the application not being available for few moments till the server restarts.
    LVL 86

    Expert Comment

    As i said i don't know Red5, but any smart container should be able to cope with automatic class reloading

    Accepted Solution

    I have not been able to successfully do it. The only method is deploying the .war file on the server. Red5 takes between 60 seconds to 180 seconds to reload the .war file (it is configurable - by default it is 10 minutes - 600000 secs-, but I reduced it to 60000 secs), but still it is not considered "redeployed". I have to shut down red5 through, wait for all the connections to get terminated (netstat -napt), and then start red5 through Not an automated solution though.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    java JDK Download 7 49
    JVM encoding. How to change encoding. 27 54
    strCount chalenge 3 35
    create a gui in perl 3 21
    This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now