Each application deployed on my Tomcat returns a status code 404 for every request I make. I tried several projects, helloworlds or skeletons, and each project behaves the same as the others:

Some of the projects I used are:
https://github.com/mwarman/skeleton-ws-spring-boot
https://spring.io/guides/gs/rest-service/ (I can run it using mvn spring-boot:run , but it does not work as deployed in Tomcat)
https://github.com/shagstrom/spring-mvc-hibernate-skeleton
I am using the latest Tomcat8 (8.0.27) , Oracle JDK 8 . I also tried Tomcat7 using OpenJDK 7 . Used Tomcats work on MAC and Debian . I create applications through mvn and through Intellij Idea .
Tomcats are clean, no configuration has been changed (except for adding the user manager-gui).
Since I tried many different projects, I do not think that the problem is in the code. Is this in Tomcat configuration? How can I make it work?
EDIT: server.xml code:
<?xml version='1.0' encoding='utf-8'?> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> </Engine> </Service> </Server>
source share