title: Running Objects in Play 2.0 Framework
body: <p>I create a Scala Play 2.0 project then add a <code>Test</code> object with a barebones <code>main</code> function.  </p>
  
  <p>When I run the <code>Test</code> object I get a <code>ClassDefNotFoundError</code>.  This is because the <code>Test</code> object is apparently not being compiled into a file in any project folder. </p>
  
  <p>Running the bundled Play server works fine.</p>
  
  <p>Has anyone tried adding a runnable object to a Scala Play framework project and had success?</p>
  
  <p>The <code>Test</code> object is being created in a new module, within the Play project named <code>test-module</code>.</p>
  
  <p>**** Update ****</p>
  
  <p>It seems like SBT is somehow conflicting with the 'test-module' module.  Play is an SBT project so it compiles to its 'target' directory.  However 'test-module' is not SBT and therefore wants to compile to the 'out' directory.  Problem is the compiled files never make it to the 'out' directory, in fact they don't make it to any directory at all.</p>