title: Render from controller is working fine in development but not in test
body: <p>I have the following code in my grails app:</p>
  
  <pre><code>def list () {
    def roles = principal.authorities*.authority
    def page = roles.contains("ROLE_ADMIN")? "allcolors": "usercolors"
    if (params.sort == "latest" || params.sort == null) {
      logger.debug("came in if");
      render view: page, model: [colorlist: colorService.colorList()]
    } 
    else
      render view: page, model: [colorlist: colorService.colorListForUser()]
  }
  </code></pre>
  
  <p>When I run my application with <code>grails run-app</code> the above code works fine. However, when I deploy the war file created by <code>grails test war target/myapp.war</code> the above code does not work and errors with "Page not found" even though the debug statement <code>came in if</code> still gets printed. </p>
  
  <p>I've tried to run this app in development with <code>grails test run-app</code> as well but even then the above does not work. Interestingly, when I run the app in <code>prod</code> mode (<code>grails prod run-app</code>) everything works fine as well. So it is certainly something to do with the <code>test</code> environment </p>
  
  <p>Also, to ensure there aren't any data discrepancies I've changed dev test and prod to point at the same development database. </p>
  
  <p>Could it be that my app has some special setting for test environment that I'm failing to see ...which would cause "render" to not work?</p>
  
  <p>My environment looks like this: </p>
  
  <pre><code>    environments {
          development {
              grails.logging.jul.usebridge = true
          }
          test {
              grails.logging.jul.usebridge = true
          }
          production {
              grails.logging.jul.usebridge = false
          }
      }
  
  And DB config looks like this:
  
  environments {
      development {
          dataSource {
              dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
              url = "jdbc:mysql://localhost/myapp?useUnicode=yes&amp;zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8"
              username = "root"
              password = ""
          }
          hibernate {
          }
      }
      test {
          dataSource {
              dbCreate = 
              url = "jdbc:mysql://localhost/myapp?useUnicode=yes&amp;zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8"
              username = "root"
              password = ""
              properties {
              }
              hibernate {
              }
          }
      }
      production {
          dataSource {
              dbCreate = "create-drop"
              url = "jdbc:mysql://localhost/myapp?useUnicode=yes&amp;zeroDateTimeBehavior=convertToNull&amp;characterEncoding=UTF-8"
              username = "root"
              password = ""
          }
      }
  }
  </code></pre>
  
  <p>How can I resolve this or troubleshoot it further??</p>