AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-430992

Guilherme Oliveira's questions

Martin Hope
Guilherme Oliveira
Asked: 2017-08-15 04:30:12 +0800 CST

Tomcat 7 使用 .bat 自动部署

  • 0

我正在尝试使用 .bat 文件在 Apache Tomcat/7.0.70 上使用 JVM 版本 1.7.0_80-b15 和 apache-ant-1.7.1 进行自动部署。但是,当我在没有警告的情况下运行 .bat 文件时,总是会出现一条连续的消息

deploy.war:目标“deploy.war”失败,消息“java.io.FileNotFoundException:http://localhost:8080/manager/deploy?path=%2Fportal2CA&config=C%3A%2FTTeste%2FAPRO%2Fportal2CA.xml&war=C %3A%2FTTeste%2FAPRO%2Fportal2CA.war&update=true '。

构建失败 java.io.FileNotFoundException: http://localhost:8080/manager/deploy?path=%2Fportal2CA&config=C%3A%2FTTeste%2FAPRO%2Fportal2CA.xml&war=C%3A%2FTTeste%2FAPRO%2Fportal2CA.war&update=true

。蝙蝠

回声反常=1.01

REM ***** 变量 *****

SET APP-URL="http://localhost:8080/portal2CA" SET MGR-URL="http://localhost:8080/manager" SET MGR-USERNAME="XX" SET MGR-PASSWORD="XX" SET MGR -CONTEXT-PATH="/portal2CA" SET MGR-WAR-FILE="C:/Teste/APRO/portal2CA.war" SET MGR-CONTEXT-DESCRIPTOR="C:/Teste/APRO/portal2CA.xml"

调用 ant -v -k -f instalar.xml -Dapp.url=%APP-URL% -Dmgr.url=%MGR-URL% -Dmgr.username=%MGR-USERNAME% -Dmgr.password=%MGR-PASSWORD % -Dmgr.context.path=%MGR-CONTEXT-PATH% -Dmgr.war.file=%MGR-WAR-FILE% -Dmgr.context.descriptor=%MGR-CONTEXT-DESCRIPTOR%

暂停

OBS:对不起Set em .bat的参数,但我不想显示企业使用的名称,但路径正确,我想知道.bat脚本中是否缺少某些内容。

.xml

(

<property name="versao"    value="1.02" />

<!-- Configure the custom Ant tasks for the Manager application -->
<taskdef name="deploy"    classname="org.apache.catalina.ant.DeployTask"    />
<taskdef name="list"      classname="org.apache.catalina.ant.ListTask"      />
<taskdef name="reload"    classname="org.apache.catalina.ant.ReloadTask"    />
<taskdef name="resources" classname="org.apache.catalina.ant.ResourcesTask" />
<taskdef name="roles"     classname="org.apache.catalina.ant.RolesTask"     />
<taskdef name="start"     classname="org.apache.catalina.ant.StartTask"     />
<taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"      />
<taskdef name="undeploy"  classname="org.apache.catalina.ant.UndeployTask"  />


<target name="deploy.war">
    <deploy 

        url="${mgr.url}"
        username="${mgr.username}" 
        password="${mgr.password}" 
        update="true" 
        path="${mgr.context.path}" 
        localWar="${mgr.war.file}" 
        config="${mgr.context.descriptor}"
    />
</target>

)

抱歉编辑不好,我仍然不知道如何修改操作系统工具

tomcat7
  • 1 个回答
  • 643 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve