Help undeploying an incorrectly deployed application

Hi,

I deployed a J2EE application to my Application Server PE 8.2 from Net Beans IDE.

Even tough all seemed to be ok, after viewing the server log I found out that the deployment didn't complete successfully because of a timeout error.

Since then, after loggin into the Admin Console, I get the following exception:

A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught. The message from the exception: "Unable to get View for ViewDescriptor 'enterpriseApplications'"

The root cause is

"com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered"

error when I use Admin Console .

I'd need some help on how to undeploy the failing application, as I've been unable to do it using either asadmin or deploytool (I get the error "Component is not registered").

Thanks in advance

Message was edited by:

Epicuro

Message was edited by:

Epicuro

[987 byte] By [Epicuro] at [2007-11-26 8:33:51]
# 1

Seems your appserver is somehow got into an inconsistent state.

1. Can you reproduce this problem consistently? If so, and you could provide your application, we would like to take a look at this to see where we didn't proper clean up after a failed deployment.

2. I don't know if there is better way to fix this. But you could try the following manual clean up with caution:

a. shutdown your server

b. go to domains/domain1/config directory and make a backup copy of domain.xml in case you need to rollback.

domain.xml is the registry file where all the applications get registered, I suspect the registry file w.r.t this application is corrupted.

c. edit domain.xml and remove any remaining entries for this failing application, such as j2ee-application and application-ref element.

d. restart your server and try again

hongzhang at 2007-7-6 22:00:14 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Thank you very much for your answer. At the end, I managed to undeploy the application using a plain asadmin undeploy (I do not know why it did not work two days ago...).

However, I posted the same message in the "Sun Java System Application Server - System Administration" forum, providing more info about the error.

Thanks again

Epicuro at 2007-7-6 22:00:14 > top of Java-index,Application & Integration Servers,Application Servers...