开发者

Ant deploy WAR file to tomcat server failure

I am having a little trouble getting my deployment task in ant to function. I have a war file that is generated as part of the build process, and I am now trying to autodeploy that to my test server. In ant 开发者_开发问答I have defined a deployment task as seen below. When I try to run it I get a file not found error on the server in the catalina.out log file. Does anyone have any idea what I am doing wrong that is causing this deploy to not function? I have checked the path, and it is correct and the WAR file exists. Thanks

username="${lamp.user}"

password="${lamp.password}"

update="true"

path="/beam" localWar="file:${module.beam.basedir}\out\war\beam.war" />


Apparently this is caused by using localWar instead of war in the build target. By replacing localWar with war it correctly deploys to the remote server. It appears that localWar would be used if ant is being run from the same machine as the tomcat server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜