Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Release Notes

- Previous: Starting Application Server with additional JMX Agent is not supported. (ID 6200011)
- Next: FrameworkError exception after deploying a WAR and JAR to PE server via the AMX API in the Application Server GUI. (ID 6201462)

### Cannot redeploy or undeploy the web module that is the default web module of any virtual server. (ID 6204799)

If the web module is specified as the default web module of a virtual server, and you try to redeploy or undeploy it, you will get the following error:

    Trying to undeploy application from domain failed; Virtual Servers [server]
    have <WEB-MODULE-NAME\> as default web module. Please remove the default web
    module references first. ; requested operation cannot be completed Virtual
    Servers [server] have <WEB-MODULE-NAME\> as default web module. Please
    remove the default web module references first.

At this point, `domain.xml` is in an error state, and the Admin Console may not be able to display the table that shows the deployed web applications. The condition will persist even if the domain is stopped and started again.

#### Solution

Change the default web module.

#### To change the default web module

1. Using the Admin Console, go to the virtual server page, and change the default web module to empty or specify another web module.

2. Using the CLI, undeploy the web module by specifying `domain` as the target.

       # asadmin undeploy --target domain <WEB-MODULE-NAME\>

   The Admin Console should be fine now, and the web module can be deployed again, if desired.

- Previous: Starting Application Server with additional JMX Agent is not supported. (ID 6200011)
- Next: FrameworkError exception after deploying a WAR and JAR to PE server via the AMX API in the Application Server GUI. (ID 6201462)

- © 2010, Oracle Corporation and/or its affiliates