I am trying to create a file on the filesystem, but I keep getting this exception:
java.io.IOException: No such file or directory
I have an
I got the same problem when using rest-easy. After searching while i figured that this error occured when there is no place to keep temporary files. So in tomcat you can just create tomcat-root/temp folder.
i fixed my problem by this code on linux file system
if (!file.exists())
Files.createFile(file.toPath());