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

Erro ao executar jetty:run no eclipse.

O seguinte erro é apresentado ao executar o comando no eclipse :

` [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for br.com.alura.maven:lojaweb:war:1.0.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:javax.servlet-api:jar -> duplicate declaration of version 3.1.0 @ line 38, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO][INFO] ------------------------------------------------------------------------ [INFO] Building lojaweb Maven Webapp 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> jetty-maven-plugin:9.3.0.M0:run (default-cli) > test-compile @ lojaweb >>> [INFO] Downloading: https://repo.maven.apache.org/maven2/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar [WARNING] Checksum validation failed: Checksum validation failed, expected d7466fc2e3af7c023e95c510f06448ad29b225b3d7466fc2e3af7c023e95c510f06448ad29b225b3 but is d7466fc2e3af7c023e95c510f06448ad29b225b3 for https://repo.maven.apache.org/maven2/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar [INFO] Downloaded: https://repo.maven.apache.org/maven2/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar (760 KB at 198.1 KB/sec) [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ lojaweb --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ lojaweb --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ lojaweb --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\Jean\eclipse-workspace\lojaweb\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ lojaweb --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< jetty-maven-plugin:9.3.0.M0:run (default-cli) < test-compile @ lojaweb <<< [INFO] [INFO] --- jetty-maven-plugin:9.3.0.M0:run (default-cli) @ lojaweb --- [INFO] Logging initialized @14756ms [INFO] Configuring Jetty for project: lojaweb Maven Webapp [INFO] webAppSourceDirectory not set. Trying src\main\webapp [INFO] Reload Mechanic: automatic [INFO] Classes = C:\Users\Jean\eclipse-workspace\lojaweb\target\classes [INFO] Context path = / [INFO] Tmp directory = C:\Users\Jean\eclipse-workspace\lojaweb\target\tmp [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = file:///C:/Users/Jean/eclipse-workspace/lojaweb/src/main/webapp/WEB-INF/web.xml [INFO] Webapp directory = C:\Users\Jean\eclipse-workspace\lojaweb\src\main\webapp [INFO] jetty-9.3.0.M0 [WARNING] Failed startup of context o.e.j.m.p.JettyWebAppContext@bd1111a{/,file:///C:/Users/Jean/eclipse-workspace/lojaweb/src/main/webapp/,STARTING}{file:///C:/Users/Jean/eclipse-workspace/lojaweb/src/main/webapp/} MultiException[java.lang.RuntimeException: Error scanning entry META-INF/versions/9/javax/xml/bind/ModuleUtil.class from jar file:///C:/Users/Jean/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar, java.lang.RuntimeException: Error scanning entry module-info.class from jar file:///C:/Users/Jean/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar, java.lang.RuntimeException: Error scanning entry module-info.class from jar...

Por ser muito grande não deu pra por tudo aqui. So com isso é possível me ajudar?

Desde já agradeço a ajuda.

2 respostas
solução!

Olá Jean!

Preciso mais da parte de baixo do erro para poder te ajudar, observa que esse trecho que você colocou tem muitos logs do tipo [WARNING] e [INFO]. Esses dois não falam especificamente sobre o erro que aconteceu

Poderia colar aqui o restante por favor?

Aguardo seu retorno! ^^

PS: Só por curiosidade, esse código todo está sendo retornado pelo Log4J, Warning e Info são níveis de log que temos nessa biblioteca. Veja mais sobre na nossa apostila: http://www.caelum.com.br/apostila-java-testes-xml-design-patterns/apendice-logging-com-log4j/#12-2-niveis-de-logs

Olá Jean!

Conseguiu resolver o problema?