简体   繁体   中英

Jenkins war deployment to Tomcat 7

I'm using Jenkins for war deployment to my remote server which uses Tomcat 7. I need my application to be directly installed at dedicated port like this:

http://localhost:8083 

instead of usual:

http://localhost:8080/myCoolApp

To achieve this I deploy my war archive as ROOT directly to 'webapp' Tomcat's directory. Everything works fine, archive is sent and deployed but I get an error from Jenkins: 在此输入图像描述

Just to remind - archive is deployed successfully! But as a perfectionist I just can't stand a result like this.

Here is my configuration for Jenkins deployment: 在此输入图像描述

Here is Tomcat configuration for my application as a separate service:

  <Service name="Jangel">  

      <Connector port="8083" protocol="HTTP/1.1"  
          connectionTimeout="20000" redirectPort="8443" />  

      <Engine name="Jangel" defaultHost="localhost">  

          <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />  

          <Host name="localhost" appBase="Jangel" unpackWARs="true"  
              autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
          </Host>  
      </Engine>  

So the question is - how should I configure correctly Tomcat&Jenkins?

Or how may I avoid/silence this Jenkins error?

通过使用/(斜杠)替换jenkins部署中的上下文路径而不是编写ROOT来尝试此操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM