Sivabalakrishnan
Sivabalakrishnan

Reputation: 515

How to deploy a spring boot application to tomcat server from jenkins?

Sample Spring boot application is created and build on Jenkins.

For Deployment of war file in tomcat server ,

I am facing a several issues.

Error :

The Error thrown in Build

Credentials At Jenkins :

Tomcat Credentials at Jenkins

tomcat-users.xml File :

Tomcat user xml file.

Still I am facing the same issue. I had searched in google and stackoverflow but still i can't found the correct answer.

Can Any one help me in this ?

Upvotes: 2

Views: 565

Answers (1)

Ioannis Barakos
Ioannis Barakos

Reputation: 1369

Your error message is a connection refused: connect exception. You should check the following:

  1. Your Tomcat server is up and running on port 8082 at the same server where your jenkins server is running (localhost). To make sure, run: telnet localhost 8082 from the same server commandLine ( I see you are in windows). If it connects then your Tomcat server is OK.

  2. Check if the manager application of Tomcat is deployed. Try to load the following web page and check if exists: http://localhost(or hostname of server):8082/manager/html

  3. Try to disable the windows firewall and any other firewall you may have (or antivirus firewall) and check if it prevents jenkins to connect to Tomcat (again check with telnet command)

Upvotes: 2

Related Questions