lqxue

          常用鏈接

          統計

          book

          tools

          最新評論

          tomcat 遠程部署]

          1、tomcat-users.xml should include one more role, 'admin'..e.g.

          <?xml version='1.0' encoding='utf-8'?>
          <tomcat-users>
          <role rolename="admin"/>
          <role rolename="manager"/>
          <role rolename="tomcat"/>
          <role rolename="role1"/>
          <user username="admin" password="secret" roles="manager,admin"/>
          <user username="tomcat" password="tomcat" roles="tomcat"/>
          <user username="role1" password="tomcat" roles="role1"/>
          <user username="both" password="tomcat" roles="tomcat,role1"/>
          </tomcat-users>
          2、ant 腳本

          <target name="tomcatDeploy" depends="compile">
            
          <taskdef name="tdeploy" classname="org.apache.catalina.ant.DeployTask">
              
          <classpath refid="cp">
              
          </classpath>
            
          </taskdef>
            
          <tdeploy url="${tomcat.url}" username="${tomcat.username}" password="${tomcat.password}" path="${tomcat.path}" war="${dir.target}/${warFileName}" />
           
          </target>
           
          <target name="tomcatUndeploy" description="Remove web application">
            
          <taskdef name="tomcatUndeploy" classname="org.apache.catalina.ant.UndeployTask" classpathref="cp" />
            
          <tomcatUndeploy url="${tomcat.url}" username="${tomcat.username}" password="${tomcat.password}" path="${tomcat.path}"/>
            
          </target>

          posted on 2007-10-29 11:10 lqx 閱讀(682) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 岳阳市| 寿阳县| 万全县| 淮滨县| 阿瓦提县| 上林县| 南投县| 宁国市| 江北区| 丁青县| 辛集市| 北宁市| 南平市| 镇江市| 常州市| 丰顺县| 泉州市| 天台县| 卢湾区| 顺义区| 铜梁县| 乐清市| 潢川县| 拜泉县| 南和县| 德江县| 望奎县| 略阳县| 瑞安市| 晴隆县| 翼城县| 博白县| 司法| 海阳市| 芦山县| 静宁县| 来安县| 平邑县| 宁陵县| 曲阜市| 怀化市|