0
respostas

O build rodou com sucesso porém quando tento acessar a aplicação recebo o erro 404 not found

Started by user IRLANI W L JESUS Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/catalogo The recommended git tool is: NONE No credentials specified

git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/catalogo/.git # timeout=10 Fetching changes from the remote Git repository git config remote.origin.url https://github.com/iwjesus/catalogo-alura-inicio.git # timeout=10 Fetching upstream changes from https://github.com/iwjesus/catalogo-alura-inicio.git git --version # timeout=10 git --version # 'git version 2.17.1' git fetch --tags --progress -- https://github.com/iwjesus/catalogo-alura-inicio.git +refs/heads/:refs/remotes/origin/ # timeout=10 git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision c7ace449cf2d2b58e9c498fa884f9da85925cbd3 (refs/remotes/origin/master) git config core.sparsecheckout # timeout=10 git checkout -f c7ace449cf2d2b58e9c498fa884f9da85925cbd3 # timeout=10 Commit message: "Update top.jsp" git rev-list --no-walk c7ace449cf2d2b58e9c498fa884f9da85925cbd3 # timeout=10 [catalogo] $ /home/ubuntu/apache-maven-3.8.1/bin/mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ---------------------< br.com.caelum:projeto-jpa >---------------------- [INFO] Building Alura AWS 1.0-SNAPSHOT [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ projeto-jpa --- [INFO] Deleting /var/lib/jenkins/workspace/catalogo/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ projeto-jpa --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/catalogo/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ projeto-jpa --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 15 source files to /var/lib/jenkins/workspace/catalogo/target/classes [INFO] /var/lib/jenkins/workspace/catalogo/src/main/java/br/com/caelum/dao/ProdutoDao.java: /var/lib/jenkins/workspace/catalogo/src/main/java/br/com/caelum/dao/ProdutoDao.java uses unchecked or unsafe operations. [INFO] /var/lib/jenkins/workspace/catalogo/src/main/java/br/com/caelum/dao/ProdutoDao.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ projeto-jpa --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/catalogo/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ projeto-jpa --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ projeto-jpa --- [INFO] No tests to run. [INFO] [INFO] --- maven-war-plugin:2.2:war (default-war) @ projeto-jpa --- [INFO] Packaging webapp [INFO] Assembling webapp [projeto-jpa] in [/var/lib/jenkins/workspace/catalogo/target/alura-aws] [INFO] Processing war project [INFO] Copying webapp resources [/var/lib/jenkins/workspace/catalogo/src/main/webapp] [INFO] Webapp assembled in [278 msecs] [INFO] Building war: /var/lib/jenkins/workspace/catalogo/target/alura-aws.war [INFO] WEB-INF/web.xml already added, skipping [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.110 s [INFO] Finished at: 2021-04-08T22:34:12Z [INFO] ------------------------------------------------------------------------ [catalogo] $ /bin/sh -xe /tmp/jenkins6150865736076951133.sh

  • sudo mv target/alura-aws.war /var/lib/tomcat8/webapps/loja2.war
  • sudo service tomcat8 restart Finished: SUCCESS