File Upload problem with cgi perl script

2005-09-20 Thread Ron Cozad
I am only getting the first 3k of an upload file.  If the file is less
than 3k, the multipart boundaries are structured properly, otherwise, I
never get the end of the file or the ending boundary.

 

I did binmode(STDIN); but still not getting the whole file.

 

Running Tomcat 4.1.31 and IE browser 6.x.

 

Appreciate any suggestions or theories as to why I am not getting the
whole file.



File Upload problem with cgi perl script

2005-09-19 Thread Ron Cozad
I am only getting the first 3k of an upload file.  If the file is less
than 3k, the multipart boundaries are structured properly, otherwise, I
never get the end of the file or the ending boundary.

 

I did binmode(STDIN); but still not getting the whole file.

 

Running Tomcat 4.1.31 and IE browser 6.x.

 

Appreciate any suggestions or theories as to why I am not getting the
whole file.



RE: tomcat connect to IIs - Upload problem

2005-08-15 Thread Allistair Crossley
Hi,
 
What is the error that you receive when uploading > 50kb? I know there was 
previously a bug with earlier versions of the now unsupported JK2 connector. If 
that's what you are using then you should upgrade to the latest JK 1.2.x 
connector.
 
Allistair.

-Original Message- 
From: Paulo Neves [mailto:[EMAIL PROTECTED] 
Sent: Mon 15/08/2005 18:30 
To: tomcat-user@jakarta.apache.org 
Cc: 
Subject: tomcat connect to IIs - Upload problem



Hi all,


 I have tomcat connected to IIs and working fine.

 But I can't upload files > 50Kb, anyone knows what I need to change
to permit upload files > 50Kb ??

 If I upload directly with tomcat works fine.


Regards,
Paulo


--
--
Paulo Jorge Zagalo das Neves
Linux User # 61096
--

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





 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---


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

tomcat connect to IIs - Upload problem

2005-08-15 Thread Paulo Neves
Hi all,


 I have tomcat connected to IIs and working fine.

 But I can't upload files > 50Kb, anyone knows what I need to change
to permit upload files > 50Kb ??

 If I upload directly with tomcat works fine.


Regards,
Paulo


-- 
--
Paulo Jorge Zagalo das Neves
Linux User # 61096
--

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



Upload Problem!!!

2003-11-06 Thread Rob Wichterman
Hello,
 
I have a web application that allows users to upload files on to the
server.  The problem is when a user uploads a file and closes the
browser before the file finished uploading the java process immediately
starts to jump past 50% cpu usage.  And after a while eventually crashes
completely with 'out of memory errors'.  We are using JSP Smart Upload.
I was wondering if there is a timeout or other parameter I can set to
end the processes to bring java back down.
 
Thanks   
 
 


file upload problem tomcat behind apache

2002-09-03 Thread Branko Kannenberg

Hi there !

I have a web application which can process uploaded files (mutipart formdata). 
If I connect to tomcat directly (http connector) everything is fine, I can 
upload files without problems so far.

Now I have connected tomcat 4.0.4 to apache 2.0.40 with connector mod_jk2 
(using the ajp13 protocol) and file upload is screwed. I get the following 
error:

java.lang.ArrayIndexOutOfBoundsException
at java.net.SocketInputStream.read(SocketInputStream.java:111)
at org.apache.ajp.Ajp13.readN(Ajp13.java:429)
at org.apache.ajp.Ajp13.receive(Ajp13.java:487)
at 
org.apache.ajp.RequestHandler.decodeRequest(RequestHandler.java:425)
at org.apache.ajp.Ajp13.handleMessage(Ajp13.java:319)
at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:287)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:396)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

Has anyone experienced such problems before? What can I do to make it work 
with apache? Thanx in advance...

Ciao,   Branko.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Repost: File upload problem

2002-03-18 Thread Ralph Einfeldt

What are you using to receive the uploaded file ?

The reading of multipart forms is not part of the 
servlet spec. So you need some thing like Jason Hunters
MultipartRequest or jspSmartUpload to process multipart 
forms.

Which browser are you using ?
Some versions of IE have some nasty bugs in their headers
that can lead the header parser of mod_jk into trouble.

Same is true for at least one version of netscape 6.1.
(crashes my good ole jserv anytime i try to use multipart 
forms)

May be looking at the tcp data will help.
(Don't ask me for a tool to do that, I do that kind of things
under linux (tcpdump))

> -Ursprüngliche Nachricht-
> Von: Jason Webber [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 18. März 2002 19:15
> An: [EMAIL PROTECTED]
> Betreff: Repost: File upload problem
> 
 
> ajpv12_handle_response, error reading header line
> 
> The webserver then gives me a 500 Internal Server Error
> 


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




Repost: File upload problem

2002-03-18 Thread Jason Webber

Well I am reposting this message since I haven't got any response and hoping
that the lack of response was because everybody had something better to do
than work all weekend.


When I try and use an html form to upload a file I get the flowing error in
jk.log file:

[Sat Mar 16 10:30:32 2002]  [jk_ajp12_worker.c (503)]:
ajpv12_handle_response, error reading header line

The webserver then gives me a 500 Internal Server Error

I don't get this error if I dont use browse to locate a file and I just hit
the submit button to call my servlet.




 
 
 



Any one know what is going wrong?

Tomcat 3.3
mod_jk
Apache 1.3.20
Windows 2000


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: File upload problem

2002-02-13 Thread Miguel Angel Medina Lopez

I have downloaded the last version of the webapp connector form the cvs,
however the problem persists. I'll have to go back to the version 3.2.3 of
Tomcat and use the old mod_jk connector thats work fine with the same
uploads. Any suggestion? Thank you

- Original Message -
From: "Craig Altenburg" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 10:03 PM
Subject: Re: File upload problem


> I have the same problem -- it seemd to go away in the beta of 4.0.2 -- I'm
> trying to get the final 4.0.2 up to see if that fixes the problem.
>
>
> On Tuesday 12 February 2002 03:01 pm, you wrote:
> > Hi:
> >
> > If I upload the files running tomcat stand alone all work fine. That's
the
> > reason to think is a connector problem, but I don't  know how can I
solve
> > it or if exists a version of the connector that the repair the bug. I
need
> > help.
> >
> > Thanks.
> > -
> > Miguel Ángel Medina López
> > Logic Factory: www.logic-factory.com
> > Granada - España
> >
> >
> >
> > - Original Message -
> > From: "Brian Adams" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 12, 2002 8:32 PM
> > Subject: RE: File upload problem
> >
> > > it can be a bug or not...
> > > If you have tomcat running in stand alone(localhost:8080) as well as
> >
> > webapp
> >
> > > you can test the servlet by connecting directly to tomcat and see if
it
> > > works if it does, then you are probably affected by a webapp bug(the
one
> >
> > you
> >
> > > read about)
> > > B
> > >
> > > -Original Message-
> > > From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 12, 2002 1:36 PM
> > > To: Tomcat Users
> > > Subject: File upload problem
> > >
> > >
> > > Hi all:
> > >
> > > I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
> > > MultipartWrapper Class to parse multipart-form-data encoding. The
problem
> >
> > is
> >
> > > that the next exception is thrown when I try to upload a file:
> > >
> > > java.io.IOException: unexpected end of part
> > > at
> >
> >
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
> >
> > > at
> >
> >
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178
> >)
> >
> > > Sometimes the file is uploaded but it's broken because the size isn't
> >
> > well,
> >
> > > it less than the original. I have read in the list that there was a
bug
> >
> > int
> >
> > > the connectors, I'm using the module webapp-module-1.0.1-tc401 to
connect
> > > tomcat and apache. Is this a bug? How can I solve the problem?
> > >
> > > Than you all.
> > >
> > > -
> > > Miguel Ángel Medina López
> > > Logic Factory: www.logic-factory.com
> > > Granada - España
> > >
> > >
> > >
> > >
> > > --
> > > 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]>
>
>
> --
> 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]>




Re: File upload problem

2002-02-12 Thread Craig Altenburg

I have the same problem -- it seemd to go away in the beta of 4.0.2 -- I'm 
trying to get the final 4.0.2 up to see if that fixes the problem.


On Tuesday 12 February 2002 03:01 pm, you wrote:
> Hi:
>
> If I upload the files running tomcat stand alone all work fine. That's the
> reason to think is a connector problem, but I don't  know how can I solve
> it or if exists a version of the connector that the repair the bug. I need
> help.
>
> Thanks.
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
> - Original Message -
> From: "Brian Adams" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 12, 2002 8:32 PM
> Subject: RE: File upload problem
>
> > it can be a bug or not...
> > If you have tomcat running in stand alone(localhost:8080) as well as
>
> webapp
>
> > you can test the servlet by connecting directly to tomcat and see if it
> > works if it does, then you are probably affected by a webapp bug(the one
>
> you
>
> > read about)
> > B
> >
> > -----Original Message-
> > From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 12, 2002 1:36 PM
> > To: Tomcat Users
> > Subject: File upload problem
> >
> >
> > Hi all:
> >
> > I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
> > MultipartWrapper Class to parse multipart-form-data encoding. The problem
>
> is
>
> > that the next exception is thrown when I try to upload a file:
> >
> > java.io.IOException: unexpected end of part
> > at
>
> com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
>
> > at
>
> com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178
>)
>
> > Sometimes the file is uploaded but it's broken because the size isn't
>
> well,
>
> > it less than the original. I have read in the list that there was a bug
>
> int
>
> > the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
> > tomcat and apache. Is this a bug? How can I solve the problem?
> >
> > Than you all.
> >
> > -
> > Miguel Ángel Medina López
> > Logic Factory: www.logic-factory.com
> > Granada - España
> >
> >
> >
> >
> > --
> > 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]>


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




RE: File upload problem

2002-02-12 Thread Brian Adams

yes, well if you can't fix the bug try two things:
1. upgrade to 4.0.2 and try again
2. switch to mod_jk instead of mod_webapp.
goodluck,
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 2:01 PM
To: Tomcat Users List
Subject: Re: File upload problem


Hi:

If I upload the files running tomcat stand alone all work fine. That's the
reason to think is a connector problem, but I don't  know how can I solve it
or if exists a version of the connector that the repair the bug. I need
help.

Thanks.
-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España



- Original Message -
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:32 PM
Subject: RE: File upload problem


> it can be a bug or not...
> If you have tomcat running in stand alone(localhost:8080) as well as
webapp
> you can test the servlet by connecting directly to tomcat and see if it
> works if it does, then you are probably affected by a webapp bug(the one
you
> read about)
> B
>
> -Original Message-
> From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:36 PM
> To: Tomcat Users
> Subject: File upload problem
>
>
> Hi all:
>
> I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
> MultipartWrapper Class to parse multipart-form-data encoding. The problem
is
> that the next exception is thrown when I try to upload a file:
>
> java.io.IOException: unexpected end of part
> at
>
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
> at
>
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)
>
> Sometimes the file is uploaded but it's broken because the size isn't
well,
> it less than the original. I have read in the list that there was a bug
int
> the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
> tomcat and apache. Is this a bug? How can I solve the problem?
>
> Than you all.
>
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
>
> --
> 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]>


--
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]>




Re: File upload problem

2002-02-12 Thread Miguel Angel Medina Lopez

Hi:

If I upload the files running tomcat stand alone all work fine. That's the
reason to think is a connector problem, but I don't  know how can I solve it
or if exists a version of the connector that the repair the bug. I need
help.

Thanks.
-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España



- Original Message -
From: "Brian Adams" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 12, 2002 8:32 PM
Subject: RE: File upload problem


> it can be a bug or not...
> If you have tomcat running in stand alone(localhost:8080) as well as
webapp
> you can test the servlet by connecting directly to tomcat and see if it
> works if it does, then you are probably affected by a webapp bug(the one
you
> read about)
> B
>
> -Original Message-
> From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 1:36 PM
> To: Tomcat Users
> Subject: File upload problem
>
>
> Hi all:
>
> I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
> MultipartWrapper Class to parse multipart-form-data encoding. The problem
is
> that the next exception is thrown when I try to upload a file:
>
> java.io.IOException: unexpected end of part
> at
>
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
> at
>
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)
>
> Sometimes the file is uploaded but it's broken because the size isn't
well,
> it less than the original. I have read in the list that there was a bug
int
> the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
> tomcat and apache. Is this a bug? How can I solve the problem?
>
> Than you all.
>
> -
> Miguel Ángel Medina López
> Logic Factory: www.logic-factory.com
> Granada - España
>
>
>
>
> --
> 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]>


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




RE: File upload problem

2002-02-12 Thread Brian Adams

it can be a bug or not...
If you have tomcat running in stand alone(localhost:8080) as well as webapp
you can test the servlet by connecting directly to tomcat and see if it
works if it does, then you are probably affected by a webapp bug(the one you
read about)
B

-Original Message-
From: Miguel Angel Medina Lopez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:36 PM
To: Tomcat Users
Subject: File upload problem


Hi all:

I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
MultipartWrapper Class to parse multipart-form-data encoding. The problem is
that the next exception is thrown when I try to upload a file:

java.io.IOException: unexpected end of part
at
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
at
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)

Sometimes the file is uploaded but it's broken because the size isn't well,
it less than the original. I have read in the list that there was a bug int
the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
tomcat and apache. Is this a bug? How can I solve the problem?

Than you all.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




--
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]>




File upload problem

2002-02-12 Thread Miguel Angel Medina Lopez

Hi all:

I'm using Tomcat 4.0.1 and Apache 1.3.23. Also I use oreilly
MultipartWrapper Class to parse multipart-form-data encoding. The problem is
that the next exception is thrown when I try to upload a file:

java.io.IOException: unexpected end of part
at
com.oreilly.servlet.multipart.PartInputStream.fill(PartInputStream.java:95)
at
com.oreilly.servlet.multipart.PartInputStream.read(PartInputStream.java:178)

Sometimes the file is uploaded but it's broken because the size isn't well,
it less than the original. I have read in the list that there was a bug int
the connectors, I'm using the module webapp-module-1.0.1-tc401 to connect
tomcat and apache. Is this a bug? How can I solve the problem?

Than you all.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




PLEASE HELP, binary upload problem

2001-11-26 Thread Marc Boorshtein




--- Begin Message ---

Hello,

I need some help.  I am running Apache 1.3.14,
mod_webapp and tomcat 4.01.  My servlets perform file
uploads, and while text files work fine, binary do
not.  I think the issue is mod_webapp, but I'm not
entirly sure.  I know that it isn't tomcat because I
tried using tomcat's httpd server and everything
worked fine.  I'm sure it's not apache because I used
the servlets with apache in conjunction with JRun and
everything worked.  PLEASE HELP.

Thanks
Marc Boorshtein

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--- End Message ---

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: File Upload Problem when bigger than 0.97 MB

2001-08-08 Thread Pier P. Fumagalli

Kalyan Mitra at [EMAIL PROTECTED] wrote:

> Hi there,
> 
> I am facing problem when uploading file bigger than 0.97MB through
> MultipartPerser the error in log file shows as follows
> 
> Please help if u have any idea.

I don't see any error in the log file you provided...

Pier




File Upload Problem when bigger than 0.97 MB

2001-08-08 Thread Kalyan Mitra

Hi there,

I am facing problem when uploading file bigger than 0.97MB through 
MultipartPerser the error in log file shows as follows

Please help if u have any idea.

Best Regards,

Kalyan Mitra
[EMAIL PROTECTED]

=-

2001-08-08 13:28:04 StandardHost[localhost]: Installing web application at 
context path  from URL file:/home/kalyan/jakarta-tomcat-4.0-b5/webapps/ROOT
2001-08-08 13:28:04 StandardManager[]: Seeding random number generator class 
java.security.SecureRandom
2001-08-08 13:28:04 StandardManager[]: Seeding of random number generator 
has been completed
2001-08-08 13:28:06 StandardWrapper[:default]: Loading container servlet 
default
2001-08-08 13:28:06 default: init
2001-08-08 13:28:06 StandardWrapper[:invoker]: Loading container servlet 
invoker
2001-08-08 13:28:06 invoker: init
2001-08-08 13:28:06 StandardWrapper[:jsp]: Using Jasper classloader for 
servlet jsp
2001-08-08 13:28:07 jsp: init
2001-08-08 13:28:09 StandardWrapper[:ssi]: Loading container servlet ssi
2001-08-08 13:28:09 ssi: init
2001-08-08 13:28:09 StandardHost[localhost]: Installing web application at 
context path /manager from URL 
file:/home/kalyan/jakarta-tomcat-4.0-b5/webapps/manager
2001-08-08 13:28:09 StandardManager[/manager]: Seeding random number 
generator class java.security.SecureRandom
2001-08-08 13:28:09 StandardManager[/manager]: Seeding of random number 
generator has been completed
2001-08-08 13:28:09 ContextConfig[/manager]: Configured an authenticator for 
method BASIC
2001-08-08 13:28:09 StandardWrapper[/manager:default]: Loading container 
servlet default
2001-08-08 13:28:09 default: init
2001-08-08 13:28:09 StandardWrapper[/manager:invoker]: Loading container 
servlet invoker
2001-08-08 13:28:09 invoker: init
2001-08-08 13:28:09 StandardWrapper[/manager:jsp]: Using Jasper classloader 
for servlet jsp
2001-08-08 13:28:09 jsp: init
2001-08-08 13:28:10 StandardWrapper[/manager:ssi]: Loading container servlet 
ssi
2001-08-08 13:28:10 ssi: init
2001-08-08 13:28:10 StandardHost[localhost]: Installing web application at 
context path /webdav from URL 
file:/home/kalyan/jakarta-tomcat-4.0-b5/webapps/webdav
2001-08-08 13:28:10 StandardManager[/webdav]: Seeding random number 
generator class java.security.SecureRandom
2001-08-08 13:28:10 StandardManager[/webdav]: Seeding of random number 
generator has been completed
2001-08-08 13:28:10 ContextConfig[/webdav] Configuration error in 
application web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'default' is not 
unique
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at 
org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1194)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.util.xml.AddChild.end(XmlMapper.java:806)
at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419)
at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119)
at 
org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:347)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1497)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:247)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:820)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:217)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:413)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:641)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.

Image upload problem (was RE: Multipart and mod_jk)

2001-01-05 Thread Ed Gomolka

This message thread just saved our butt on an image upload
problem we were having (thank God for the mailing list archives).

In any case, the AJP13 problem still exists in Tomcat-3.2.1.
Is there a Tomcat-3.2.2 coming out that will fix the AJP13 problem, or
should we stick
with AJP12 until Tomcat-4.0 gets a bit more refined?
For that matter, is it fixed yet in 4.0?

Thanks in advance.

Ed
> -Original Message-
> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 12, 2000 2:56 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Multipart and mod_jk
>
>
> It's a known bug in ajp13.
> I'll try to fix before 3.2.1 ;-)
>
> "Pour la plupart des hommes, se corriger consiste à changer de défauts."
> -- Voltaire
>
> >-Original Message-
> >From: AC [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, December 12, 2000 8:53 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: Multipart and mod_jk
> >
> >
> >Is this a bug on ajp13 or on O'Reilly package??
> >
> >andrea
> >
> >At 09.48 12/12/2000 +0800, you wrote:
> >>Use mod_jk with AJP12 (not AJP13) will work
> >>
> >>Kenneth Kwan
> >>
> >> -Original Message-
> >> From:   AC [mailto:[EMAIL PROTECTED]]
> >> Sent:   Tuesday, December 12, 2000 12:49 AM
> >> To: [EMAIL PROTECTED]
> >> Subject:Multipart and mod_jk
> >>
> >> I've got a servlet that use the O'Reilly package to
> >manage multipart
> >>
> >> request. If I use mod_jserv everything works fine.
> >Once I use mod_jk
> >>the
> >> same servlet fails!!!
> >>
> >> Any solutions??
> >>
> >> andrea
> >


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




AW: Upload problem: bug at Multipartrequest when deals with mixed pa rameters types

2001-01-01 Thread Ralph Einfeldt

To me your problem looks like your form bean is not found at runtime.
But that has nothing to do with Multipartrequests.

> -Ursprüngliche Nachricht-
> Von: Jose Euclides da Silva Junior - DIGR.O
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 29. Dezember 2000 16:11
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: Upload problem: bug at Multipartrequest when deals with mixed
> pa rameters types
> 
> java.lang.NoSuchMethodError: FormBean: method
> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/l
> ang/String;Lja
> va/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/
> String;Ljava/l
> ang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Stri
> ng;Ljava/lang/
> Stri
>   at StarServletnew.doPost(StarServletnew.java, Compiled Code)

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




Re: Upload problem: bug at Multipartrequest when deals with mixed parameters types

2000-12-29 Thread java-server-feedback

Thank you for your feedback.  Your feedback will be read by an
engineer in the JavaServer Team, and entered into our system as a bug
or feature request, if appropriate.  We do not perform sales or
technical support from this address.  This is worth repeating:  you
will not receive any additional mail from this address, unless we have
questions on how to reproduce your bug, or implement your feature. 
Please contact one of our other support channels (below) if you
require support.

For information on running servlets in any webserver, check here:

http://jserv.javasoft.com/products/java-server/servlets/environments.html

For answers to commonly asked questions, check here:

http://jserv.javasoft.com/products/java-server/faq/webserver.html

To place your bug report directly into our database, you may
enter your bug here:
http://java.sun.com/cgi-bin/bugreport.cgi

For licensing, sales and schedule information, please contact
1-888-THEJAVA. If outside the US, please dial 1-(512)434-1591

You may directly purchase the JavaWebServer from Javasoft's main
website http://www.javasoft.com/

If you have purchased a JavaServer product and require technical
support, please contact 407-531-4475.

For more discussion of the JavaWebServer, and other JavaServer
products, please consider joining the Jserv-Interest mailling list. 

You may subscribe to the mailing list by sending an email to:

[EMAIL PROTECTED]

with the _body_ of the message containing the line

SUBSCRIBE JSERV-INTEREST Full-Name-Here

where Full-Name-Here is your name.

There is an additional mailing list solely for Apache JSDK issues -
further information on this list can be found at
http://java.apache.org/

If being on a mailing list is not something you wish to do, you may
also discuss the JavaWebServer on the Usenet newsgroup
comp.infosystems.www.servers.misc.

Discussions of programming Java Servlets, and server side programming
in general, are carried out on the Usenet newsgroup
comp.lang.java.programmer.


Thank you for your time and input.

Jim Driscoll
JavaSoft 


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




Upload problem: bug at Multipartrequest when deals with mixed parameters types

2000-12-29 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-



Hi everybody,
i dont know if somebody can help me! I didnt get sucess to solve this
problem.
i have a doubt about an error message which came from TomCat, as listed
below.There is a servlet, named StarServletnew and showed at end of this
email, which instances a Bean, named FormBean, which uses some parameters
that comes from a multipart/form-data form. This servlet receives
parameters, like text fields, and a file stream.I am using Oreilly's
package(Multipartrequest class) to get all parameters and file contents, as
you can see below. However, i always get succeed with the  file uploading
process, but i always get a failure when i try to get the parameters
contents! I am using TOMCAT 3.1 and NT4.0.


T O M  C A T   M E S S A G E  E R R O R

Error: 500
Location: /examples/servlet/StarServletnew
Internal Servlet Error:

java.lang.NoSuchMethodError: FormBean: method
(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lja
va/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/l
ang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/
Stri
at StarServletnew.doPost(StarServletnew.java, Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)





M A I N   S E R V L E T


import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.*;

/**
Problemas - 
- - sempre o cookie e diferente - rever o que aparece como valor do cookie
- - nao consegue receber getAttribute
**/ 

public class StarServletnew extends HttpServlet {

private boolean bcookie=false;
private boolean bsessao=false;
private FormBean Fb;
private ErrorBean Eb;
private String cookName = "cookstar";
public static final int segundosanual = 60*60*24*365;

private String nome;
private String nomeart;
private String sexo;
private String profissao;
private String registro;
private String dia;
private String mes;
private String ano;
private String email;
private String end;
private String compl;
private String bairro;
private String cidade;
private String estado;  
private String cursomoda;
private String cursoteatro;
private String cursomusica;
private String cursomodelo; 
private String escolaridade;
private String linguas;
private String esportes;
private String calcado;
private String danca;
private String alturamts;
private String alturacms;
private String peso;  
private String foto;
private String olhos;

//Método Final 
public void destroy(){
System.out.println("Final do StarServlet");
}  
// Controle do SERVLET 
public void doPost ( HttpServletRequest req, 
HttpServletResponse res) 
throws IOException,
ServletException {


// Cria nomes para match com nome dos parametros
String p01 = "nome";
String p02 = "nomeart";
String p03 = "sexo";
String p04 = "dia";
String p05 = "mes";
String p06 = "ano";
String p07 = "profissao";
String p08 = "registro";
String p09 = "end";
String p10 = "compl";
String p11 = "bairro";
String p12 = "cidade";
String p13 = "estado";
String p14 = "email";   
String p15 = "cursomoda";
String p16 = "cursoteatro";
String p17 = "cursomusica";
String p18 = "cursomodelo";
String p19 = "esportes";
String p20 = "danca";
String p21 = "escolaridade";