Refiz todos os passos Copiei o loja.war para o webapp e desompactou aparentemente sem problemas:
ubuntu@ip-172-31-87-45:/var/lib/tomcat8/webapps$ ll
total 16040
drwxrwxr-x 4 tomcat8 tomcat8 4096 Dec 16 00:13 ./
drwxr-xr-x 4 root root 4096 Dec 15 23:59 ../
drwxr-xr-x 3 root root 4096 Dec 15 23:59 ROOT/
drwxr-xr-x 4 tomcat8 tomcat8 4096 Dec 16 00:13 loja/
-rw-r--r-- 1 ubuntu ubuntu 16406653 Dec 16 00:11 loja.war
criei o arqui setenv.sh
ubuntu@ip-172-31-87-45:/var/lib/tomcat8/webapps$ ll /usr/share/tomcat8/bin/*
-rw-r--r-- 1 root root 28642 May 11 2017 /usr/share/tomcat8/bin/bootstrap.jar
-rw-r--r-- 1 root root 1647 Feb 10 2015 /usr/share/tomcat8/bin/catalina-tasks.xml
-rwxr-xr-x 1 root root 21389 May 11 2017 /usr/share/tomcat8/bin/catalina.sh*
-rwxr-xr-x 1 root root 1922 Jan 24 2014 /usr/share/tomcat8/bin/configtest.sh*
-rwxr-xr-x 1 root root 7888 Jul 7 2014 /usr/share/tomcat8/bin/daemon.sh*
-rwxr-xr-x 1 root root 1965 Jan 24 2014 /usr/share/tomcat8/bin/digest.sh*
-rwxr-xr-x 1 root root 3547 Aug 11 2014 /usr/share/tomcat8/bin/setclasspath.sh*
-rwxr-xr-x 1 root root 18 Dec 16 00:20 /usr/share/tomcat8/bin/setenv.sh*
-rwxr-xr-x 1 root root 1902 Jan 24 2014 /usr/share/tomcat8/bin/shutdown.sh*
-rwxr-xr-x 1 root root 1904 Jan 24 2014 /usr/share/tomcat8/bin/startup.sh*
lrwxrwxrwx 1 root root 27 May 11 2017 /usr/share/tomcat8/bin/tomcat-juli.jar -> ../../java/tomcat8-juli.jar
-rwxr-xr-x 1 root root 5061 Jan 24 2014 /usr/share/tomcat8/bin/tool-wrapper.sh*
-rwxr-xr-x 1 root root 1908 Jan 24 2014 /usr/share/tomcat8/bin/version.sh*
ubuntu@ip-172-31-87-45:/var/lib/tomcat8/webapps$ cat /usr/share/tomcat8/bin/setenv.sh
export senha=1234
ubuntu@ip-172-31-87-45:/var/lib/tomcat8/webapps$
acesso a aplicacao ROOT de teste do tomcat8 sem problemas!!!
mas a aplicacao da loja nada!
HTTP Status 404 - /loja
type Status report
message /loja
description The requested resource is not available.
Apache Tomcat/8.0.32 (Ubuntu)
- Consigo logar no mysql -u root -p1234 sem problemas e foi criado o banco :
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| projeto_jpq |
| sys |
+--------------------+
5 rows in set (0.00 sec)
Realmente nao sei mais o que fazer e n~ao sou especialista java :-(
Ah, sim, ja dei stop e start umas 10x no Tomcat! rs Obrigado