Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

HTTP Status 404 - Not Found

Não estou conseguindo subir o servidor está dando erro.

Type Status Report

Message Not found

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

/home/rimai/workspace/apache-tomcat-9.0.21/bin/catalina.sh run
[2019-07-30 01:41:57,077] Artifact webservices:war: Waiting for server connection to start artifact deployment...
30-Jul-2019 13:41:57.624 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.21
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jun 4 2019 20:19:36 UTC
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.21.0
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            4.16.0-041600-lowlatency
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /home/rimai/workspace/Java/jdk1.8.0_211/jre
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_211-b12
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /home/rimai/.IntelliJIdea2019.2/system/tomcat/Unnamed_webservices
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /home/rimai/workspace/apache-tomcat-9.0.21
30-Jul-2019 13:41:57.626 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/rimai/.IntelliJIdea2019.2/system/tomcat/Unnamed_webservices/conf/logging.properties
30-Jul-2019 13:41:57.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
30-Jul-2019 13:41:57.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
30-Jul-2019 13:41:57.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
30-Jul-2019 13:41:57.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
30-Jul-2019 13:41:57.627 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=/home/rimai/.IntelliJIdea2019.2/system/tomcat/Unnamed_webservices/jmxremote.password
30-Jul-2019 13:41:57.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=/home/rimai/.IntelliJIdea2019.2/system/tomcat/Unnamed_webservices/jmxremote.access
30-Jul-2019 13:41:57.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
30-Jul-2019 13:41:57.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
30-Jul-2019 13:41:57.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
30-Jul-2019 13:41:57.632 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
30-Jul-2019 13:41:57.633 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
30-Jul-2019 13:41:57.633 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/rimai/.IntelliJIdea2019.2/system/tomcat/Unnamed_webservices
30-Jul-2019 13:41:57.633 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/rimai/workspace/apache-tomcat-9.0.21
3 respostas

Você executou esses passos?

Baixe o projeto webservices.zip e extraia o ZIP.
No Eclipse: File > Import
Depois, Maven > Existing Maven Project
Escolha a pasta do projeto (webservices) e confirme a importação.
Adicione o projeto no Tomcat.

Bom dia Otávio!

Sim, fiz exatamente os passos, mas não funcionou... Testei na IDE IntelliJ e o problema foi o mesmo. Meu SO é o linux. A minha variável ambiente no .bashrc da Catalina está configurada como CATALINA_HOME=/home/rimai/workspace/apache-tomcat-9.0.20

solução!

Consegui resolver o problema, assim que mudei a versão do Tomcat para 7 funcionou...