title: 404 -The requested resource is not available. (Spring-mvc)
body: <p>I am not very familiar with Spring MVC view resolver.I am trying to return a JSP from my controller.
  My Controller method is getting executed properly but when returning view, i am getting <code>404 -The requested resource is not available</code> error.</p>
  
  <p>this is entry in my <code>servlet-context.xml</code> file</p>
  
  <pre><code>&lt;beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
    &lt;beans:property name="prefix" value="/WEB-INF/views/" /&gt;
    &lt;beans:property name="suffix" value=".jsp" /&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>this is how, i have defined resource structure</p>
  
  <pre><code>webapp
    --WEB-INF
        --views
           --shop
             --common
               --cart
                  myjsp.jsp
  </code></pre>
  
  <p>This is how, i am returning JSP view from controller</p>
  
  <pre><code>private final static String MYVIEW="shop/common/cart/myjsp";
  @RequestMapping(value={"/shop/myMethod.html"},  method = RequestMethod.GET)
       public String myMethod(HttpServletRequest request, Model model){
       return MYVIEW;
   }
  </code></pre>
  
  <p>this is my application home page URL</p>
  
  <pre><code>http://localhost:7777/my-shop/shop/
  </code></pre>
  
  <p>not sure where i am doing worng.</p>
  
  <p><em>Edit</em>
  We are using Tiles with spring and have seen this additional information</p>
  
  <pre><code>&lt;beans:bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
    &lt;beans:property name="viewClass"&gt;
      &lt;beans:value&gt;org.springframework.web.servlet.view.tiles2.TilesView&lt;/beans:value&gt;               
    &lt;/beans:property&gt;
  &lt;/beans:bean&gt;
  
  &lt;beans:bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"&gt;
    &lt;beans:property name="definitions"&gt;
      &lt;beans:list&gt;
        &lt;beans:value&gt;/WEB-INF/tiles/tiles-admin.xml&lt;/beans:value&gt;
        &lt;beans:value&gt;/WEB-INF/tiles/tiles-shop.xml&lt;/beans:value&gt;
      &lt;/beans:list&gt;
    &lt;/beans:property&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>Not sure how i can add additional view resolver?</p>
  
  <p>error</p>
  
  <p>The requested resource <code>(/my-shop/WEB-INF/views/shop/common/cart/myjsp.jsp)</code> is not available.<br>
  I noted down one more strange things, few JSPs under <code>WEB-INF/views</code> are accessible but when I placed new JSP on same location it is not working and giving same error.</p>