LOG:
16/01/2010 15:51:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:goodbuycaelum' did not find a matching property.
16/01/2010 15:51:00 org.apache.catalina.core.AprLifecycleListener init
INFO: 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\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\XEClient\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\jEdit;C:\AppServ\Apache2.2\bin;C:\AppServ\php6
16/01/2010 15:51:00 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
16/01/2010 15:51:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 679 ms
16/01/2010 15:51:00 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
16/01/2010 15:51:00 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
log4j:WARN No appenders could be found for logger (br.com.caelum.vraptor.ioc.spring.VRaptorApplicationContext).
log4j:WARN Please initialize the log4j system properly.
16/01/2010 15:51:04 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
16/01/2010 15:51:04 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
16/01/2010 15:51:04 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/53 config=null
16/01/2010 15:51:04 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3417 ms
http://localhost:8080/goodbuycaelum/ --> OK ABRE A PAGINA!!
Quando eu utilizo
http://localhost:8080/goodbuycaelum/mundo/boasvindas --> 404 OK mais sem escrever nada no console!!
Classe Mundo:
package br.com.caelum.goodbuy;
import br.com.caelum.vraptor.Resource;
@Resource
public class Mundo {
public void boasVindas(){
System.out.println("olá mundo");
}
}
Web.XML
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>goodbuycaelum</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<!-- configura o controlador do VRaptor -->
<filter>
<filter-name>vraptor</filter-name>
<filter-class>br.com.caelum.vraptor.VRaptor</filter-class>
</filter>
<filter-mapping>
<filter-name>vraptor</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<jsp-config>
<jsp-property-group>
<description>goodbuycaelum</description>
<display-name>Good Buy Caelum</display-name>
<url-pattern>*.jsp</url-pattern>
<include-prelude>/header.jspf</include-prelude>
<include-coda>/footer.jspf</include-coda>
</jsp-property-group>
</jsp-config>
</web-app>
Caso alguem puder ajudar... agradeço...