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

Dúvida no Ex. 3 da Aula 1 - Primeiros passos com Spring MVC

Boa tarde senhores. Estou tentando problema no acesso da pagina. O servidor sobe normal porém quando eu tento acessao o caminho http://localhost:8080/contas/tabelas, eu recebo somente:

No navegador

Not Found

The requested URL /contas/tabelas was not found on this server.

Console

mar 01, 2016 5:15:28 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:contas' did not find a matching property.
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server version:        Apache Tomcat/7.0.68
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server built:          Feb 8 2016 20:25:54 UTC
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Server number:         7.0.68.0
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: OS Name:               Windows 7
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: OS Version:            6.1
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Architecture:          amd64
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Java Home:             G:\jre1.8.0_45
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: JVM Version:           1.8.0_73-b02
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: JVM Vendor:            Oracle Corporation
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: CATALINA_BASE:         G:\Programacao\Programas\apache-tomcat-7.0.68
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: CATALINA_HOME:         G:\Programacao\Programas\apache-tomcat-7.0.68
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dcatalina.base=G:\Programacao\Programas\apache-tomcat-7.0.68
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dcatalina.home=G:\Programacao\Programas\apache-tomcat-7.0.68
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dwtp.deploy=G:\Programacao\Programas\apache-tomcat-7.0.68\wtpwebapps
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Djava.endorsed.dirs=G:\Programacao\Programas\apache-tomcat-7.0.68\endorsed
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.VersionLoggerListener log
INFORMAÇÕES: Command line argument: -Dfile.encoding=Cp1252
mar 01, 2016 5:15:28 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFORMAÇÕES: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\jre1.8.0_45\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_45/bin/server;C:/Program Files/Java/jre1.8.0_45/bin;C:/Program Files/Java/jre1.8.0_45/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Internet Explorer;C:\Program Files (x86)\VDownloader;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files\Common Files\Lenovo;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Internet Explorer;C:\Program Files (x86)\VDownloader;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;G:\jre1.8.0_45\bin;G:\Programacao\Instalacoes\apache-maven-3.3.9\bin;G:\Programacao\Programas\Eclipse Portable\Eclipse Mars;;.
mar 01, 2016 5:15:28 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["http-bio-8082"]
mar 01, 2016 5:15:28 PM org.apache.coyote.AbstractProtocol init
INFORMAÇÕES: Initializing ProtocolHandler ["ajp-bio-8009"]
mar 01, 2016 5:15:28 PM org.apache.catalina.startup.Catalina load
INFORMAÇÕES: Initialization processed in 736 ms
mar 01, 2016 5:15:28 PM org.apache.catalina.core.StandardService startInternal
INFORMAÇÕES: Starting service Catalina
mar 01, 2016 5:15:28 PM org.apache.catalina.core.StandardEngine startInternal
INFORMAÇÕES: Starting Servlet Engine: Apache Tomcat/7.0.68
mar 01, 2016 5:15:31 PM org.apache.catalina.startup.TldConfig execute
INFORMAÇÕES: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
mar 01, 2016 5:15:31 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: No Spring WebApplicationInitializer types detected on classpath
mar 01, 2016 5:15:32 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: Initializing Spring FrameworkServlet 'spring mvc'
17:15:32,457  INFO DispatcherServlet:479 - FrameworkServlet 'spring mvc': initialization started
17:15:32,509  INFO XmlWebApplicationContext:513 - Refreshing WebApplicationContext for namespace 'spring mvc-servlet': startup date [Tue Mar 01 17:15:32 BRT 2016]; root of context hierarchy
17:15:32,600  INFO XmlBeanDefinitionReader:316 - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-context.xml]
17:15:33,741  INFO RequestMappingHandlerMapping:197 - Mapped "{[/tabelas],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.caelum.contas.controller.InfraController.criaBanco() throws java.sql.SQLException
17:15:34,289  INFO DispatcherServlet:498 - FrameworkServlet 'spring mvc': initialization completed in 1829 ms
mar 01, 2016 5:15:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\docs
mar 01, 2016 5:15:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deployment of web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\docs has finished in 103 ms
mar 01, 2016 5:15:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\examples
mar 01, 2016 5:15:35 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: ContextListener: contextInitialized()
mar 01, 2016 5:15:35 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: SessionListener: contextInitialized()
mar 01, 2016 5:15:35 PM org.apache.catalina.core.ApplicationContext log
INFORMAÇÕES: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@5fbc0da6')
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deployment of web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\examples has finished in 898 ms
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\host-manager
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deployment of web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\host-manager has finished in 122 ms
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\manager
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deployment of web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\manager has finished in 121 ms
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deploying web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\ROOT
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.HostConfig deployDirectory
INFORMAÇÕES: Deployment of web application directory G:\Programacao\Programas\apache-tomcat-7.0.68\webapps\ROOT has finished in 92 ms
mar 01, 2016 5:15:35 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["http-bio-8082"]
mar 01, 2016 5:15:35 PM org.apache.coyote.AbstractProtocol start
INFORMAÇÕES: Starting ProtocolHandler ["ajp-bio-8009"]
mar 01, 2016 5:15:35 PM org.apache.catalina.startup.Catalina start
INFORMAÇÕES: Server startup in 7114 ms

web.html

<?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>contas</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>

    <!-- Declaracao do servlet do Spring MVC abaixo-->
    <servlet>
        <servlet-name>spring mvc</servlet-name>
    <servlet-class>
        org.springframework.web.servlet.DispatcherServlet
    </servlet-class>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
    /WEB-INF/spring-context.xml
    </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>spring mvc</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
</web-app>
1 resposta
solução!

Desculpa pessoal pela "newbisse" mas consegui achar o problema. Estava utilizando a porta 8080 e meu Tomcat ta usando porta 8082 por conta do Skype.