即使没有错误,Ant 任务也不会启动 websphere 服务器
我正在尝试使用 ANT 脚本启动 websphere 服务器。当我执行这个脚本时,它显示构建成功。但它没有启动服务器。这是我使用的 Ant 脚本,
<target name="initws">
<path id="ibm.lib">
<fileset dir="${env.WAS_HOME}/lib">
<include name="*.jar">
</fileset>
<fileset dir="${env.WAS_HOME}/plugins">
<include name="*.jar">
</fileset>
<fileset dir="${env.WAS_HOME}/java/lib">
<include name="*.jar">
</fileset>
</path>
<taskdef name="wsStartServer"> classpathref="ibm.lib" classname="com.ibm.webphere.ant.tasks.StartServer">
</taskdef>
<target name="startWebsphereServer" depends="initws">
<wsStartServer wasHome="${user.install.root}" script="${user.install.root}/bin/setupCmdLine.sh" server="server1" profilename="AppSrv01" failonerror="true"/>
</target>
之前我有类路径错误,但后来我解决了这些错误。当我运行此脚本时,它给出以下输出并显示构建成功
/*
Starting tool with AppSrv01 profile
Reading Configuration for server : Server1
Launch Script for server created: /home/dev/IBM/WEBSPHERE/AppServer1/bin/setupCmdLine.sh
Build Successful
*/
但服务器未启动。您能帮我解决这个问题吗?提前感谢您的帮助。我是在linux环境下做的。
I am trying to start the websphere server with ANT Script. when i execute this script it's showing build is successful. But it is not starting the server. Here is the Ant script that i used
<target name="initws">
<path id="ibm.lib">
<fileset dir="${env.WAS_HOME}/lib">
<include name="*.jar">
</fileset>
<fileset dir="${env.WAS_HOME}/plugins">
<include name="*.jar">
</fileset>
<fileset dir="${env.WAS_HOME}/java/lib">
<include name="*.jar">
</fileset>
</path>
<taskdef name="wsStartServer"> classpathref="ibm.lib" classname="com.ibm.webphere.ant.tasks.StartServer">
</taskdef>
<target name="startWebsphereServer" depends="initws">
<wsStartServer wasHome="${user.install.root}" script="${user.install.root}/bin/setupCmdLine.sh" server="server1" profilename="AppSrv01" failonerror="true"/>
</target>
Previously i have classpath errors but later i resolved those. when i run this script it is giving the following output and showing that build is successful
/*
Starting tool with AppSrv01 profile
Reading Configuration for server : Server1
Launch Script for server created: /home/dev/IBM/WEBSPHERE/AppServer1/bin/setupCmdLine.sh
Build Successful
*/
but the server is not starting. Can you please help me on this.Thanks in advance for your help. I am doint this in linux environment.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该从 /bin 下提供的 ws_ant shell 中执行
This should be executed from within ws_ant shell that is provided under /bin