2010-05-01 98 views
1

您好我正在嘗試構建/部署war到websphere流程服務器7.0。我在Windows環境下運行.....錯誤Ant構建/部署到websphere 7.0

我用http://illegalargumentexception.blogspot.com/2008/08/ant-automated-deployment-to-websphere.html作爲我的參考。和http://illegalargumentexception.googlecode.com/svn/trunk/code/java/WebSphereAntFiles/作爲我部署的示例代碼。

這是我的buil.properies是?

#build properties 
mywebappear=D:/data/code/WebSphereAntFiles/scripts/test/mywebappEAR.ear 



#WAS6 install directory 
was_home=C:/IBM/WID7_WTE/runtimes/bi_v7 
#server name (see cell/node/server; e.g. "server1") 
was_server=server1 
#user + password; for use when security is enabled 
was_user=admin 
was_password=admin 
#stops scripts on problem 
was_failonerror=true 
#virtual host 
was_virtualhost=default_host 

#Absolute path to EAR file 
#was_ear=fooEAR.ear 

#Name of the enterprise application 
#was_appname=fooEAR 

這是我的控制檯,而我試圖建立與ws_ant.bat

[wsDefaultBindings] mywebapp.war 
[wsDefaultBindings] <virtual-host> --> default_host 
[wsDefaultBindings] 
[wsDefaultBindings] ------------------------ 


[wsDefaultBindings] Saving EAR File to directory 
[wsDefaultBindings] Saved EAR File to directory Successfully 

test_wsStartServer: 

WAS_wsStartServer: 

depCheck: 

depCheck: 
[startServer] ADMU0116I: Tool information is being logged in file 
[startServer]   C:\IBM\WID7_WTE\runtimes\bi_v7\profiles\qwps\logs\server1\startServer.log 
[startServer] ADMU0128I: Starting tool with the qwps profile 
[startServer] ADMU3100I: Reading configuration for server: server1 
[startServer] ADMU3028I: Conflict detected on port 8880. Likely causes: a) An instance of 
[startServer]   the server server1 is already running b) some other process is 
[startServer]   using port 8880 
[startServer] ADMU3027E: An instance of the server may already be running: server1 
[startServer] ADMU0111E: Program exiting with error: 
[startServer]   com.ibm.websphere.management.exception.AdminException: ADMU3027E: An 
[startServer]   instance of the server may already be running: server1 
[startServer] ADMU1211I: To obtain a full trace of the failure, use the -trace option. 
[startServer] ADMU0211I: Error details may be seen in the file: 
[startServer]   C:/IBM/WID7_WTE/runtimes/bi_v7/profiles/qwps\logs\server1\startServer.log 

BUILD FAILED 
D:\data\code\WebSphereAntFiles\scripts\test\build.xml:68: The following error occurred while executing this line: 
D:\data\code\WebSphereAntFiles\scripts\was\wsStartServer.xml:49: Java returned: -1 
+0

的錯誤不是在構建(如由麥克道爾提及。該EAR成功部署到所看到在這些線 [wsDefaultBindings]保存EAR文件給目錄 [wsDefaultBindings]保存EAR文件給目錄成功服務器 爲什麼構建過程會嘗試啓動服務器?如果使用腳本構建應用程序並將其安裝到服務器,則您已連接到正在運行的服務器(您處於單一服務器環境中) You don在構建腳本中不需要啓動服務器,刪除它並使用控制檯或日誌來查看你的應用程序是否正在運行 – Manglu 2010-05-04 02:26:45

回答

1
[startServer] ADMU3028I: Conflict detected on port 8880. Likely causes: a) An instance of 
[startServer]   the server server1 is already running b) some other process is 
[startServer]   using port 8880 

我猜你已經開始了你的服務器。如果服務器已在運行,則com.ibm.websphere.ant.tasks.StartServer將無法​​啓動服務器。

要麼停止調用此任務,要麼在運行腳本之前停止服務器。

+0

非常感謝,先生,我通常在我想部署Web應用程序時啓動服務器。 我試過你的腳本,所以我想部署,我必須卸載應用程序,然後重新安裝應用程序。我有什麼竅門,我只想更新應用程序而不卸載並再次部署? 謝謝 – 2010-05-07 03:35:04

+0

@adisembiring - 你可以用'wsadmin' Ant任務來做到這一點(參見WAS Infocenter)。 – McDowell 2010-05-11 06:21:23

相關問題