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

Ao executar ant jetty.run ocorre o seguinte erro.

BUILD FAILED
C:\Users\ricardo.isilva\Downloads\leiloes\build.xml:26: java.lang.NoClassDefFoun
dError: com/mercury/ftjadin/hooks/interfaces/EventListenerListHookQTJA
        at javax.swing.event.EventListenerList.add(EventListenerList.java:205)
        at org.apache.ivy.core.event.EventManager.addTransferListener(EventManag
er.java:70)
        at org.apache.ivy.Ivy.bind(Ivy.java:303)
        at org.apache.ivy.Ivy.newInstance(Ivy.java:200)
        at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java
:261)
        at org.apache.ivy.ant.IvyAntSettings.getDefaultInstance(IvyAntSettings.j
ava:133)
        at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:90)
        at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
        at org.apache.tools.ant.Main.runBuild(Main.java:857)
5 respostas

Olá, Ricardo!

Parece ser um problema com a versão do Java.

Qual é o resultado do seguinte comando:

java -version

Alexandre, realmente havia um problema com o jdk o qual resolvi.

Agora estou com o seguinte problema.

Pode me ajudar?

[ivy:retrieve]    http://repo1.maven.org/maven2/com/yahoo/platform/yui/yuicompre
ssor/2.3.6/yuicompressor-2.3.6.jar
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: br.com.caelum#vraptor;3.4.0: not found
[ivy:retrieve]          :: org.hsqldb#hsqldb;2.2.4: not found
[ivy:retrieve]          :: opensymphony#sitemesh;2.4.2: not found
[ivy:retrieve]          :: javax.servlet#jstl;1.2: not found
[ivy:retrieve]          :: org.hibernate#hibernate-entitymanager;3.6.7.Final: no
t found
[ivy:retrieve]          :: org.hibernate#hibernate-c3p0;3.6.7.Final: not found
[ivy:retrieve]          :: org.hibernate#hibernate-validator;4.2.0.Final: not fo
und
[ivy:retrieve]          :: joda-time#joda-time;2.0: not found
[ivy:retrieve]          :: com.thoughtworks.xstream#xstream;1.4.1: not found
[ivy:retrieve]          :: javax.servlet#servlet-api;2.5: not found
[ivy:retrieve]          :: javax.servlet.jsp#jsp-api;2.1: not found
[ivy:retrieve]          :: junit#junit;4.10: not found
[ivy:retrieve]          :: org.hamcrest#hamcrest-all;1.1: not found
[ivy:retrieve]          :: org.mockito#mockito-all;1.8.5: not found
[ivy:retrieve]          :: org.mortbay.jetty#jsp-api-2.1;6.1.14: not found
[ivy:retrieve]          :: org.mortbay.jetty#jsp-2.1;6.1.14: not found
[ivy:retrieve]          :: org.mortbay.jetty#jetty-ant;6.1.14: not found
[ivy:retrieve]          :: com.yahoo.platform.yui#yuicompressor;2.3.6: not found

[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.jar
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.pom
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/org/hsqldb/hsqldb/2.2.4/hsqldb-2.2.4.jar
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.pom
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/opensymphony/sitemesh/2.4.2/sitemesh-2.4.2.jar
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.pom
[ivy:retrieve]  Server access Error: Connection timed out: connect url=http://re
po1.maven.org/maven2/javax/servlet/jstl/1.2/jstl-1.2.jar
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\Users\ricardo.isilva\Downloads\leiloes\build.xml:26: impossible to resolve de
pendencies:
        resolve failed - see output for details

Total time: 3 minutes 4 seconds

C:\Users\ricardo.isilva\Downloads\leiloes>

Olá, Ricardo.

Parece que o Ivy, que baixar as dependências (JARs) da internet, não conseguiu acessar os servidores:

Server access Error: Connection timed out: connect url=http://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom

O que ocorre se você acessar pelo navegador a URL a seguir? http://repo1.maven.org/maven2/br/com/caelum/vraptor/3.4.0/vraptor-3.4.0.pom

Você está detrás de um proxy?

A URL traz o XML sem problema.

Quanto a estar atrás de um proxy, provavelmente, visto que estou na empresa.

solução!

Você poderia criar uma variável de ambiente chamada ANT_OPTS com o valor:

-Dhttp.proxyHost=<endereco do proxy> -Dhttp.proxyPort=<porta do proxy>

Trocar o endereço e a porta do proxy.

Referência: https://ant.apache.org/manual/proxy.html