Short version:
JRuby or Scala, not Groovy. For deployment, Rails has warbler, Scala
has 'mvn package'.
Long version:
I built a project in Groovy at ePrize. I haven't built anything in
Ruby or Scala as substantial as that Groovy project; take my opinion
for what it's worth.
When finished the Groovy project I found myself disliking Groovy. It
reminds me of perl, a hodgepodge of features layered on top of each
other, lacking a sense of cohesion or good language design. It's a
middle of the road solution, which seems pragmatic initially, but ends
up feeling mediocre after using it. In my beginning forays I find both
Ruby and Scala preferable to Groovy.
James Strachan, Groovy co-creator, recommends Scala:
"I can honestly say if someone had shown me the Programming in Scala
book by by Martin Odersky, Lex Spoon & Bill Venners back in 2003 I'd
probably have never created Groovy."
http://macstrac.blogspot.com/2009/04/scala-as-long-term-replacement-for.html
He continues to blog about Scala.
Groovy has the drawback of a dynamically typed language in terms of
tooling, but doesn't feel like the best such language. Scala
eliminates a lot of the boilerplate in Java and has good tooling
support as of 2011 (refactoring, code navigation, code assist in all
major Java IDEs).
For deploying, JRuby has the Warbler gem for packaging up a Rails app
as a WAR file. For Scala it's 'mvn package' assuming we've built on
top of the Servlet API.