I am unable to upload a file on a unix system.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sandrine_banas
Posted On:   Saturday, April 6, 2002 08:31 AM

When I use the FormFile of struts to upload a file I have the error shown below. I have configured the temp directory in web.xml : tempDir /temp And my code is perfectly working on my personal computer (windows Me). But when I try my code on a unix server, it does not work. I do not know if it is the directory or the temporary file which creates the problem and why. The temporary directory has all the CHMOD rights necessary. Thanks for any help. [2002/04/06 09:45] No such file or directory java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1297) at    More>>

When I use the FormFile of struts to upload a file I have the error shown below.
I have configured the temp directory in web.xml :

			

tempDir
/temp


And my code is perfectly working on my personal computer (windows Me). But when I try my code on a unix server, it does not work. I do not know if it is the directory or the temporary file which creates the problem and why. The temporary directory has all the CHMOD rights necessary.

Thanks for any help.
			
[2002/04/06 09:45] No such file or directory
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1297)
at java.io.File.createTempFile(File.java:1385)
at org.apache.struts.upload.MultipartIterator.createLocalFile(MultipartIterator.java:481)
at org.apache.struts.upload.MultipartIterator.getNextElement(MultipartIterator.java:217)
at org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMultipartRequestHandler.java:76)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735)
at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2061)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:334)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:266)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:539)
   <<Less

Re: I am unable to upload a file on a unix system.

Posted By:   Dave_Bettin  
Posted On:   Sunday, April 7, 2002 09:22 PM

Are you sure there is enough disk space?
About | Sitemap | Contact