2
respostas

Erro 503 no Mac

Boa noite, estou tendo dificuldade em montar o ambiente no mac, sobe a aplicação, mais recebo 503. Alguém pode me ajudar por favor

compile:
    [javac] /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/build.xml:41: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 10 source files to /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/src/main/webapp/WEB-INF/classes
     [copy] Copying 4 files to /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/src/main/webapp/WEB-INF/classes

jetty.run:
    [jetty] Configuring Jetty for project: vraptor-scaffold
    [jetty] 2020-10-06 21:56:41.684::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
    [jetty]
    [jetty] Configuring Jetty for web application: leiloes
    [jetty] Webapp source directory = /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/src/main/webapp
    [jetty] Context path = /
    [jetty] Classpath = []
    [jetty] Default scanned paths = []
    [jetty] Extra scan targets = [/Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/src/main/webapp/WEB-INF/classes]
    [jetty] Temp directory = /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/target/jetty-temp/
    [jetty] web.xml file = /Users/denisds/Documents/Curso Rest Assured/Alura/leiloes/src/main/webapp/WEB-INF/web.xml
    [jetty] 2020-10-06 21:56:41.765::INFO:  jetty-6.1.14
    [jetty] 2020-10-06 21:56:41.863::INFO:  org.mortbay.jetty.ant.JettyWebAppConfiguration does not support annotations on source. Use org.mortbay.jetty.annotations.Configuration instead
    [jetty] 2020-10-06 21:56:41.865::INFO:  No Transaction manager found - if your webapp requires one, please configure one.
    [jetty] 20-10-06 21:56:41,987 [INFO] br.com.caelum.vraptor.config.BasicConfiguration - Using class br.com.caelum.vraptor.ioc.spring.SpringProvider as Container Provider
    [jetty] 20-10-06 21:56:41,995 [INFO] br.com.caelum.vraptor.ioc.spring.DefaultSpringLocator - No application context found
    [jetty] 20-10-06 21:56:42,022 [INFO] br.com.caelum.vraptor.scan.WebAppBootstrapFactory - No static WebAppBootstrap found.
    [jetty] 20-10-06 21:56:42,023 [INFO] br.com.caelum.vraptor.config.BasicConfiguration - br.com.caelum.vraptor.scanning = null
    [jetty] 2020-10-06 21:56:42.044::WARN:  failed vraptor
    [jetty] br.com.caelum.vraptor.scan.ScannerException: Could not scan WEB-INF/classes
    [jetty]     at br.com.caelum.vraptor.scan.ScannotationComponentScanner.scanWebInfClasses(ScannotationComponentScanner.java:74)
    [jetty]     at br.com.caelum.vraptor.scan.ScannotationComponentScanner.scan(ScannotationComponentScanner.java:57)
    [jetty]     at br.com.caelum.vraptor.scan.WebAppBootstrapFactory.create(WebAppBootstrapFactory.java:65)
    [jetty]     at br.com.caelum.vraptor.ioc.spring.SpringProvider.start(SpringProvider.java:83)
    [jetty]     at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:110)
    [jetty]     at br.com.caelum.vraptor.VRaptor.init(VRaptor.java:103)
    [jetty]     at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    [jetty]     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [jetty]     at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620)
    [jetty]     at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    [jetty]     at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234)
    [jetty]     at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
    [jetty]     at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
    [jetty]     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [jetty]     at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    [jetty]     at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    [jetty]     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [jetty]     at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    [jetty]     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [jetty]     at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    [jetty]     at org.mortbay.jetty.Server.doStart(Server.java:222)
    [jetty]     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    [jetty]     at org.mortbay.jetty.ant.ServerProxyImpl.start(ServerProxyImpl.java:209)
    [jetty]     at org.mortbay.jetty.ant.JettyRunTask.execute(JettyRunTask.java:204)
    [jetty]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    [jetty]     at java.base/jdk.internal.reflect
2 respostas

Faz um downgrade para o JDK 8 e tenta fazer um novo build da aplicação.

Passos para solução:

1 - Instalar o Java JDK versão 1.8.0

2 - Definir a variável de ambiente JAVA_HOME

3 - Instalar o Ant na versão 1.10.2

4 - Definir a variável de ambiente ANT_HOME

5 - Atualizar a variável de ambiente PATH acrescentando %JAVA_HOME%\bin; %ANT_HOME%\bin.

Mas esses comandos é no mac ?