play scala "does not seem to host a valid application"

250 views
Skip to first unread message

Thomas Wiradikusuma

unread,
Apr 26, 2011, 9:13:48 AM4/26/11
to play-framework
Hi guys, I'm just starting to learn Play with scala, but I can't make
it work. Here's the screen (I paste all, in case it's important):

septerra:~ wiradikusuma$ play install scala-0.9
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2, http://www.playframework.org
~
~ Will install scala-0.9
~ This module is compatible with: 1.2
~ Do you want to install this version (y/n)? y
~ Installing module scala-0.9...
~
~ Fetching http://www.playframework.org/modules/scala-0.9.zip
~ [--------------------------100%-------------------------] 14707.1
KiB/s
~ Unzipping...
~
~ Module scala-0.9 is installed!
~ You can now use it by add adding this line to application.conf file:
~
~ module.scala=${play.path}/modules/scala-0.9
~
septerra:~ wiradikusuma$ cd Documents/sandbox/play/
septerra:play wiradikusuma$ play new myScalaApp --with scala
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2, http://www.playframework.org
~
~ The new application will be created in /users/wiradikusuma/Documents/
sandbox/play/myScalaApp
~ What is the application name? [myScalaApp]
~
~ Resolving dependencies using /users/wiradikusuma/Documents/sandbox/
play/myScalaApp/conf/dependencies.yml,
~
~ play->scala 0.9 (from playLocalModules)
~
~ Installing resolved dependencies,
~
~ modules/scala-0.9 -> /java/play-1.2/modules/scala-0.9
~
~ Synchronizing, deleting unknown dependencies
~
~ Deleted: /users/wiradikusuma/Documents/sandbox/play/myScalaApp/
modules/scala-0.9
~
~
~ Done!
~
~ OK, the application is created.
~ Start it with : play run myScalaApp
~ Have fun!
~
septerra:play wiradikusuma$ cd myScalaApp/
septerra:myScalaApp wiradikusuma$ play run myScalaApp
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2, http://www.playframework.org
~
~ Oops. conf/routes or conf/application.conf missing.
~ /users/wiradikusuma/Documents/sandbox/play/myScalaApp/myScalaApp
does not seem to host a valid application.
~
septerra:myScalaApp wiradikusuma$

What did I miss?

Julien Richard-Foy

unread,
Apr 26, 2011, 9:29:32 AM4/26/11
to play-fr...@googlegroups.com
You may either call `play run path/to/your/app` or just `play run` if
your current directory is your application root directory. You were in
the latter case after running the `cd myScalaApp/` (so write `play
run` instead of `play run myScalaApp/` to run your application).

Thomas Wiradikusuma

unread,
Apr 26, 2011, 9:33:58 PM4/26/11
to play-framework
Thanks, didn't notice that. I'll try it once I reach home.
Reply all
Reply to author
Forward
0 new messages