I undeployed my APP by using the web gui of Glassfish. But if I press undeploy for my actual APP nothing happend. In my Log File a new error occurs: Application not registered (severe). How can I undeploy my APP now correctly ?
问题:
回答1:
I found a simple answer:
remove all references to your app from domain.xml (in glassfish/glassfish/domains/yourDomain/config/) (see also unable to redeploy web application on glassfish3)
remove directory glassfish/glassfish/domains/yourDomain/applications/yourAPP
- remove all files in glassfish/glassfish/domains/yourDomain/generated/*
回答2:
I had the same error, tried what mr.wolle suggested but on step 1 I couldn't really find the web module as suggested in the other post , not sure if it's because I'm using glassfish 4 or because I uploaded my app to "/" in the context-root
So I did the following:
searched for my app name using ctrl + w (a bit troublesome on windows since it just suggesting to close the window so did it on my mac).
deleted the first result which is a single line with your app name, mine is "login":
<application-ref ref="login" virtual-servers="server"></application-ref>
deleted all of the following lines which is related to my "login" app:
<application context-root="/" object-type="user" name="login" location="${com.sun.aas.instanceRootURI}/applications/login/"> <property name="archiveType" value="war"></property> <property name="implicitCdiEnabled" value="true"></property> <property name="preserveAppScopedResources" value="false"></property> <property name="appLocation" value="${com.sun.aas.instanceRootURI}/applications/__internal/login/login7312386559419533277.war"></property> <property name="defaultAppName" value="login7312386559419533277"></property> <module name="login"> <engine sniffer="security"></engine> <engine sniffer="web"></engine> </module> </application>
tried to undeploy (not sure if that had any effect)
reset the server - done, the app *.war file was deleted (again not sure if it was due to stage 4 or not so just try it).