在Ubuntu上播放1.2.3

时间:2012-09-07 19:09:40

标签: java ubuntu playframework-1.x

我正在尝试在Ubuntu上运行play-1.2.3。它给了我以下错误:

@6bie96pcn
Internal Server Error (500) for request GET /favicon.ico

Oops: RuntimeException
An unexpected error occured caused by exception RuntimeException: java.io.FileNotFoundException: /usr/lib/play-1.2.3/play-1.2.3/samples-and-tests/forum/tmp/bytecode/DEV/DocViewerPlugin (No such file or directory)

play.exceptions.UnexpectedException: Unexpected Error
    at play.Play.start(Play.java:525)
    at play.Play.detectChanges(Play.java:599)
    at play.Invoker$Invocation.init(Invoker.java:186)
    at Invocation.HTTP Request(Play!)
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: /usr/lib/play-1.2.3/play-1.2.3/samples-and-tests/forum/tmp/bytecode/DEV/DocViewerPlugin (No such file or directory)
    at play.classloading.BytecodeCache.cacheBytecode(BytecodeCache.java:103)
    at play.classloading.ApplicationClassloader.loadApplicationClass(ApplicationClassloader.java:159)
    at play.classloading.ApplicationClassloader.loadClass(ApplicationClassloader.java:84)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at play.plugins.PluginCollection.reloadApplicationPlugins(PluginCollection.java:141)
    at play.Play.start(Play.java:440)
    ... 3 more
Caused by: java.io.FileNotFoundException: /usr/lib/play-1.2.3/play-1.2.3/samples-and-tests/forum/tmp/bytecode/DEV/DocViewerPlugin (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
    at play.classloading.BytecodeCache.cacheBytecode(BytecodeCache.java:84)
    ... 8 more
14:42:40,419 ERROR ~ 

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

我会建立以下2点。

文件和目录 /usr/lib/play-1.2.3/play-1.2.3/samples-and-tests/forum/tmp/bytecode/DEV/DocViewerPlugin 是否存在?< / p>

是否有权访问/usr/lib/play-1.2.3/play-1.2.3/samples-and-tests/forum/tmp/bytecode/DEV/DocViewerPlugin?