Try to upload to upload your data files in the apache htdocs directory and 
access them via your JSP files from there. This is our setup in our 
webhosting company. All our JSP apps are in /webapps directory. And all the 
rest of the files (*.html, *gif, *.jpg, *.zip) are in /htdocs.



At 09:42 AM 12/20/01 +0100, martin eberle wrote:
>Hi,
>
>i try to upload any stuff (mostly .zip, .doc, .xls, .txt) - but it
>doesn't matter which filetype, the result
>is always the same:
>
>Apache Tomcat/4.0.1 - HTTP Status 404 -
>../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
>found)
>type Status report
>message ../webapps/mywebapp/data/attachements/61_7781091_win.ini (File
>not found)
>description The requested resource
>../webapps/mywebapp/data/attachements/61_7781091_win.ini (File not
>found)) is not available.
>
>I know, that the file has not been found, cause i try to create it ;)
>...
>
>Tomcat directory structure to .jsp files (oh, directory / file user
>rights, etc. has been set correctly!):
>/var/tomcat4/webapps/mywebapp/
>
>Tomcat directory structure to data (upload) files:
>/var/tomcat4/webapps/mywebapp/data/attachements/
>
>In my upload class, i've defined the var "SAVEPATH" which contain's the
>store path as string ... :
>String savePath="../webapps/mywebapp/data/attachements/";
>
>Question 1:
> >From which base directory does tomcat try to access the data dir?
>(/var/tomcat4/bin/../webapps/mywebap/data/attachements/) ??...
>
>Question 2:
>Is my savePath definition just wrong?
>
>What i'm wondering about: with Tomcat 3.2x, the fileupload worked as
>well ....
>
>Thx for any answers ...
>
>Regards,
>-martin
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to