Play / Azure -- NoClassDefFoundError on play.api.Configuration

18 views
Skip to first unread message

Scott Shipp

unread,
Oct 16, 2016, 2:37:17 PM10/16/16
to Play Framework
Hey I don't know if anyone uses Azure but I am having a bit of an issue running Play on it. I mostly followed the directions at http://blog.throput.com/post/140682310245/deploy-play-scala-apps-with-azure-web-app and I think I'm most of the way there. But what I'm getting now is a NoClassDefFoundError when the app tries to spin up:

java.lang.NoClassDefFoundError: play/api/Configuration
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: play.api.Configuration
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 

Anyone have any ideas? The app classpath seems to be right and working (points to \lib directory inside the distribution). 

Thanks
Reply all
Reply to author
Forward
0 new messages