Page 1 of 1
Where are the uploaded files in Lunix? Plus other issues.
Posted: Mon Dec 21, 2009 1:05 pm
by onyii5119
I tested JFileUpload in windows XP and was able to see the uploaded files in the directory I specified in process.jsp. Then I moved it to Linux box, made the necessary changes to the directory and IP. The program ran fine but I could not see any downloaded files in the directory I specified.
I had the same problem with JDiskExplorer. Moreover, for JDiskExplorer I don't see any directories displayed for the remote host in the UI (it is empty). Finally, there is a status message saying "Cannot change directory to".
Do you have a servlet implementation of process.jsp I can look at? I will prefer a servlet implementation because in my application I am using facelets instead of jsp.
Thanks
Re: Where are the uploaded files in Lunix? Plus other issues.
Posted: Mon Dec 21, 2009 8:08 pm
by support
Did you update the upload directory and tmp directory at the beginning of the JSP ?
Clean your servlet engine cache to make sure your modified JSP in taken into account under Linux.
Our JSP is based on a JavaBean. You can move the whole in a servlet if you need.
Re: Where are the uploaded files in Lunix? Plus other issues.
Posted: Wed Dec 23, 2009 11:46 pm
by onyii5119
>>Did you update the upload directory and tmp directory at the beginning of the JSP ?
I did.
Actually, I noticed that your applet could not write to the directories I specified. I was getting some access right violation. I used chmod to assign all access rights (read, write and execute) to the directories for all users. Still I got the same exception message.
>> Our JSP is based on a JavaBean. You can move the whole in a servlet if you need.
No problems about that, I thought you must have converted it already. Once I get it working fine under Linux, I will convert process.jsp to a servlet.
Thanks.
Re: Where are the uploaded files in Lunix? Plus other issues.
Posted: Thu Dec 24, 2009 12:31 pm
by support
Is your servlet engine launched in security mode ? It will explain why it cannot write to folders even if chmoded 777.
Re: Where are the uploaded files in Lunix? Plus other issues.
Posted: Thu Dec 24, 2009 12:37 pm
by onyii5119
Do you know how I can verify that in Tomcat?
Re: Where are the uploaded files in Lunix? Plus other issues.
Posted: Thu Dec 24, 2009 5:35 pm
by support
It's on the command that starts tomcat:
http://tomcat.apache.org/tomcat-4.1-doc ... howto.html
You can allow access to some directories in $CATALINA_HOME/conf/catalina.policy