title: Play Framework + tomcat
body: <p>I need to run the play framework application on tomcat.
  i just made </p>
  
  <pre><code>./play war ganshla-ganshla -o ROOT.war --%production
  </code></pre>
  
  <p>then i add META-INF folder (because i tryed whithout it and got 404)
  i put context.xml into META_INF</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Context antiJARLocking="true" path="/ROOT"/&gt;
  </code></pre>
  
  <p>So now i have an error on the page: </p>
  
  <p>Application.index action not found </p>
  
  <p>in the server log i have:</p>
  
  <pre><code>play.exceptions.ActionNotFoundException: Action Application.index not found
  at play.mvc.ActionInvoker.getActionMethod(ActionInvoker.java:582)
  at play.mvc.ActionInvoker.resolve(ActionInvoker.java:84)
  at play.server.ServletWrapper$ServletInvocation.getInvocationContext(ServletWrapper.java:540)
  at play.Invoker$Invocation.init(Invoker.java:193)
  at play.Invoker$DirectInvocation.init(Invoker.java:292)
  at play.server.ServletWrapper$ServletInvocation.init(ServletWrapper.java:508)
  at play.Invoker$Invocation.run(Invoker.java:263)
  at play.server.ServletWrapper$ServletInvocation.run(ServletWrapper.java:525)
  at play.Invoker.invokeInThread(Invoker.java:67)
  at play.server.ServletWrapper.service(ServletWrapper.java:126)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  at java.lang.Thread.run(Thread.java:662)
  Caused by: java.lang.Exception: Controller controllers.Application not found
  ... 23 more
  04:07:37,225 WARN  ~ 404 -&gt; GET / (Application.index action not found)
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>tryed to make as discribed here <a href="https://stackoverflow.com/questions/4358286/how-to-use-war-context-in-configuration-file-of-play-framework">how to use &quot;war.context&quot; in Configuration file of Play Framework ?</a> and now i have empty page and this entry in log</p>
  
  <pre><code>INFO: Deploying web application archive ROOT.war
  Jun 1, 2011 4:33:29 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
  INFO: validateJarFile(/home/ganshla2/jvm/apache-tomcat-6.0.14/domains/ganshla-ganshla.com/ROOT/WEB-INF/lib/geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
  04:33:36,470 INFO  ~ Starting /home/ganshla2/jvm/apache-tomcat-6.0.14/domains/ganshla-ganshla.com/ROOT/WEB-INF/application
  04:33:37,265 INFO  ~ Application is precompiled
  </code></pre>