RE: multipart/form-data Binary File Upload Bug and Connector Culprits

2002-03-09 Thread Brendan Colthurst

alright, i posted a problem, now i'm posting the solution... 
Solved the problem re: compiling new mod_webapp:

For my version of red hat linux, the apxs is in /usr/sbin/,
so the pre-make configure command was:
   ./configure --with-apxs=/usr/sbin/apxs
make

that got the mod_webapp to compile.

I also upgraded to tomcat 4.0.3 from 4.0.1

So, I got the multipart/form-data binary file upload to work with mod_webapp
(as checked out from the cvs repo today, March 9, 2002)
with tomcat 4.0.3 and apache 1.3.22 on red hat linux 7.2


old message:
 Greetings Users and Developers, I think I need to compile the latest
mod_webapp
 connector to fix a multipart/form-data binary File Upload bug with the
tomcat/warp/apache
 connection. (bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3534) 


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




RE: multipart form data

2001-10-23 Thread James Yap

I did the following and it works for me:

MultipartRequest m = new MultipartRequest(request, ., 1048576);
m.getParameter(...);

James

 You need to use the new BinaryRequest class that he creates to get all
 your form data, including strings.

 Brandon

 -Original Message-
 From: Henry [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 4:47 PM
 To: [EMAIL PROTECTED]
 Subject: multipart form data


 In a FORM data that uses POST method, I need to upload a file
 as well as other string data.

 according to oreily, forms should be ENCTYPE=multipart/form-data,
 however, when this thing is added, all the inputs in the form
 can not be reached by
 request.getParameter(...)

 how can i fix it?


 below is the html:

 FORM ENCTYPE=multipart/form-data
 method=POST action=manager
 INPUT TYPE=text NAME=sid
 ...

 below is the servlet:
 public void service(HttpServletRequest request,HttpServletResponse
 response)
   throws ServletException, IOException
{
   Enumeration paramNames = request.getParameterNames();
   while(paramNames.hasMoreElements()) {
   String paramName = (String)paramNames.nextElement();






RE: multipart form data

2001-10-23 Thread Mangi, Rick

Use the servlet package from o'reilly at www.servlets.com

They have a bunch of utilitites for accessing the form data.

-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: multipart form data


In a FORM data that uses POST method, I need to upload a file
as well as other string data.

according to oreily, forms should be ENCTYPE=multipart/form-data,
however, when this thing is added, all the inputs in the form
can not be reached by
request.getParameter(...)

how can i fix it?


below is the html:

FORM ENCTYPE=multipart/form-data
 method=POST action=manager
INPUT TYPE=text NAME=sid
...

below is the servlet:
 public void service(HttpServletRequest request,HttpServletResponse
response)
throws ServletException, IOException
{
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();



RE: multipart form data

2001-10-22 Thread Brandon Cruz

You need to use the new BinaryRequest class that he creates to get all your
form data, including strings.

Brandon

-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: multipart form data


In a FORM data that uses POST method, I need to upload a file
as well as other string data.

according to oreily, forms should be ENCTYPE=multipart/form-data,
however, when this thing is added, all the inputs in the form
can not be reached by
request.getParameter(...)

how can i fix it?


below is the html:

FORM ENCTYPE=multipart/form-data
 method=POST action=manager
INPUT TYPE=text NAME=sid
...

below is the servlet:
 public void service(HttpServletRequest request,HttpServletResponse
response)
throws ServletException, IOException
{
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();






RE: multipart form data

2001-10-22 Thread Martin van den Bemt

pass the request to the o'reilly stuff and request the objects from there
and you can also get a new request object from there servlets which
behaves the way you want..

Mvgr,
Martin

 -Original Message-
 From: Henry [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 22, 2001 11:47 PM
 To: [EMAIL PROTECTED]
 Subject: multipart form data


 In a FORM data that uses POST method, I need to upload a file
 as well as other string data.

 according to oreily, forms should be ENCTYPE=multipart/form-data,
 however, when this thing is added, all the inputs in the form
 can not be reached by
 request.getParameter(...)

 how can i fix it?


 below is the html:

 FORM ENCTYPE=multipart/form-data
  method=POST action=manager
 INPUT TYPE=text NAME=sid
 ...

 below is the servlet:
  public void service(HttpServletRequest request,HttpServletResponse
 response)
   throws ServletException, IOException
 {
   Enumeration paramNames = request.getParameterNames();
   while(paramNames.hasMoreElements()) {
   String paramName = (String)paramNames.nextElement();






RE: Multipart form data in Tomcat 4.0

2001-10-05 Thread Stefán F. Stefánsson

Thanks for the response.

I've looked at jspSmart Upload and I can't remember the specific reason
but it didn't suite us all that well.  I think it had something to do
with that I need to stream the files to and from another application and
I cannot save them to the disk.  At least there was a reason for not
using jspSmart Upload.

So I take it that your answer means that Tomcat 4.0 does not itself
support the multipart request mechanism?

Kind regards,
Stefan Freyr Stefansson

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: 5. október 2001 15:32
To: [EMAIL PROTECTED]
Subject: RE: Multipart form data in Tomcat 4.0


http://www.jspsmart.com/ has a 'freeware' file uploader called jsp smart
upload.  It is not open sourced but it does work and it allows for
commercial use.  I don't remember the details of the oreilly file upload
package, but yes, it was discouraging.


Dave


-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 10:21 AM
To: Tomcat-User
Subject: Multipart form data in Tomcat 4.0


Hello.

I'm wondering if anybody can give me information about the status of
multipart requests in Tomcat 4.0.  Is it still neccessary to use Jason
Hunters com.oreilly.servlet package to handle multipart posts?

I created a webapp that uploads and downloads files with TC3.2.  I'm now
contemplating switching to TC4 and I would like to know if I can dump
that external dependency if I make the switch (I like mr. Hunters
library and his book but I would much rather handle the upload/download
without third party intervention especially since his current licence
agreement is rather discouraging).

Kind regards in advance,
Stefan Freyr Stefansson


Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.
http://www.decode.com

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 Stefan Stefansson.vcf 




Re: Multipart form data in Tomcat 4.0

2001-10-05 Thread Craig R. McClanahan



On Fri, 5 Oct 2001, Stefán F. Stefánsson wrote:

 Date: Fri, 5 Oct 2001 15:20:45 -
 From: Stefán F. Stefánsson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Subject: Multipart form data in Tomcat 4.0

 Hello.

 I'm wondering if anybody can give me information about the status of
 multipart requests in Tomcat 4.0.  Is it still neccessary to use Jason
 Hunters com.oreilly.servlet package to handle multipart posts?


Yes, or any other package that does the same thing.  Multipart forms are
not supported by the container itself.

 I created a webapp that uploads and downloads files with TC3.2.  I'm now
 contemplating switching to TC4 and I would like to know if I can dump
 that external dependency if I make the switch (I like mr. Hunters
 library and his book but I would much rather handle the upload/download
 without third party intervention especially since his current licence
 agreement is rather discouraging).


Struts http://jakarta.apache.org/struts/ has multipart forms support,
and it's under the same Apache license that Tomcat is.  You might give
that a try.

 Kind regards in advance,
   Stefan Freyr Stefansson


Craig




RE: multipart/form-data

2001-07-12 Thread smeric
Title: multipart/form-data



hello,
Back 
again with some good news to those who want's to know : I've fixed it 
!
And 
the worst about it is that it is no obvious but so simple : just treate and read 
the stream !
As 
soon as I read down the stream entrance, no bug appeared anymore. I think it is 
due to some RAM cash or something.
Sébastien

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 12, 2001 4:23 
  PMTo: [EMAIL PROTECTED]Subject: 
  multipart/form-data
  Hello, I still have the following 
  problem : I post some data to a servlet with 
  enctype=multipart/form-data What ever file I pass to 
  the input type=file ... the doPost() of the servlet will proced 
  but when the file is bigger than a very small amout of 
  space (about 30ko) though the servlet proceds my request, my navigator will 
  show page not found.
  I find this very strange and wonder if it could not be a 
  tomcat (may be apache) configuration purpose. If I'm 
  asking the wrong mailing list please tell because I'm not cross something 
  (cannot remember the english for this) over many mailing list.
  Thanks Sebastien 



RE: multipart/form-data

2001-07-12 Thread smeric
Title: multipart/form-data



hello 
Jose,

I was 
not using any at the time and I did some personal component to read the stream 
since. thanks for helping. I ran it out by now.

  -Original Message-From: Jose Euclides da Silva 
  Junior - DIGR.O 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, 
  July 12, 2001 5:01 PMTo: 
  '[EMAIL PROTECTED]'Subject: RES: 
  multipart/form-data
  You 
  can test it by running this uploading task without using apache` service! Are 
  you using Orreily`package?
  
-Mensagem original-De: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Enviada em: quinta-feira, 12 de julho de 
2001 11:23Para: [EMAIL PROTECTED]Assunto: 
multipart/form-data
Hello, I still have the following 
problem : I post some data to a servlet with 
enctype=multipart/form-data What ever file I pass to 
the input type=file ... the doPost() of the servlet will proced 
but when the file is bigger than a very small amout 
of space (about 30ko) though the servlet proceds my request, my navigator 
will show page not found.
I find this very strange and wonder if it could not be a 
tomcat (may be apache) configuration purpose. If I'm 
asking the wrong mailing list please tell because I'm not cross something 
(cannot remember the english for this) over many mailing list.
Thanks Sebastien 
  


RE: multipart/form-data

2001-07-12 Thread William Kaufman

Page not found is browser-speak for your servlet blew chunks.

Take a look at the window Tomcat is running in: unless you wrote a good deal
of code to avoid it, you should see a stack trace which tells you where your
code broke.

If there's no stack trace, chances are your servlet is locked up.  Try
hitting Control+Break to see where it's stuck.  (Several threads will be in
Object.wait(): those are just waiting around for something useful to happen,
and you can ignore them.  Just look at threads with your own code somewhere
in the stack.)

-- Bill K. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 7:23 AM
To: [EMAIL PROTECTED]
Subject: multipart/form-data


Hello, 
I still have the following problem : 
I post some data to a servlet with enctype=multipart/form-data 
What ever file I pass to the input type=file ... the doPost() of the
servlet will proced but 
when the file is bigger than a very small amout of space (about 30ko) though
the servlet proceds my request, my navigator will show page not found.
I find this very strange and wonder if it could not be a tomcat (may be
apache) configuration purpose. 
If I'm asking the wrong mailing list please tell because I'm not cross
something (cannot remember the english for this) over many mailing list.
Thanks 
Sebastien 



Re: multipart/form-data bug?

2001-03-12 Thread Craig R. McClanahan



On Mon, 12 Mar 2001, Mike Slinn wrote:

 The following JSP (test.jsp) calls itself for processing.  Unfortunately, it
 doesn't display after the form is submitted, unless
 enctype="multipart/form-data" is omitted.  As far as I can see from scanning
 the archives, there is/was a bug that prevents JSPs from working with file
 uploads, although servlets work.  Is this still the case for Tomcat 3.2.1
 standalone?
 
 %@ page %
 html
 body bgcolor=white
 form action="test.jsp" method=post enctype="multipart/form-data"
File to verify: input type=file name=file
input type=submit value=Validate name=submit
 /form
 /body
 /html


It's not a bug, but it is an unimplemented feature.  You are trying to do
something not supported by the specs.

The servlet spec defines processing of request parameters *only* if the
encoding type is the default.  The JSP spec relies on standard servlet
functionality for extracting request parameters.  Neither spec includes
any support for file uploads.   In order to process file uploads, you
will need to utilize a servlet, and one of the available upload processing
libraries.
 
 Mike Slinn


Craig McClanahan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multipart/form-data

2001-01-12 Thread Randy Layman


An Internal Server Error is caused by an uncaught exception in your
code.  Probably a NullPointerException, but it could be anything that
extends java.lang.Runtime exception.

Randy

-Original Message-
From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: Multipart/form-data


Hello,
I have encountered a problem regarding 'multipart/form-data'
encryption
type in a html FORM.
I have written a servlet through which an user uploads file. I am expecting
that the content type coming to the servlet will be of type
'multipart/form-data' . To handle this particular type of data i am using
the
MultipartRequest parser provided by Oreilly.
But everytime i am running the servlet, i am getting a 'Internal Server
Error'.
Why this is so?Is it due to the fact that Tomcat cannot handle the
'multipart/form-data'?
I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
container.

Any help will be highly appreciated.

Thanks,
Saikat




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multipart/form-data

2001-01-12 Thread mayan



I posted a similar message regarding the Oreilly upload package, contacted the
author of the package, Mr. Jason Hunter, and also did a lot of experiment of my
own. The conclusion is this is MAYBE a problem between mod_jk and apache. Here
are the results of my investigation:
 somebody in this list claims tomcat3.1+apache+mod_jserv works;
 J. Hunter said tomcat alone works for him;
 I tried tomcat3.2+mod_jk+apache1.3.14, failed for binary files,
worked only for text file;
 I also tried different clients on different environment, made sure
this is not a client issue;
 I ported my application to JRun, it works fine without
modification;

Yanbin



|+
||  Randy Layman  |
||  randy.layman@aswe|
||  think.com|
|||
||  01/12/01 07:28 AM |
||  Please respond to |
||  tomcat-user   |
|||
|+
  ---|
  |   |
  |   To: "'[EMAIL PROTECTED]'"  |
  |   [EMAIL PROTECTED]|
  |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)|
  |   Subject: RE: Multipart/form-data|
  ---|





   An Internal Server Error is caused by an uncaught exception in your
code.  Probably a NullPointerException, but it could be anything that
extends java.lang.Runtime exception.

   Randy

-Original Message-
From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: Multipart/form-data


Hello,
I have encountered a problem regarding 'multipart/form-data'
encryption
type in a html FORM.
I have written a servlet through which an user uploads file. I am expecting
that the content type coming to the servlet will be of type
'multipart/form-data' . To handle this particular type of data i am using
the
MultipartRequest parser provided by Oreilly.
But everytime i am running the servlet, i am getting a 'Internal Server
Error'.
Why this is so?Is it due to the fact that Tomcat cannot handle the
'multipart/form-data'?
I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
container.

Any help will be highly appreciated.

Thanks,
Saikat




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multipart/form-data

2001-01-12 Thread Ed Gomolka

If you're using mod_jk with binary multipart/form-data, avoid AJP13, 
as it has a bug. Use AJP12.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 12, 2001 9:11 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Multipart/form-data
 
 
 
 
 I posted a similar message regarding the Oreilly upload package, 
 contacted the
 author of the package, Mr. Jason Hunter, and also did a lot of 
 experiment of my
 own. The conclusion is this is MAYBE a problem between mod_jk and 
 apache. Here
 are the results of my investigation:
  somebody in this list claims 
 tomcat3.1+apache+mod_jserv works;
  J. Hunter said tomcat alone works for him;
  I tried tomcat3.2+mod_jk+apache1.3.14, failed for 
 binary files,
 worked only for text file;
  I also tried different clients on different 
 environment, made sure
 this is not a client issue;
  I ported my application to JRun, it works fine without
 modification;
 
 Yanbin
 
 
 
 |+
 ||  Randy Layman  |
 ||  randy.layman@aswe|
 ||  think.com|
 |||
 ||  01/12/01 07:28 AM |
 ||  Please respond to |
 ||  tomcat-user   |
 |||
 |+
   
 -
 --|
   |   
 |
   |   To: "'[EMAIL PROTECTED]'"  
 |
   |   [EMAIL PROTECTED]
 |
   |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
 |
   |   Subject: RE: Multipart/form-data
 |
   
 -
 --|
 
 
 
 
 
An Internal Server Error is caused by an uncaught 
 exception in your
 code.  Probably a NullPointerException, but it could be anything that
 extends java.lang.Runtime exception.
 
Randy
 
 -Original Message-
 From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 12, 2001 12:44 AM
 To: [EMAIL PROTECTED]
 Subject: Multipart/form-data
 
 
 Hello,
 I have encountered a problem regarding 'multipart/form-data'
 encryption
 type in a html FORM.
 I have written a servlet through which an user uploads file. I am 
 expecting
 that the content type coming to the servlet will be of type
 'multipart/form-data' . To handle this particular type of data i am using
 the
 MultipartRequest parser provided by Oreilly.
 But everytime i am running the servlet, i am getting a 'Internal Server
 Error'.
 Why this is so?Is it due to the fact that Tomcat cannot handle the
 'multipart/form-data'?
 I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
 container.
 
 Any help will be highly appreciated.
 
 Thanks,
 Saikat
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multipart/form-data

2001-01-12 Thread mayan



Thanks, this is exactly where the problem is. I just switched my application
from ajp13 to ajp12, it works fine with uploading both binary and text files. I
never thought it could be the connector problem on the tomcat side.

Can somebody tell me where to find all the known problems of tomcat, please?

Yanbin



|+---
||  "Ed Gomolka" |
||  egomolka@aus|
||  info.com|
||   |
||  01/12/01 |
||  10:52 AM |
||  Please   |
||  respond to   |
||  tomcat-user  |
||   |
|+---
  ---|
  |   |
  |   To: [EMAIL PROTECTED]  |
  |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)|
  |   Subject: RE: Multipart/form-data|
  ---|




If you're using mod_jk with binary multipart/form-data, avoid AJP13,
as it has a bug. Use AJP12.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 12, 2001 9:11 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Multipart/form-data




 I posted a similar message regarding the Oreilly upload package,
 contacted the
 author of the package, Mr. Jason Hunter, and also did a lot of
 experiment of my
 own. The conclusion is this is MAYBE a problem between mod_jk and
 apache. Here
 are the results of my investigation:
  somebody in this list claims
 tomcat3.1+apache+mod_jserv works;
  J. Hunter said tomcat alone works for him;
  I tried tomcat3.2+mod_jk+apache1.3.14, failed for
 binary files,
 worked only for text file;
  I also tried different clients on different
 environment, made sure
 this is not a client issue;
  I ported my application to JRun, it works fine without
 modification;

 Yanbin



 |+
 ||  Randy Layman  |
 ||  randy.layman@aswe|
 ||  think.com|
 |||
 ||  01/12/01 07:28 AM |
 ||  Please respond to |
 ||  tomcat-user   |
 |||
 |+

 -
 --|
   |
 |
   |   To: "'[EMAIL PROTECTED]'"
 |
   |   [EMAIL PROTECTED]
 |
   |   cc: (bcc: Yanbin Ma/SYS/NYTIMES)
 |
   |       Subject:     RE: Multipart/form-data
 |

 -
 --|





An Internal Server Error is caused by an uncaught
 exception in your
 code.  Probably a NullPointerException, but it could be anything that
 extends java.lang.Runtime exception.

Randy

 -Original Message-
 From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 12, 2001 12:44 AM
 To: [EMAIL PROTECTED]
 Subject: Multipart/form-data


 Hello,
 I have encountered a problem regarding 'multipart/form-data'
 encryption
 type in a html FORM.
 I have written a servlet through which an user uploads file. I am
 expecting
 that the content type coming to the servlet will be of type
 'multipart/form-data' . To handle this particular type of data i am using
 the
 MultipartRequest parser provided by Oreilly.
 But everytime i am running the servlet, i am getting a 'Internal Server
 Error'.
 Why this is so?Is it due to the fact that Tomcat cannot handle the
 'multipart/form-data'?
 I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
 container.

 Any help will be highly appreciated.

 Thanks,
 Saikat




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]






 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Multipart/form-data

2001-01-12 Thread Bill Fox

Saikat-

I had a problem with the O'Reilly MultiPartRequest object as well. 

My error was an IO exception. It was suggested to me on this list 
(by Ed Gomolka) that Ajp13 has some bugs for file uploading, and that 
Ajp12 is more stable.

Change your mod_jk config to use the 
Ajp12 worker and see if the problem clears.

-Bill

Saikat Chatterjee wrote:
 
 Hello,
 I have encountered a problem regarding 'multipart/form-data' encryption
 type in a html FORM.
 I have written a servlet through which an user uploads file. I am expecting
 that the content type coming to the servlet will be of type
 'multipart/form-data' . To handle this particular type of data i am using the
 MultipartRequest parser provided by Oreilly.
 But everytime i am running the servlet, i am getting a 'Internal Server Error'.
 Why this is so?Is it due to the fact that Tomcat cannot handle the
 'multipart/form-data'?
 I am using Apache 1.3.12 as webserver and Tomcat 3.2 as servlet
 container.
 
 Any help will be highly appreciated.
 
 Thanks,
 Saikat
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 


William J. Fox
Director of Systems Architecture

Eversave.com
Suite 2350
400 West Cummings Park
Woburn, MA 01801
(781) 938-7283 x272

[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Multipart form-data

2001-01-08 Thread Ed Gomolka

Are you using AJP12 or AJP13? AJP13 has a bug in this area.
We encountered this with uploaded JPEG files, and also got the zero bytes
error,
but resolved it with no other changes after switching back to AJP12.

 -Original Message-
 From: Bill Fox [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 08, 2001 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: Multipart form-data


 I am trying to use the com.oreilly.servlet.MultiPartRequest object
 to handle a file upload through tomcat.
 We have successfully done this with Apache and mod_jserv, but it
 just won't work with tomcat and mod_jk

 The error returned is java.IOException "Unexpected end of part"
 The file upload starts, but the file never completes. Sometimes it is
 just 0 bytes. We have tried several different browsers and file types.
 I suspect the data stream handoff between apache and tomcat.
 Is there a configuration parameter I need to change to allow file
 uploads?

 --
 

 William J. Fox

 Eversave.com
 Suite 2350
 400 West Cummings Park
 Woburn, MA 01801
 (781) 938-7283 x272

 [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: multipart/form-data problem

2000-12-14 Thread jokozlow
Title: RE: multipart/form-data problem





This has been a pretty common topic lately. Since I am one of the last people to ask a similar question, I thought I would share.

* Tomcat 3.2 final has a bug that garbles multi part streams. (Fix is planned in 3.2.2, workaround available - see the last few days of list topics).

* Prebuilt packages for handling most of the work exist from Both Sun (Java Web Server 2.0 examples), and Oreilly (http://java.oreilly.com/).

* Using multi part streams for binary data (such as file uploads) is possible and does work with Tomcat (quite well and better than ASPUpload might I add)

Best of Luck,


Joel Kozlow


 -Original Message-
 From: Muehlmann, Fred [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 14, 2000 11:59 AM
 To: '[EMAIL PROTECTED]'
 Subject: multipart/form-data problem
 
 
 I'm trying to send Tomcat a POST with an 
 enctype=multipart/form-data.
 This is for uploading a combination of form data and binary 
 files. Tomcat
 doesn't appear to take this type. Netscape reports A network error
 occurred while sending data. (Network Error: Connection 
 aborted). I can
 talk to the servlet if I'm not doing an enctype of 
 multipart/form-data.
 I've written the Java servlet to handle this and it has been 
 functioning
 perfectly using Sun's Java Web Server 2.0. The only possible 
 difference
 with the code should be where Tomcat will attempt to put the 
 uploaded file,
 but I'm not even getting that far. Anybody do this before 
 with Tomcat?
 
 Thanks,
 Fred Muehlmann
 [EMAIL PROTECTED]
 





RE: multipart/form-data problem

2000-12-14 Thread Gomez Henri

 * Tomcat 3.2 final has a bug that garbles multi part streams. (Fix is
 planned in 3.2.2, workaround available - see the last few days of list
 topics).

Did the patch from Dan didn't fix that ?
Did you speek about multi-part via ajp13 ?

TC 3.2.1 with Dan patch (ajp13) works perfectly now with ajp13. 

I'd like to have Dan, Costin and Craig opinion before commiting the patch which 
is only included in my RPM.