我在命令“play test”或“play auto-test”方面遇到了一些问题......第一个命令给了我这样的东西:
My-heaven:jobboard Droid$ play test
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.3, http://www.playframework.org
~ framework ID is test
~
~ Running in test mode
~ Ctrl+C to stop
~
Listening for transport dt_socket at address: 8000
23:07:33,827 INFO ~ Starting /Users/Droid/Downloads/play-1.2.3/play-1.2.3/samples-and-tests/jobboard
23:07:33,832 WARN ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
23:07:33,833 INFO ~ Module crud is available (/Users/Droid/Downloads/play-1.2.3/play-1.2.3/modules/crud)
23:07:34,858 WARN ~ You're running Play! in DEV mode
23:07:35,020 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
http://localhost:9000/@tests向我显示,找不到路线。在“播放自动测试”之后,输出如下所示:
My-heaven:jobboard Droid$ play auto-test
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.3, http://www.playframework.org
~ framework ID is test
~
~ Running in test mode
~ Ctrl+C to stop
~
~ Deleting /Users/Droid/Downloads/play-1.2.3/play-1.2.3/samples-and-tests/jobboard/tmp
~
Listening for transport dt_socket at address: 8000
23:09:29,670 INFO ~ Starting /Users/Droid/Downloads/play-1.2.3/play-1.2.3/samples-and-tests/jobboard
23:09:29,678 WARN ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
23:09:29,679 INFO ~ Module crud is available (/Users/Droid/Downloads/play-1.2.3/play-1.2.3/modules/crud)
23:09:30,913 WARN ~ You're running Play! in DEV mode
23:09:31,077 INFO ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
~
Exception in thread "main" java.lang.NoClassDefFoundError: play/modules/testrunner/FirePhoque
Caused by: java.lang.ClassNotFoundException: play.modules.testrunner.FirePhoque
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
~
这有什么问题?
答案 0 :(得分:1)
解决 - 从Github下载并构建当前版本。