Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete web modules from virtual server in glass fish 3.1.2

Tags:

glassfish-3

I developed a web service. When i want to publish it on the server, then i get the following error

cannot Deploy TemperatureConverterServiceClientEAR
Deployment Error for module: TemperatureConverterServiceClientEAR: Error occurred
during  deployment: Exception while loading the app : java.lang.Exception: WEB0113:
Virtual server [server] already has a web module 
[AndroidBackendAuthentication.war] loaded at [/AndroidBackendAuthentication]; 
therefore web module 
[TemperatureConverterServiceClientEAR#AndroidBackendAuthentication.war] cannot be 
loaded at this context path on this virtual server. . Please see server.log for 
more details

I went to directory C:\glassfish3\glassfish\domains\domain1\eclipseApps and delete all the files. I also went to enter image description here

Then i click on the server. In the default Web module option i have following entries

enter image description here

How can i delete these modules from here. Whenever i tried to deploy webservice i get this message. How can i get rid of this message? I also delete the deployed module from the Application option after which this default Web module option become empty. But then if i try to deploy any webservice , i get the error. Please help

Thank you.

like image 810
Basit Avatar asked Dec 12 '22 00:12

Basit


1 Answers

you shold undeploy the old web moudle

use the flow command to do this:

./bin/asadmin --port $port undeploy $app

$port means the "glassfish admin port". when you use start-domain you will see it

$app means the name of the old moudle you want to undeploy, you can use ./bin/asadmin --port $port list-applications commands to see all the web moudles had been deployed to this domain

like image 160
Lazy Avatar answered Jan 12 '23 22:01

Lazy