问题描述
我正在尝试构建/部署 war 到 websphere process server 7.0.我在windows环境下运行.....
Hi I'm trying to build/deploy war to websphere process server 7.0. and I run on windows environment.....
我使用 http://illegalargumentexception.blogspot.com/2008/08/ant-automated-deployment-to-websphere.html 作为我的参考.和 http://illegalargumentexception.googlecode.com/svn/trunk/code/java/WebSphereAntFiles/ 作为我要部署的示例代码.
I use http://illegalargumentexception.blogspot.com/2008/08/ant-automated-deployment-to-websphere.html as my reference. and http://illegalargumentexception.googlecode.com/svn/trunk/code/java/WebSphereAntFiles/ as my sample code to deployed.
这是我的 buil.properies 是?
this is my buil.properies is ?
#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 构建时的控制台
this is my console while I trying to build with 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
推荐答案
[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 将无法启动服务器,如果它已经在运行.
I am guessing that you have already started your server. com.ibm.websphere.ant.tasks.StartServer will fail to start the server if it is already running.
在运行脚本之前停止调用此任务或停止服务器.
Either stop calling this task or stop your server before running the script.
这篇关于错误 Ant 构建/部署到 websphere 7.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!