如何从玻璃鱼3.1.2中的虚拟服务器中删除Web模块

时间:2012-07-04 12:30:16

标签: glassfish-3

我开发了一个Web服务。当我想在服务器上发布它时,我得到以下错误

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

我转到目录C:\glassfish3\glassfish\domains\domain1\eclipseApps并删除所有文件。我也去了 enter image description here

然后我点击服务器。在default Web module选项中,我有以下条目

enter image description here

如何从这里删除这些模块。每当我尝试部署webservice时,我都会收到此消息。我怎么能摆脱这个消息?我还从Application选项中删除已部署的模块,之后此default Web module选项变为空。但是,如果我尝试部署任何Web服务,我会收到错误。请帮忙

谢谢。

2 个答案:

答案 0 :(得分:4)

我有同样的问题,我发现存在: 进入server/glass fish server (node)/application。那里你有app阻止了你的工作。只需删除它,并准备好:))

答案 1 :(得分:4)

你要取消部署旧的网络模块

使用flow命令执行此操作:

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

$port表示“glassfish管理端口”。当你使用start-domain时,你会看到它

$app表示要取消部署的旧模块的名称,您可以使用./bin/asadmin --port $port list-applications命令查看已部署到此域的所有Web模块