The Java EE 6 Tutorial

Undeploying Web Modules

You can undeploy web modules and other types of enterprise applications by using either NetBeans IDE or the Ant tool.

ProcedureTo Undeploy the hello1 Web Module Using NetBeans IDE

  1. Ensure that the GlassFish Server is running.

  2. In the Services window, expand the Servers node, GlassFish Server instance, and the Applications node.

  3. Right-click the hello1 module and choose Undeploy.

  4. To delete the class files and other build artifacts, right-click the project and choose Clean.

ProcedureTo Undeploy the hello1 Web Module Using Ant

  1. In a terminal window, go to:


    tut-install/examples/web/hello1/
    
  2. Type the following command:


    ant undeploy
    
  3. To delete the class files and other build artifacts, type the following command:


    ant clean