[1.2] Error using Joda and Scala

147 views
Skip to first unread message

Marcus Downing

unread,
Dec 23, 2011, 5:25:02 PM12/23/11
to play-fr...@googlegroups.com
There appears to be something amiss with the Joda library shipped with Play. When using Joda classes from Scala, it gives the error:

error while loading DateTime, Missing dependency 'class org.joda.convert.FromString'

This can be fixed by putting the Joda convert jar file into your lib folder. There are suggestions on the web that Scala treats optional dependencies like @attributes differently from Java, requiring dependencies that Java would treat as optional. The easiest way round this is to include the Joda convert jar alongside the Joda jar.

I haven't tested this with Play 2.0, but a brief look shows that it doesn't include the convert jar so there's a good chance it's also affected.

Will Sargent

unread,
Dec 24, 2011, 2:16:24 PM12/24/11
to play-fr...@googlegroups.com
It was; I ran into this myself and had the same solution (download the joda convert jar and include it).

Will.

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/EYKcS-BqQpoJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Will Sargent

unread,
Dec 24, 2011, 2:16:47 PM12/24/11
to play-fr...@googlegroups.com
To clarify, this was on Play 2.0.
Reply all
Reply to author
Forward
0 new messages