aspose file tools*
The moose likes Spring and the fly likes Spring MVC: No mapping found for HTTP request with URI [....] in DispatcherServlet. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring MVC: No mapping found for HTTP request with URI [....] in DispatcherServlet. " Watch "Spring MVC: No mapping found for HTTP request with URI [....] in DispatcherServlet. " New topic
Author

Spring MVC: No mapping found for HTTP request with URI [....] in DispatcherServlet.

Sunny Jassal
Greenhorn

Joined: Feb 08, 2011
Posts: 13
I new to Spring MVC so please bear with me. Any help would be greatly appreciated as I am not able to get a simple MVC app up and running.

When I execute:
http://localhost:8080/appname/homepage
or
http://localhost:8080/appname/process

I keep on getting 404 error with "The requested source is not available " on the browser
Log of tomcat shows: No mapping found for HTTP reques with URI [....] in DispatcherServlet.


However when I try http://localhost:8080/appname, the homepage is displayed.

I have the process.jsp and homepage.jsp files in WEB-INF/pages directory. Below are my xml and controller files.

Web.xml:

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>My App Name</display-name>

<servlet>
<servlet-name>appname</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>appname</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>



<welcome-file-list>
<welcome-file>homepage</welcome-file>
</welcome-file-list>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/appname-servlet.xml</param-value>
</context-param>



<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

</web-app>

appname-servlet.xml:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">


<mvc:annotation-driven />
<mvc:resources location="/images/" mapping="/images/**" />
<mvc:resources location="/js/" mapping="/js/**" />
<mvc:resources location="/css/" mapping="/css/**" />
<mvc:resources location="/html/" mapping="/html/**" />

<context:component-scan base-package="com.appname.controller" />


<mvc:view-controller path="/" view-name="homepage"/>


<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/pages/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>

<bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basename" value="classpath:messages" />
<property name="defaultEncoding" value="UTF-8" />
</bean>




<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
p:location="/WEB-INF/appname.properties" />

<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.databaseurl}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
</bean>

<!-- Declare the Hibernate SessionFactory for retrieving Hibernate sessions -->


<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan" value="com.appname.dataobjects" />
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
</props>
</property>
</bean>


<!-- Enable annotation style of managing transactions -->
<tx:annotation-driven transaction-manager="transactionManager" />

<bean id="transactionManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="dataSource" ref="dataSource" />
<property name="sessionFactory" ref="sessionFactory" />
</bean>

</beans>

HompageController

package com.appname.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class HomepageController {

@RequestMapping(value="/homepage", method = RequestMethod.GET)
public String displayHome(ModelMap model){
return "homepage"; //goes to homepage.jsp
}

}
ProcessController:

package com.appname.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class ProcessController {

@RequestMapping(value="/process", method = RequestMethod.GET)
public String displayHome(ModelMap model){
return "process"; //goes to process.jsp
}

}

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

It looks perfect for me. Have you checked if there is any error in the tomcat console while string up spring application?
Your application is not loaded the spring context information, that's why its not registered the RequestMapping paths.

Please verify and let me know if everything is fine.


Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Sunny Jassal
Greenhorn

Joined: Feb 08, 2011
Posts: 13
Thanks for the reply. I do not see anything out of the ordinary in the logs. I have two apps (appname and appname2) out of which one works fine. Appname is the one that I am having issues with. Here is the log:

Oct 24, 2013 12:30:04 PM 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: /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386:/usr/lib/jvm/java-6-openjdk-i386/jre/../lib/i386:/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Oct 24, 2013 12:30:06 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 24, 2013 12:30:06 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 24, 2013 12:30:06 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2621 ms
Oct 24, 2013 12:30:06 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 24, 2013 12:30:06 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Oct 24, 2013 12:30:06 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/sunny/apache-tomcat-7.0.37/webapps/appname.war
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Oct 24, 2013 12:30:10 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Oct 24, 2013 12:30:11 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Oct 24, 2013 12:30:11 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Oct 24, 2013 12:30:11 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Oct 24, 2013 12:30:11 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Oct 24, 2013 12:30:11 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Thu Oct 24 12:30:11 EDT 2013]; root of context hierarchy
Oct 24, 2013 12:30:11 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/appname-servlet.xml]
Oct 24, 2013 12:30:12 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from ServletContext resource [/WEB-INF/appname.properties]
Oct 24, 2013 12:30:12 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b11b79: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#3,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource,propertyConfigurer,dataSource,sessionFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
Oct 24, 2013 12:30:14 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
Oct 24, 2013 12:30:14 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/js/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
Oct 24, 2013 12:30:14 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
Oct 24, 2013 12:30:14 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/html/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3'
Oct 24, 2013 12:30:14 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
Oct 24, 2013 12:30:14 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
Oct 24, 2013 12:30:14 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
Oct 24, 2013 12:30:14 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.10.Final}
Oct 24, 2013 12:30:14 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Oct 24, 2013 12:30:14 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Oct 24, 2013 12:30:15 PM org.hibernate.engine.jdbc.internal.JdbcServicesImpl configure
WARN: HHH000342: Could not obtain connection to query metadata : Access denied for user 'wappname2'@'localhost' (using password: YES)
Oct 24, 2013 12:30:15 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Oct 24, 2013 12:30:15 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000422: Disabling contextual LOB creation as connection was null
Oct 24, 2013 12:30:15 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Oct 24, 2013 12:30:15 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
Oct 24, 2013 12:30:16 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 5042 ms
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'appname': initialization started
Oct 24, 2013 12:30:16 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'appname-servlet': startup date [Thu Oct 24 12:30:16 EDT 2013]; parent: Root WebApplicationContext
Oct 24, 2013 12:30:16 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/appname-servlet.xml]
Oct 24, 2013 12:30:16 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from ServletContext resource [/WEB-INF/appname.properties]
Oct 24, 2013 12:30:16 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@46a09b: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#3,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource,propertyConfigurer,dataSource,sessionFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@1b11b79
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/js/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/html/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#3'
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
Oct 24, 2013 12:30:16 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
Oct 24, 2013 12:30:16 PM org.hibernate.engine.jdbc.internal.JdbcServicesImpl configure
WARN: HHH000342: Could not obtain connection to query metadata : Access denied for user 'wappname2'@'localhost' (using password: YES)
Oct 24, 2013 12:30:16 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Oct 24, 2013 12:30:16 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000422: Disabling contextual LOB creation as connection was null
Oct 24, 2013 12:30:16 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Oct 24, 2013 12:30:16 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
Oct 24, 2013 12:30:16 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'appname': initialization completed in 678 ms
Oct 24, 2013 12:30:17 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /home/sunny/apache-tomcat-7.0.37/webapps/appname2.war
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
Oct 24, 2013 12:30:20 PM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
Oct 24, 2013 12:30:20 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Oct 24, 2013 12:30:20 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Thu Oct 24 12:30:20 EDT 2013]; root of context hierarchy
Oct 24, 2013 12:30:20 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/appname2-servlet.xml]
Oct 24, 2013 12:30:21 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from ServletContext resource [/WEB-INF/appname2.properties]
Oct 24, 2013 12:30:21 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@16f4ce0: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,disclaimerController,lookupKeyController,homepageContentController,lookupValueController,adminController,menuController,beanContentController,underConstructionController,promotionController,headerController,homePageController,lookupValueServiceImpl,lookupKeyServiceImpl,lookupKeyFormValidator,lookupValueFormValidator,lookupValueDAOImpl,lookupKeyDAOImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource,propertyConfigurer,dataSource,sessionFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/splash.html],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.DisclaimerController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/homepagecontent],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomepageContentController.insertHomepage(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/menu],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.MenuController.displayMenu(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/appname2content],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.BeanContentController.getBeanContent(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/underconstruction],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.UnderConstructionController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/promotioncontent],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.appname2.frontend.controller.PromotionController.getPromotion(javax.servlet.http.HttpServletRequest)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/header],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HeaderController.insertHeader(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/homepage],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomePageController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/prodhomepage],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomePageController.displayHomeProd(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/js/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
Oct 24, 2013 12:30:22 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
Oct 24, 2013 12:30:22 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
Oct 24, 2013 12:30:23 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
Oct 24, 2013 12:30:23 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.10.Final}
Oct 24, 2013 12:30:23 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Oct 24, 2013 12:30:23 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Oct 24, 2013 12:30:24 PM org.hibernate.engine.jdbc.internal.JdbcServicesImpl configure
WARN: HHH000342: Could not obtain connection to query metadata : Access denied for user 'wappname2'@'localhost' (using password: YES)
Oct 24, 2013 12:30:24 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Oct 24, 2013 12:30:24 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000422: Disabling contextual LOB creation as connection was null
Oct 24, 2013 12:30:24 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Oct 24, 2013 12:30:24 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
Oct 24, 2013 12:30:25 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
Oct 24, 2013 12:30:25 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 5456 ms
Oct 24, 2013 12:30:25 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'appname2': initialization started
Oct 24, 2013 12:30:25 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'appname2-servlet': startup date [Thu Oct 24 12:30:25 EDT 2013]; parent: Root WebApplicationContext
Oct 24, 2013 12:30:25 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/appname2-servlet.xml]
Oct 24, 2013 12:30:26 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from ServletContext resource [/WEB-INF/appname2.properties]
Oct 24, 2013 12:30:26 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e1225d: defining beans [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#2,disclaimerController,lookupKeyController,homepageContentController,lookupValueController,adminController,menuController,beanContentController,underConstructionController,promotionController,headerController,homePageController,lookupValueServiceImpl,lookupKeyServiceImpl,lookupKeyFormValidator,lookupValueFormValidator,lookupValueDAOImpl,lookupKeyDAOImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.view.InternalResourceViewResolver#0,messageSource,propertyConfigurer,dataSource,sessionFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@16f4ce0
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/splash.html],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.DisclaimerController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/homepagecontent],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomepageContentController.insertHomepage(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/menu],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.MenuController.displayMenu(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/appname2content],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.BeanContentController.getBeanContent(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/underconstruction],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.UnderConstructionController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/promotioncontent],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView com.appname2.frontend.controller.PromotionController.getPromotion(javax.servlet.http.HttpServletRequest)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/header],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HeaderController.insertHeader(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/homepage],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomePageController.displayHome(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractHandlerMethodMapping registerHandlerMethod
INFO: Mapped "{[/prodhomepage],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String com.appname2.frontend.controller.HomePageController.displayHomeProd(org.springframework.ui.ModelMap)
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/images/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/js/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Mapped URL path [/css/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#2'
Oct 24, 2013 12:30:26 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
Oct 24, 2013 12:30:26 PM org.hibernate.engine.jdbc.internal.JdbcServicesImpl configure
WARN: HHH000342: Could not obtain connection to query metadata : Access denied for user 'wappname2'@'localhost' (using password: YES)
Oct 24, 2013 12:30:26 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Oct 24, 2013 12:30:26 PM org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000422: Disabling contextual LOB creation as connection was null
Oct 24, 2013 12:30:26 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Oct 24, 2013 12:30:26 PM org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory <init>
INFO: HHH000397: Using ASTQueryTranslatorFactory
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.handler.AbstractUrlHandlerMapping registerHandler
INFO: Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
Oct 24, 2013 12:30:26 PM org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'appname2': initialization completed in 605 ms
Oct 24, 2013 12:30:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/sunny/apache-tomcat-7.0.37/webapps/ROOT
Oct 24, 2013 12:30:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/sunny/apache-tomcat-7.0.37/webapps/docs
Oct 24, 2013 12:30:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/sunny/apache-tomcat-7.0.37/webapps/host-manager
Oct 24, 2013 12:30:26 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/sunny/apache-tomcat-7.0.37/webapps/manager
Oct 24, 2013 12:30:27 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/sunny/apache-tomcat-7.0.37/webapps/examples
Oct 24, 2013 12:30:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Oct 24, 2013 12:30:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 24, 2013 12:30:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 21182 ms
Oct 24, 2013 12:32:11 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
INFO: 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.
Oct 24, 2013 12:32:22 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/appname/process] in DispatcherServlet with name 'appname'
Oct 24, 2013 12:32:29 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/appname/homepage] in DispatcherServlet with name 'appname'
Sunny Jassal
Greenhorn

Joined: Feb 08, 2011
Posts: 13
Here is the localhost_accessl_log:

127.0.0.1 - - [24/Oct/2013:12:31:39 -0400] "GET /appname/ HTTP/1.1" 404 993
127.0.0.1 - - [24/Oct/2013:12:31:43 -0400] "GET /appname/ HTTP/1.1" 404 993
127.0.0.1 - - [24/Oct/2013:12:31:47 -0400] "GET /appname/ HTTP/1.1" 404 993
127.0.0.1 - - [24/Oct/2013:12:31:52 -0400] "GET / HTTP/1.1" 200 11243
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /tomcat.css HTTP/1.1" 200 5576
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /tomcat.png HTTP/1.1" 200 5103
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /bg-nav.png HTTP/1.1" 200 1401
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /asf-logo.png HTTP/1.1" 200 17811
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /bg-upper.png HTTP/1.1" 200 3103
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /bg-middle.png HTTP/1.1" 200 1918
127.0.0.1 - - [24/Oct/2013:12:31:53 -0400] "GET /bg-button.png HTTP/1.1" 200 713
127.0.0.1 - - [24/Oct/2013:12:31:59 -0400] "GET /manager/html HTTP/1.1" 401 2486
127.0.0.1 - admin [24/Oct/2013:12:32:03 -0400] "GET /manager/html HTTP/1.1" 200 19357
127.0.0.1 - admin [24/Oct/2013:12:32:05 -0400] "GET /manager/images/asf-logo.gif HTTP/1.1" 200 7279
127.0.0.1 - admin [24/Oct/2013:12:32:05 -0400] "GET /manager/images/tomcat.gif HTTP/1.1" 200 2066
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/ HTTP/1.1" 200 4411
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/images/bulb-icon.png HTTP/1.1" 200 15717
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/js/homepage.js HTTP/1.1" 200 49
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/css/homepage.css HTTP/1.1" 200 2508
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/images/based_in_NY.png HTTP/1.1" 200 39813
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/images/upgrade-icon.png HTTP/1.1" 200 29732
127.0.0.1 - - [24/Oct/2013:12:32:13 -0400] "GET /appname/images/logo.png HTTP/1.1" 200 96112
127.0.0.1 - - [24/Oct/2013:12:32:22 -0400] "GET /appname/process HTTP/1.1" 404 949
127.0.0.1 - - [24/Oct/2013:12:32:29 -0400] "GET /appname/homepage HTTP/1.1" 404 949
127.0.0.1 - - [24/Oct/2013:12:32:35 -0400] "GET /appname/ HTTP/1.1" 200 4411
Sunny Jassal
Greenhorn

Joined: Feb 08, 2011
Posts: 13
After you confirming that all looks good I did more research and stumbled upon http://www.coderanch.com/t/485589/Spring/Spring-webMVC-org-springframework-web#2182271. It turns out that this is the same problem I am having. Basically my Controller class files are not in WEB-INF/classes folder. I created the war file from eclipse and yes it is a maven project. The question however is why isn't eclipse placing the class files in the appropriate folder and how do I get eclipse to generate the correct war file.
Sunny Jassal
Greenhorn

Joined: Feb 08, 2011
Posts: 13
After running mvn install on the project I got a new war file thinking that the issue was with eclipse. This time I found out that the classes folder now has the Controller files however they are not .class files they are .java files. I am so confused!
Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

So issues are with the build and environment. Have you fixed the issues.
If you are doing Maven and eclipse, then your eclipse project should be in the same recommended structure as used for Maven projects.

First you need to create maven web project and then convert to the Eclipse project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring MVC: No mapping found for HTTP request with URI [....] in DispatcherServlet.