Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
java.io.FileNotFoundException:~/play-2.1.1/framework/sbt/boot/update.log(没有这样的文件或目录)_Java_Playframework_Playframework 2.0_Sbt_Filenotfoundexception - Fatal编程技术网

java.io.FileNotFoundException:~/play-2.1.1/framework/sbt/boot/update.log(没有这样的文件或目录)

java.io.FileNotFoundException:~/play-2.1.1/framework/sbt/boot/update.log(没有这样的文件或目录),java,playframework,playframework-2.0,sbt,filenotfoundexception,Java,Playframework,Playframework 2.0,Sbt,Filenotfoundexception,我编写了一个Puppet,在运行CentOS 6.2的虚拟机上安装Play 2.1.1 木偶执行以下两个命令: /usr/bin/wget http://downloads.typesafe.com/play/2.1.1/play-2.1.1.zip /usr/bin/unzip play-2.1.1.zip 当我在包中运行play命令时,它会显示以下错误消息: java.io.FileNotFoundException: ~/play-2.1.1/framework/sbt/boot/up

我编写了一个Puppet,在运行CentOS 6.2的虚拟机上安装Play 2.1.1

木偶执行以下两个命令:

/usr/bin/wget http://downloads.typesafe.com/play/2.1.1/play-2.1.1.zip

/usr/bin/unzip play-2.1.1.zip
当我在包中运行
play
命令时,它会显示以下错误消息:

java.io.FileNotFoundException: ~/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
    at java.io.FileWriter.<init>(FileWriter.java:90)
    at xsbt.boot.Update.<init>(Checks.java:51)
    at xsbt.boot.Launch.update(Launch.scala:275)
    at xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120)
    at scala.Option.getOrElse(Option.scala:108)
    at xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115)
    at xsbt.boot.Launch.<init>(Launch.scala:94)
    at xsbt.boot.Launcher$.apply(Launch.scala:290)
    at xsbt.boot.Launch$.apply(Launch.scala:16)
    at xsbt.boot.Boot$.runImpl(Boot.scala:31)
    at xsbt.boot.Boot$.main(Boot.scala:20)
    at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException: ~/play-2.1.1/framework/sbt/boot/update.log (No such file or directory)
java.io.FileNotFoundException:~/play-2.1.1/framework/sbt/boot/update.log(没有这样的文件或目录)
在java.io.FileOutputStream.open(本机方法)
位于java.io.FileOutputStream。(FileOutputStream.java:209)
位于java.io.FileOutputStream。(FileOutputStream.java:160)
位于java.io.FileWriter(FileWriter.java:90)
在xsbt.boot.Update。(Checks.java:51)
位于xsbt.boot.Launch.update(Launch.scala:275)
在xsbt.boot.Launch$$anonfun$jnaLoader$1.apply(Launch.scala:120)
位于scala.Option.getOrElse(Option.scala:108)
位于xsbt.boot.Launch.jnaLoader$2f324eef(Launch.scala:115)
在xsbt.boot.Launch.(Launch.scala:94)
位于xsbt.boot.Launcher$.apply(Launch.scala:290)
在xsbt.boot.Launch$.apply(Launch.scala:16)
在xsbt.boot.boot$.runImpl处(boot.scala:31)
在xsbt.boot.boot$.main处(boot.scala:20)
位于xsbt.boot.boot.main(boot.scala)
sbt执行期间出错:java.io.FileNotFoundException:~/play-2.1.1/framework/sbt/boot/update.log(没有此类文件或目录)

我没有更改
play-2.1.1
目录中的一行代码。我搜索了一下错误信息,但没有找到任何有用的答案。有人能指出问题所在吗?

如果文件不存在且无法创建,
FileOutputStream
将引发
FileNotFoundException
(是的,这看起来很奇怪,但是)


此错误可能意味着启动play的用户没有创建
~/play-2.1.1/framework/sbt/boot/update.log
或其父目录的适当权限。

哦,刚刚意识到这可能是的副本。谢谢,@gouraysama!但错误消息看起来不同。问题确实是用户没有在目录中创建文件的适当权限。