I'm having trouble reproducing this, because I can't even get play off
the ground anymore. It was working before I tried going back to 1.5
this morning. Coming back to 1.5 doesn't seem to help. I'm getting:
Listening for transport dt_socket at address: 8000
13:38:18,011 INFO ~ Starting
/Users/bv/nobkp/delus/playWithPlay/tryit/myScalaWebapp
13:38:18,014 INFO ~ Module scala is available
(/usr/artima/play-1.2.2RC2/modules/scala-0.9.1)
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
I'll try reinstalling play and its Scala support from scratch.
Bill
> --
> You received this message because you are subscribed to the Google
> Groups "scalatest-users" group.
> To post to this group, send email to scalate...@googlegroups.com
> To unsubscribe from this group, send email to
> scalatest-use...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/scalatest-users?hl=en
> ScalaTest itself, and documentation, is available here:
> http://www.artima.com/scalatest
>
--
Bill Venners
Artima, Inc.
http://www.artima.com
Which versions of play and the play Scala plugin are you using?
Bill
On Tue, Jun 21, 2011 at 10:46 AM, Ryan Neufeld <ry...@gushhq.com> wrote:
OK. I'll try those versions, but I may be blocked. I tried
redownloading Play 1.2.2RC2 and Scala plugin 0.9.1 and I get the same
exception. I may have to reinstall the OS, and I can't do that until
later this week, as I am on a trip. The one thing I would like to try,
which perhaps you could try if you don't mind, is to use Scala 2.9.0
instead of 2.9.0-1. 2.9.0-1 is supposed to be binary compatible with
2.9.0, but what you're seeing is something missing in the Scala
library. So just to make sure it isn't that, the trick would be to try
it with Scala 2.9.0 and see if you get the same error. Can you give
that a try while I wrestle with Apple Java pains?
Thanks.
Bill
I'm at an Apple genius bar to see if I can get back to square 1. Will
probably need to reinstall the OS, which would require I do a backup,
and they probably won't load me a drive. Unfortunately I'm on the road
so have limited options. I did have play working before trying to
install Java 1.5 this morning, so I'm pretty sure that screwed it up.
Bill
I have yet to get a new play app working, so I can't try this. One
other thing I wanted to try is to use 2.8.1. I'm wondering if Play
requires Scala 2.8.1. It says on this page that "The included Scala
version is 2.8.1," but doesn't say if that's required:
http://scala.playframework.org/documentation/scala-0.9.1/install
If so then ScalaTest 1.6.1 for sure wouldn't work with 0.9.1 of the
play Scala plugin, and likely wouldn't work with the 0.9 version
you're using. You'd need to use ScalaTest 1.5.1.RC1. Would you mind
trying that? If that works, then my best guess is simply that
Play/Scala currently requires Scala 2.8.1.
Sorry I can't try these myself. It should be easy but Apple is making
it complicated.
Bill
On Tuesday, June 21, 2011 at 7:01 PM, Ryan Neufeld wrote:
I'll give it a try tomorrow morning. Thanks for giving
--
Ryan Neufeld
I figured out my problem! Had a very old JAVA_HOME set that play was
picking up. It pointed to 1.5 home, which until this morning just
pointed to 1.6, but now is really 1.5.
Did you do anything other than "play test" to get your error message?
When I say "play test" it goes and if I go to
http://localhost:9000/@tests it seems to be running it. I put in
another test that fails and it runs it fine. This is using whatever
ScalaTest version comes with Play/Scala. How did you upgrade to
ScalaTest 1.6.1?
Bill
Sure no problem. I happened to be trying to move from wicket to
play/Scala for scalatest.org's site. So it was something I needed to
get working anyway. All these version dependencies can be confusing
for sure. Let me know if you have any other problems or insights in
how to use ScalaTest with play.
Bill