You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by ha...@tcs.com on 2006/04/04 06:21:01 UTC
[Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
JRE1.4.2 and everything works fine
We recently migrated to tomcat 5.0.28 and JRE 1.5.0
In the case of any error when uploading files (upload path not resolving
to a folder etc), the servlet returns an appropriate
error but when the upload is successful and the file is saved on the
server the servlet does not return SC_OK
(It does not return anything at all) and the client times out.
The link to Tomcat bugs on commons-fileupload homepage does not seem to
work
If anybody has done a similar migration, were there any changes that had
to be made to the code/ server
configuration etc.
Regards
Harjinder Singh Takher
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: [Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
Posted by ha...@tcs.com.
We have a small swing application that builds the properties file,
although the properties file can be changed manually
(We have a few servlets and the other servlets also use the same
properties file but for other keys in the file)
It justs helps us to move to another server and use directories on that
server by modifying the properties file
We do not need to recompile the servlet for the change in directory name.
(An easier way would be to hardcode a path and mandate that it exists on
the webserver that we are using.
We didn't want to do that)
Regards
Harjinder
Jubert Ledesma <ku...@gmail.com> wrote on 04/05/2006 09:56:04
AM:
> I would just like to ask 1 thing that doesn't seem clear... do you
> mean.. that you would like to have your web app to automatically use the
> directory on the server you installed without changing your property
> file manually? So that in case you move your files to another server it
> detects the directory there... is that it?
>
>
> Martin Cooper wrote:
>
> >On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
> >
> >
> >>We wrote a servlet to handle file upload
> >>It uses a properties file that contains a key that specified the path
on
> >>the server where uploaded files should be saved
> >>It saves us having to change it in the servlet when we move from one
> >>server to another
> >>
> >>
> >
> >
> >OK. But you're giving us basically nothing to work with here. If you
have
> >reason to believe that there's a problem with FileUpload, we need to
know
> >more than just that your own servlet's behaviour changed.
> >
> >I got the link to tomcat bugs wrong
> >
> >
> >>Its on the FAQs section of commons-fileupload at
> >>http://jakarta.apache.org/commons/fileupload/faq.html
> >>
> >>
> >
> >
> >Thanks. I've checked in the fix, and it will show up the next time the
site
> >is updated. In the meantime, the correct URL is:
> >
> >http://issues.apache.org/bugzilla/show_bug.cgi?id=15278
> >
> >--
> >Martin Cooper
> >
> >
> >Regards
> >
> >
> >>Harjinder
> >>
> >>
> >>mfncooper@gmail.com wrote on 04/04/2006 10:01:07 AM:
> >>
> >>
> >>
> >>>On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
> >>>
> >>>
> >>>>I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
> >>>>JRE1.4.2 and everything works fine
> >>>>We recently migrated to tomcat 5.0.28 and JRE 1.5.0
> >>>>In the case of any error when uploading files (upload path not
> >>>>
> >>>>
> >>resolving
> >>
> >>
> >>>>to a folder etc), the servlet returns an appropriate
> >>>>error but when the upload is successful and the file is saved on the
> >>>>server the servlet does not return SC_OK
> >>>>
> >>>>
> >>>Um, what servlet?
> >>>
> >>>(It does not return anything at all) and the client times out.
> >>>
> >>>
> >>>>The link to Tomcat bugs on commons-fileupload homepage does not seem
> >>>>
> >>>>
> >>to
> >>
> >>
> >>>>work
> >>>>
> >>>>
> >>>What link? There isn't a link to Tomcat bugs on the Commons
FileUpload
> >>>
> >>>
> >>home
> >>
> >>
> >>>page.
> >>>
> >>>Confused...
> >>>
> >>>--
> >>>Martin Cooper
> >>>
> >>>
> >>>If anybody has done a similar migration, were there any changes that
had
> >>>
> >>>
> >>>>to be made to the code/ server
> >>>>configuration etc.
> >>>>
> >>>>Regards
> >>>>Harjinder Singh Takher
> >>>>
> >>>>
> >>Notice: The information contained in this e-mail message and/or
> >>attachments to it may contain confidential or privileged information.
If you
> >>are not the intended recipient, any dissemination, use, review,
> >>distribution, printing or copying of the information contained in this
> >>e-mail message and/or attachments to it are strictly prohibited. If
you have
> >>received this communication in error, please notify us by reply e-mail
or
> >>telephone and immediately and permanently delete the message and any
> >>attachments. Thank you
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
> ForwardSourceID:NT00002076
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: [Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
Posted by Jubert Ledesma <ku...@gmail.com>.
I would just like to ask 1 thing that doesn't seem clear... do you
mean.. that you would like to have your web app to automatically use the
directory on the server you installed without changing your property
file manually? So that in case you move your files to another server it
detects the directory there... is that it?
Martin Cooper wrote:
>On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
>
>
>>We wrote a servlet to handle file upload
>>It uses a properties file that contains a key that specified the path on
>>the server where uploaded files should be saved
>>It saves us having to change it in the servlet when we move from one
>>server to another
>>
>>
>
>
>OK. But you're giving us basically nothing to work with here. If you have
>reason to believe that there's a problem with FileUpload, we need to know
>more than just that your own servlet's behaviour changed.
>
>I got the link to tomcat bugs wrong
>
>
>>Its on the FAQs section of commons-fileupload at
>>http://jakarta.apache.org/commons/fileupload/faq.html
>>
>>
>
>
>Thanks. I've checked in the fix, and it will show up the next time the site
>is updated. In the meantime, the correct URL is:
>
>http://issues.apache.org/bugzilla/show_bug.cgi?id=15278
>
>--
>Martin Cooper
>
>
>Regards
>
>
>>Harjinder
>>
>>
>>mfncooper@gmail.com wrote on 04/04/2006 10:01:07 AM:
>>
>>
>>
>>>On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
>>>
>>>
>>>>I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
>>>>JRE1.4.2 and everything works fine
>>>>We recently migrated to tomcat 5.0.28 and JRE 1.5.0
>>>>In the case of any error when uploading files (upload path not
>>>>
>>>>
>>resolving
>>
>>
>>>>to a folder etc), the servlet returns an appropriate
>>>>error but when the upload is successful and the file is saved on the
>>>>server the servlet does not return SC_OK
>>>>
>>>>
>>>Um, what servlet?
>>>
>>>(It does not return anything at all) and the client times out.
>>>
>>>
>>>>The link to Tomcat bugs on commons-fileupload homepage does not seem
>>>>
>>>>
>>to
>>
>>
>>>>work
>>>>
>>>>
>>>What link? There isn't a link to Tomcat bugs on the Commons FileUpload
>>>
>>>
>>home
>>
>>
>>>page.
>>>
>>>Confused...
>>>
>>>--
>>>Martin Cooper
>>>
>>>
>>>If anybody has done a similar migration, were there any changes that had
>>>
>>>
>>>>to be made to the code/ server
>>>>configuration etc.
>>>>
>>>>Regards
>>>>Harjinder Singh Takher
>>>>
>>>>
>>Notice: The information contained in this e-mail message and/or
>>attachments to it may contain confidential or privileged information. If you
>>are not the intended recipient, any dissemination, use, review,
>>distribution, printing or copying of the information contained in this
>>e-mail message and/or attachments to it are strictly prohibited. If you have
>>received this communication in error, please notify us by reply e-mail or
>>telephone and immediately and permanently delete the message and any
>>attachments. Thank you
>>
>>
>>
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
Posted by Martin Cooper <ma...@apache.org>.
On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
>
> We wrote a servlet to handle file upload
> It uses a properties file that contains a key that specified the path on
> the server where uploaded files should be saved
> It saves us having to change it in the servlet when we move from one
> server to another
OK. But you're giving us basically nothing to work with here. If you have
reason to believe that there's a problem with FileUpload, we need to know
more than just that your own servlet's behaviour changed.
I got the link to tomcat bugs wrong
> Its on the FAQs section of commons-fileupload at
> http://jakarta.apache.org/commons/fileupload/faq.html
Thanks. I've checked in the fix, and it will show up the next time the site
is updated. In the meantime, the correct URL is:
http://issues.apache.org/bugzilla/show_bug.cgi?id=15278
--
Martin Cooper
Regards
> Harjinder
>
>
> mfncooper@gmail.com wrote on 04/04/2006 10:01:07 AM:
>
> > On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
> > >
> > > I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
> > > JRE1.4.2 and everything works fine
> > > We recently migrated to tomcat 5.0.28 and JRE 1.5.0
> > > In the case of any error when uploading files (upload path not
> resolving
> > > to a folder etc), the servlet returns an appropriate
> > > error but when the upload is successful and the file is saved on the
> > > server the servlet does not return SC_OK
> >
> >
> > Um, what servlet?
> >
> > (It does not return anything at all) and the client times out.
> > > The link to Tomcat bugs on commons-fileupload homepage does not seem
> to
> > > work
> >
> >
> > What link? There isn't a link to Tomcat bugs on the Commons FileUpload
> home
> > page.
> >
> > Confused...
> >
> > --
> > Martin Cooper
> >
> >
> > If anybody has done a similar migration, were there any changes that had
> > > to be made to the code/ server
> > > configuration etc.
> > >
> > > Regards
> > > Harjinder Singh Takher
>
>
> Notice: The information contained in this e-mail message and/or
> attachments to it may contain confidential or privileged information. If you
> are not the intended recipient, any dissemination, use, review,
> distribution, printing or copying of the information contained in this
> e-mail message and/or attachments to it are strictly prohibited. If you have
> received this communication in error, please notify us by reply e-mail or
> telephone and immediately and permanently delete the message and any
> attachments. Thank you
>
>
>
Re: [Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
Posted by ha...@tcs.com.
We wrote a servlet to handle file upload
It uses a properties file that contains a key that specified the path on
the server where uploaded files should be saved
It saves us having to change it in the servlet when we move from one
server to another
I got the link to tomcat bugs wrong
Its on the FAQs section of commons-fileupload at
http://jakarta.apache.org/commons/fileupload/faq.html
Regards
Harjinder
mfncooper@gmail.com wrote on 04/04/2006 10:01:07 AM:
> On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
> >
> > I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
> > JRE1.4.2 and everything works fine
> > We recently migrated to tomcat 5.0.28 and JRE 1.5.0
> > In the case of any error when uploading files (upload path not
resolving
> > to a folder etc), the servlet returns an appropriate
> > error but when the upload is successful and the file is saved on the
> > server the servlet does not return SC_OK
>
>
> Um, what servlet?
>
> (It does not return anything at all) and the client times out.
> > The link to Tomcat bugs on commons-fileupload homepage does not seem
to
> > work
>
>
> What link? There isn't a link to Tomcat bugs on the Commons FileUpload
home
> page.
>
> Confused...
>
> --
> Martin Cooper
>
>
> If anybody has done a similar migration, were there any changes that had
> > to be made to the code/ server
> > configuration etc.
> >
> > Regards
> > Harjinder Singh Takher
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: [Fileupload] Problems with Tomcat 5.0.28/ JRE 1.5
Posted by Martin Cooper <ma...@apache.org>.
On 4/3/06, harjinder.takher@tcs.com <ha...@tcs.com> wrote:
>
> I have been using commons-fileupload1.1.jar with Tomcat 4.1.3.1 and
> JRE1.4.2 and everything works fine
> We recently migrated to tomcat 5.0.28 and JRE 1.5.0
> In the case of any error when uploading files (upload path not resolving
> to a folder etc), the servlet returns an appropriate
> error but when the upload is successful and the file is saved on the
> server the servlet does not return SC_OK
Um, what servlet?
(It does not return anything at all) and the client times out.
> The link to Tomcat bugs on commons-fileupload homepage does not seem to
> work
What link? There isn't a link to Tomcat bugs on the Commons FileUpload home
page.
Confused...
--
Martin Cooper
If anybody has done a similar migration, were there any changes that had
> to be made to the code/ server
> configuration etc.
>
> Regards
> Harjinder Singh Takher
>
>
> Notice: The information contained in this e-mail message and/or
> attachments to it may contain confidential or privileged information. If you
> are not the intended recipient, any dissemination, use, review,
> distribution, printing or copying of the information contained in this
> e-mail message and/or attachments to it are strictly prohibited. If you have
> received this communication in error, please notify us by reply e-mail or
> telephone and immediately and permanently delete the message and any
> attachments. Thank you
>
>
>