I'm following Caelum's handout. I made the application "hello world" with Spring MVC, which has both the configuration and the Controller .
However, when accessing the URL localhost:8080/WebSpring/olaMundoSpring
, the 404 error page appears.
My application code is available from GitHub:
When I click on the URL it does not generate any errors in TomCat
Out 07, 2014 10:12:43 AM 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: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Out 07, 2014 10:12:43 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
ADVERTÊNCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:WebSpring' did not find a matching property.
Out 07, 2014 10:12:43 AM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["http-bio-8080"]
Out 07, 2014 10:12:43 AM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["ajp-bio-8009"]
Out 07, 2014 10:12:43 AM org.apache.catalina.startup.Catalina load
INFORMAÇÕES: Initialization processed in 962 ms
Out 07, 2014 10:12:43 AM org.apache.catalina.core.StandardService startInternal
INFORMAÇÕES: Starting service Catalina
Out 07, 2014 10:12:43 AM org.apache.catalina.core.StandardEngine startInternal
INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/7.0.55
Out 07, 2014 10:12:46 AM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: No Spring WebApplicationInitializer types detected on classpath
log4j:WARN No appenders could be found for logger (org.springframework.web.servlet.DispatcherServlet).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Out 07, 2014 10:12:46 AM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: Initializing Spring FrameworkServlet 'springmvc'
Out 07, 2014 10:12:47 AM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["http-bio-8080"]
Out 07, 2014 10:12:47 AM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["ajp-bio-8009"]
Out 07, 2014 10:12:47 AM org.apache.catalina.startup.Catalina start
INFORMAÇÕES: Server startup in 3562 ms