title: Can't access index.gsp in grails
body: <p>I am new to grails and I am trying to access index page. After deleting the default homepage for grails, I getting the following error
      404 App1/WEB-INF/grails-app/views/index.jsp</p>
  
  <pre><code>description The requested resource is not available. 
  </code></pre>
  
  <p>I checked UrlMapping and view is set to index</p>
  
  <pre><code>    "/"(view:"/index")
      "500"(view:'/error')
  </code></pre>
  
  <p>My controller class</p>
  
  <pre><code>package  App1grailsapp
  
  class TeamController {
  
   def index() { }
  
      def teams()
      {
          [teams:Team.list()]
      }
  
  
  }
  </code></pre>
  
  <p>And I have two gsp pages, </p>
  
  <p>index </p>
  
  <pre><code>&lt;!--
    To change this license header, choose License Headers in Project Properties.
    To change this template file, choose Tools | Templates
    and open the template in the editor.
  --&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;Sample title&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
        &lt;h2&gt;&lt;g:message code="welcome"/&gt;&lt;/h2&gt;
  
          &lt;ul&gt;
              &lt;li&gt;&lt;g:link action="teams"&gt;Display all teams&lt;/g:link&gt;&lt;/li&gt;
  
          &lt;/ul&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and teams</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta name="layout" content="main"&gt;
          &lt;title&gt;Teams&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h2&gt;Teams:&lt;/h2&gt;
  
          &lt;table&gt;
              &lt;tr&gt;
              &lt;thead&gt;
                  &lt;th&gt;Name&lt;/th&gt;
  
              &lt;/thead&gt;
              &lt;/tr&gt;
              &lt;g:each var="team" in="${teams}"&gt;
                  &lt;tr&gt;
                      &lt;td&gt;${team.name}&lt;/td&gt;
  
                  &lt;/tr&gt;
              &lt;/g:each&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I don't understand why index.gsp page is not being shown?</p>