Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problema de dependência.

Quando fui iniciar a aplicação tomei o erro de que o diretório lib não existe, corrigi o build.xml para criar a pasta no projeto web, porém após esta correção tomei o erro abaixo :

''' resolve: [ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ :: [ivy:retrieve] :: loading settings :: url = jar:file:/C:/Users/307561/Downloads/leiloes/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml [ivy:retrieve] :: resolving dependencies :: leiloes#leiloes;working@B190627 [ivy:retrieve] confs: [default, provided, test, jetty, minify] [ivy:retrieve] found br.com.caelum#vraptor;3.4.0 in public [ivy:retrieve] found cglib#cglib-nodep;2.1_3 in public [ivy:retrieve] found com.google.guava#guava;r07 in public [ivy:retrieve] found org.slf4j#slf4j-api;1.6.1 in public [ivy:retrieve] found org.slf4j#slf4j-log4j12;1.6.1 in public [ivy:retrieve] found log4j#log4j;1.2.16 in public [ivy:retrieve] found net.vidageek#mirror;1.5.1 in public [ivy:retrieve] found org.objenesis#objenesis;1.1 in public [ivy:retrieve] found ognl#ognl;2.7.3 in public [ivy:retrieve] found jboss#javassist;3.7.ga in public [ivy:retrieve] found com.thoughtworks.paranamer#paranamer;2.2 in public [ivy:retrieve] found org.springframework#spring-aop;3.0.5.RELEASE in public [ivy:retrieve] found aopalliance#aopalliance;1.0 in public [ivy:retrieve] found org.springframework#spring-asm;3.0.5.RELEASE in public [ivy:retrieve] found org.springframework#spring-beans;3.0.5.RELEASE in public [ivy:retrieve] found org.springframework#spring-core;3.0.5.RELEASE in public [ivy:retrieve] found commons-logging#commons-logging;1.1.1 in public [ivy:retrieve] found org.springframework#spring-context;3.0.5.RELEASE in public [ivy:retrieve] found org.springframework#spring-expression;3.0.5.RELEASE in public [ivy:retrieve] found org.springframework#spring-web;3.0.5.RELEASE in public [ivy:retrieve] found org.aspectj#aspectjrt;1.6.9 in public [ivy:retrieve] found net.sf.scannotation#scannotation;1.0.2 in public [ivy:retrieve] found javassist#javassist;3.6.0.GA in public [ivy:retrieve] found jfree#jfreechart;1.0.12 in public [ivy:retrieve] found jfree#jcommon;1.0.15 in public [ivy:retrieve] found org.hsqldb#hsqldb;2.2.4 in public [ivy:retrieve] found opensymphony#sitemesh;2.4.2 in public [ivy:retrieve] found javax.servlet#jstl;1.2 in public [ivy:retrieve] found org.hibernate#hibernate-entitymanager;3.6.7.Final in public [ivy:retrieve] found org.hibernate#hibernate-core;3.6.7.Final in public [ivy:retrieve] found antlr#antlr;2.7.6 in public [ivy:retrieve] found commons-collections#commons-collections;3.1 in public [ivy:retrieve] found dom4j#dom4j;1.6.1 in public [ivy:retrieve] found org.hibernate#hibernate-commons-annotations;3.2.0.Final in public [ivy:retrieve] found org.hibernate.javax.persistence#hibernate-jpa-2.0-api;1.0.1.Final in public [ivy:retrieve] found javax.transaction#jta;1.1 in public [ivy:retrieve] found cglib#cglib;2.2 in public [ivy:retrieve] found asm#asm;3.1 in public [ivy:retrieve] found javassist#javassist;3.12.0.GA in public [ivy:retrieve] found org.hibernate#hibernate-c3p0;3.6.7.Final in public [ivy:retrieve] found c3p0#c3p0;0.9.1 in public [ivy:retrieve] found org.hibernate#hibernate-validator;4.2.0.Final in public [ivy:retrieve] found javax.validation#validation-api;1.0.0.GA in public [ivy:retrieve] found joda-time#joda-time;2.0 in public [ivy:retrieve] found com.thoughtworks.xstream#xstream;1.4.1 in public [ivy:retrieve] found xmlpull#xmlpull;1.1.3.1 in public [ivy:retrieve] found xpp3#xpp3_min;1.1.4c in public [ivy:retrieve] found javax.servlet#servlet-api;2.5 in public [ivy:retrieve] found javax.servlet.jsp#jsp-api;2.1 in public [ivy:retrieve] found junit#junit;4.10 in public [ivy:retrieve] found org.hamcrest#hamcrest-core;1.1 in public [ivy:retrieve] found org.hamcrest#hamcrest-all;1.1 in public [ivy:retrieve] found org.mockito#mockito-all;1.8.5 in public [ivy:retrieve] found org.mortbay.jetty#jsp-api-2.1;6.1.14 in public [ivy:retrieve] found org.mortbay.jetty#servlet-api-2.5;6.1.14 in public [ivy:retrieve] found org.mortbay.jetty#jsp-2.1;6.1.14 in public [ivy:retrieve] found org.eclipse.jdt#core;3.1.1 in public [ivy:retrieve] found ant#ant;1.6.5 in public [ivy:retrieve] found org.mortbay.jetty#jetty-ant;6.1.14 in public [ivy:retrieve] found org.mortbay.jetty#jetty;6.1.14 in public [ivy:retrieve] found org.mortbay.jetty#jetty-util;6.1.14 in public [ivy:retrieve] found org.mortbay.jetty#jetty-plus;6.1.14 in public [ivy:retrieve] found geronimo-spec#geronimo-spec-jta;1.0.1B-rc4 in public [ivy:retrieve] found org.mortbay.jetty#jetty-naming;6.1.14 in public [ivy:retrieve] found javax.mail#mail;1.4 in public [ivy:retrieve] found com.yahoo.platform.yui#yuicompressor;2.3.6 in public [ivy:retrieve] :: resolution report :: resolve 1670ms :: artifacts dl 436ms [ivy:retrieve] :: evicted modules:

[ivy:retrieve] javassist#javassist;3.6.0.GA by [javassist#javassist;3.12.0.GA] in [default]

| | modules || artifacts |

| conf | number| search|dwnlded|evicted|| number|dwnlded|

| default | 47 | 0 | 0 | 1 || 46 | 0 | | provided | 2 | 0 | 0 | 0 || 2 | 0 | | test | 4 | 0 | 0 | 0 || 4 | 0 | | jetty | 12 | 0 | 0 | 0 || 12 | 0 |

| minify | 1 | 0 | 0 | 0 || 1 | 0 |

[ivy:retrieve] :: retrieving :: leiloes#leiloes [sync] [ivy:retrieve] confs: [default, provided, test, jetty, minify] [ivy:retrieve] 0 artifacts copied, 65 already retrieved (0kB/93ms) [delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead. [delete] Deleting 46 files from C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\lib [copy] Copying 46 files to C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\lib

compile: [delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead. [delete] Deleting 19 files from C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\classes [javac] Compiling 15 source files to C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\classes [copy] Copying 4 files to C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\classes

jetty.run: [jetty] Configuring Jetty for project: vraptor-scaffold [jetty] 2016-10-08 13:54:14.328::INFO: Logging to STDERR via org.mortbay.log.StdErrLog [jetty] [jetty] Configuring Jetty for web application: leiloes [jetty] Webapp source directory = C:\Users\307561\Downloads\leiloes\src\main\webapp [jetty] Context path = / [jetty] Classpath = [] [jetty] Default scanned paths = [] [jetty] Extra scan targets = [C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\classes] [jetty] Temp directory = C:\Users\307561\Downloads\leiloes\target\jetty-temp\ [jetty] web.xml file = C:\Users\307561\Downloads\leiloes\src\main\webapp\WEB-INF\web.xml [jetty] 2016-10-08 13:54:14.500::INFO: jetty-6.1.14 [jetty] 2016-10-08 13:54:14.718::INFO: org.mortbay.jetty.ant.JettyWebAppConfiguration does not support annotations on source. Use org.mortbay.jetty.annotations.Configuration instead [jetty] 2016-10-08 13:54:14.718::INFO: No Transaction manager found - if your webapp requires one, please configure one. [jetty] 2016-10-08 13:54:15.873::WARN: failed vraptor [jetty] org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@6bfdb014 for org.apache.commons. ogging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang. lass;@6bfdb014 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) [jetty] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) [jetty] at org.springframework.context.support.AbstractApplicationContext.(AbstractApplicationContext.java:160) [jetty] at org.springframework.context.support.AbstractApplicationContext.(AbstractApplicationContext.java:213) [jetty] at org.springframework.context.support.AbstractRefreshableApplicationContext.(AbstractRefreshableApplicationContext.java:81) [jetty] at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.(AbstractRefreshableConfigApplicationContext.java:51) [jetty] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.(AbstractRefreshableWebApplicationContext.java:93) [jetty] at org.springframework.web.context.support.AnnotationConfigWebApplicationContext.(AnnotationConfigWebApplicationContext.java:58) [jetty] at br.com.caelum.vraptor.ioc.spring.DefaultSpringLocator.getApplicationContext(DefaultSpringLocator.java:54) [jetty] at br.com.caelum.vraptor.ioc.spring.SpringProvider.getParentApplicationContext(SpringProvider.java:112) [jetty] at br.com.caelum.vraptor.ioc.spring.SpringProvider.start(SpringProvider.java:80) [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:275) [jetty] at org.apache.tools.ant.Task.perform(Task.java:364) [jetty] at org.apache.tools.ant.Target.execute(Target.java:341) [jetty] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jetty] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [jetty] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [jetty] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [jetty] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [jetty] at org.apache.tools.ant.Main.runBuild(Main.java:668) [jetty] at org.apache.tools.ant.Main.startAnt(Main.java:187) [jetty] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [jetty] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) [jetty] Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@6bfdb014 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.la g.NoClassDefFoundError: org/apache/log4j/Category) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) [jetty] ... 44 more [jetty] Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category [jetty] at java.lang.Class.getDeclaredConstructors0(Native Method) [jetty] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) [jetty] at java.lang.Class.getConstructor0(Class.java:3075) [jetty] at java.lang.Class.getConstructor(Class.java:1825) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) [jetty] ... 45 more [jetty] Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category [jetty] at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [jetty] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [jetty] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [jetty] ... 50 more [jetty] 2016-10-08 13:54:15.951::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@255990cc{/,C:\Users\307561\Downloads\leiloes\src\main\webapp} [jetty] org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@6bfdb014 for org.apache.commons. ogging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang. lass;@6bfdb014 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) [jetty] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) [jetty] at org.springframework.context.support.AbstractApplicationContext.(AbstractApplicationContext.java:160) [jetty] at org.springframework.context.support.AbstractApplicationContext.(AbstractApplicationContext.java:213) [jetty] at org.springframework.context.support.AbstractRefreshableApplicationContext.(AbstractRefreshableApplicationContext.java:81) [jetty] at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.(AbstractRefreshableConfigApplicationContext.java:51) [jetty] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.(AbstractRefreshableWebApplicationContext.java:93) [jetty] at org.springframework.web.context.support.AnnotationConfigWebApplicationContext.(AnnotationConfigWebApplicationContext.java:58) [jetty] at br.com.caelum.vraptor.ioc.spring.DefaultSpringLocator.getApplicationContext(DefaultSpringLocator.java:54) [jetty] at br.com.caelum.vraptor.ioc.spring.SpringProvider.getParentApplicationContext(SpringProvider.java:112) [jetty] at br.com.caelum.vraptor.ioc.spring.SpringProvider.start(SpringProvider.java:80) [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:275) [jetty] at org.apache.tools.ant.Task.perform(Task.java:364) [jetty] at org.apache.tools.ant.Target.execute(Target.java:341) [jetty] at org.apache.tools.ant.Target.performTasks(Target.java:369) [jetty] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [jetty] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [jetty] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [jetty] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [jetty] at org.apache.tools.ant.Main.runBuild(Main.java:668) [jetty] at org.apache.tools.ant.Main.startAnt(Main.java:187) [jetty] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [jetty] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) [jetty] Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@6bfdb014 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.la g.NoClassDefFoundError: org/apache/log4j/Category) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) [jetty] ... 44 more [jetty] Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category [jetty] at java.lang.Class.getDeclaredConstructors0(Native Method) [jetty] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) [jetty] at java.lang.Class.getConstructor0(Class.java:3075) [jetty] at java.lang.Class.getConstructor(Class.java:1825) [jetty] at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) [jetty] ... 45 more [jetty] Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category [jetty] at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [jetty] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [jetty] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [jetty] ... 50 more [jetty] 2016-10-08 13:54:16.075::INFO: Started SelectChannelConnector@0.0.0.0:8080 [jetty] Web application 'leiloes': starting scanner at interval of 3 seconds. '''

1 resposta
solução!

O problema ocorreu pois eu estava com a versão do java errada definida na variável de ambiente.

Problema resolvido.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software