2012-07-04 118 views
3

我開發了一個Web服務。當我想發佈在服務器上,然後我得到以下錯誤如何從玻璃魚的虛擬服務器中刪除Web模塊3.1.2

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我收到此消息。我如何擺脫這個信息?我也從應用程序選項中刪除部署的模塊,之後default Web module選項變空。但是,如果我嘗試部署任何web服務,我得到的錯誤。請幫忙

謝謝。

回答

1

我遇到了同樣的問題。我能夠通過重新啓動glassfish來修復它。轉到服務 - >服務器。右鍵點擊glassfish並重新啓動。希望有所幫助。

4

我有同樣的問題,我發現存在: 進入server/glass fish server (node)/application。那裏你有應用程序阻止你的工作。只需把它刪掉,並準備好:)

+2

能否請您改寫舊moudle的名字你答案使其更具可讀性?嘗試使用反引號字符來顯示具有漂亮灰色背景的菜單鏈接。 –

2

你shold取消部署舊的Web moudle

使用流動命令來做到這一點:

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

$port意味着 「GlassFish管理端口」。當您使用start-domain你會看到它

$app意味着要取消部署,您可以使用./bin/asadmin --port $port list-applications命令來查看所有網絡moudles已經部署到該域