java - Writing temp file in tomcat 7.0 fails -


i try write temporary file tomcat 7.0 application. fails:

servlet code snippet:

  file formfile = file.createtempfile("document", ".pdf"); 

exception

  java.io.ioexception: no such file or directory     @ java.io.unixfilesystem.createfileexclusively(native method)     @ java.io.file.createtempfile(file.java:1879)     @ java.io.file.createtempfile(file.java:1923)     @ goget(servlettest.java:20)} 

i guess catalina.policy in way. how can enable temp files web applications?

tomcat missing temp directory.

above issue got fixed on tomcat creating temp directory in tomcat base directory(cataline_home directory).


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -