404 Error - Jenkins Tomcat


404 Error - Jenkins Tomcat



I have a problem when I build Jenkins with tomcat I'm using:


jenkins version : 2.129
tomcat version : 7.0.69



And these are the steps:



And this is the result:



enter image description here




1 Answer
1



I have tried with above Tomcat and Jenkins version combination and it is working fine.
changed port no in server.xml in conf folder in tomcat.
placed jankins.war in webapp dir.
started tomcat.



launched by using URL http://localhost:${PORT}/jenkins



Please let me know if you are using something specific.



Edited:- As Discussed, As using Java version 1.7, jenkins version lesser than 2.54 will works. above that 1.8 java version is required.





hello please can u tell me where exactly the folder i can changed the port
– Makkaoui Ahmed
Jul 2 at 8:58





i changed the port and nothing news i have the same ERROR
– Makkaoui Ahmed
Jul 2 at 9:40





I have changed the port in server.xml file at location {Tomcat_home_dir}/conf/server.xml. Please look for section --> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> replace 8080 with the port no on which you want to start. if still didn't worked check for catalina.out under log dir for error. and also first you can try to bring up only tomcat server.
– Rohit Jindal
Jul 2 at 10:34


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


8080





can you please confirm if tomcat alone is working fine? if not the check for logs. Most of the time because of java configuration issue can be there.
– Rohit Jindal
Jul 2 at 10:36






MY tomcat working alone and i change the port and every think is working just jenkins
– Makkaoui Ahmed
Jul 2 at 10:56







By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages