Olá pessoal, tudo bem?
Estou começando meus estudos em java para web e no vraptor.
Estou usando a apostila fj28 da caelum, mas estou enfrentando alguns problemas.
Como a apostila pede, eu coloquei o boasVindas.jsp no web-inf/jsp/mundo.
Então, o acesso a essa página seria assim: http://localhost:8080/fj28/mundo/boasVindas ?
Sempre que eu tento acessar, dá o erro 404. Ou mesmo pedindo para rodar essa página pelo endereço http://localhost:8080/FJ28/WEB-INF/jsp/mundo/boasVindas.jsp.
Depois eu reparei que o console está dando um erro, mas não entendo.
Fev 09, 2012 12:53:42 PM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Autodesk\Backburner;C:\Program Files\Common Files\Autodesk Shared;C:\Program Files (x86)\Pinnacle\Shared Files;.
Fev 09, 2012 12:53:42 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:AppWebPA’ did not find a matching property.
Fev 09, 2012 12:53:42 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:FJ28’ did not find a matching property.
Fev 09, 2012 12:53:42 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler [“http-bio-8080”]
Fev 09, 2012 12:53:42 PM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler [“ajp-bio-8009”]
Fev 09, 2012 12:53:42 PM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 672 ms
Fev 09, 2012 12:53:42 PM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Fev 09, 2012 12:53:42 PM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.21
Fev 09, 2012 12:53:43 PM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter vraptor
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at br.com.caelum.vraptor.VRaptor.(VRaptor.java:60)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:119)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
… 19 more
Fev 09, 2012 12:53:43 PM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Fev 09, 2012 12:53:43 PM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/FJ28] startup failed due to previous errors
Fev 09, 2012 12:53:43 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler [“http-bio-8080”]
Fev 09, 2012 12:53:43 PM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler [“ajp-bio-8009”]
Fev 09, 2012 12:53:43 PM org.apache.catalina.startup.Catalina start
Informações: Server startup in 1296 ms
Alguém pode ajudar? Já pesquisei, mas não achei muito.
Obrigado pela sua atenção, abraço.