No mapping found for HTTP request with URI in DispatcherServlet with name 'appServlet'

I have got error No mapping found for HTTP request with URI [/myappname/] in DispatcherServlet with name 'appServlet' when I was starting my project on JBoss. This is issue has occurred after resolving another issue described here: "No Session found for current thread" after changing access method to the session

Before everything was working fine. I am using Apache Tiles 2. I am reading few similar questions but I can't find working solution.

This is my DispatcherServlet Context file without Hibernate configuration:

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns=""

<!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure -->

<!-- Enables the Spring MVC @Controller programming model -->
<tx:annotation-driven />
<context:annotation-config />
<context:component-scan base-package="finances.webapp" />

<!-- Handles HTTP GET requests for resources by efficiently serving up static resources in the ${webappRoot}/resources directory -->
<resources mapping="/resources/**" location="/resources/" />

<beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
    <beans:property name="definitions">

<beans:bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    <beans:property name="viewClass" value="org.springframework.web.servlet.view.tiles2.TilesView" />

My web.xml whole file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns=""

<!-- The definition of the Root Spring Container shared by all Servlets and Filters -->

<!-- Creates the Spring Container shared by all Servlets and Filters -->


<!-- Processes application requests -->



And this is my IndexController:

public class IndexController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index(Model model, Principal principal) {
        return "index";

What is wrong with my configuration at this moment?


I think your are missing <mvc:annotation-driven/> which is required to read the @Controller and @RequestMapping annotations. You can read more on this here and here.

Need Your Help

One method to access all resource values using reflection

c# reflection

I have a resources file (MyResources.resx) that contains eg.'Y%m%d%H%M%S') proper string format in Rails

ruby-on-rails ruby sidekiq

I'm trying to build a reference number for booking in Rails. I'm using

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.