Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-26 Thread Johan Compagner
Op za 26 mei 2018 01:53 schreef Christopher Schultz <
ch...@christopherschultz.net>:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Johan,
>
> On 5/25/18 10:12 AM, Johan Compagner wrote:
> > On Thu, 24 May 2018 at 22:01, Arnold Morein 
> > wrote:
> >
> >> There are no errors in catalina.out when this occurs.
> >>
> >> Yes, via the manager UI I can deploy the WAR, but that doesn't
> >> help me in our automated scripts.
> >>
> >> It does appear to be on the Ant side of things though. Does
> >> chunking need to be turned on in Manager (or does that setting
> >> enable it)?
> >>
> >> Or does Ant need to support chunking?
> >>
> >
> >
> > i see you use username/password is that basic authentication? and
> > is that basic authenthication pre emptive?
> >
> > Because that could be a bit problem, if you send a very big file to
> > a server that then first replies that you need to authenticate You
> > should use pre emptivie, so send the username/password right away
> > with the first request
>
> I haven't read the code, but any upload task that accepts
> username+password and doesn't send those credentials on the first try
> would be fairly silly. I'm almost certain that the authentication
> information is sent with the first request.
>



Then it will fall with the latest tomcats. Not sure when this did change
but in our product and in our docs for our customers we now say the same.
You need to first hit a simple page (like main index) and then use that
client to do the real upload. Or do pre emtive

Because tomcat swallows it or something like that and returns something
else (a different code)



> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlsIoe4ACgkQHPApP6U8
> pFi6Ug//dlh1e2wAhwZ5tqwffs7Z7wFDPqZKpCd6NULziWWZTno+eglpj3XQl2gc
> YDFFBkXaobsRW+N073Gk+5u0UDFEHxDda+HECHGzTEoq/Ss88dCSLWdX/yihw62S
> 467SC7U9GiWagNxuerj9EDxizwAtVyTBbnv2uueHvhIwMHY4ha9A5AD756mkm1eC
> S9n7gbFyT/NFyG8Smyn5jC14B12VSBG0+43CfV8bbMzYV4mCOo2SMN1FDu6rS3/K
> eDBR//yIj5Fxg4qln2LmcxBPZdJD/de5IyuQSK/q2g7NXvFLD/NwZL8sBv6ICpS6
> mtE8925deH5rHo7Dcm30R4UozAuAVcLret8EbkdHUpI87Dbw0OQiKI/fosTz7e1A
> 2Hszxz6XMNzVrGqhi2tZdpLEUrTv1l43FhVlafgh2C4oen5Uv9Sm7BLDXOyUjJBN
> +lDYC6kJRxEFZ7oL5V/o5N9xIESl5VOYBcpxgPImhYfeX1WEzyycZrhfWD64VX9o
> 2+w8Uzi80tYzqY+CdMswQgLvRkhjUhuhY49C9Mhk3yEBmpGSf94UyYHRgu5FBPCM
> XUOeVCLifs7rX2kKEz3G6zvdj+Crsez9b9M9u7S4iqYwWoeHcAYouRlJIKewJeU+
> 2iu2EUSRWhaWhvFyRsRCS3GEwIa0iyEFa2LNH+BXLXPnNPa5814=
> =Ex/m
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Johan,

On 5/25/18 10:12 AM, Johan Compagner wrote:
> On Thu, 24 May 2018 at 22:01, Arnold Morein 
> wrote:
> 
>> There are no errors in catalina.out when this occurs.
>> 
>> Yes, via the manager UI I can deploy the WAR, but that doesn't
>> help me in our automated scripts.
>> 
>> It does appear to be on the Ant side of things though. Does
>> chunking need to be turned on in Manager (or does that setting
>> enable it)?
>> 
>> Or does Ant need to support chunking?
>> 
> 
> 
> i see you use username/password is that basic authentication? and
> is that basic authenthication pre emptive?
> 
> Because that could be a bit problem, if you send a very big file to
> a server that then first replies that you need to authenticate You
> should use pre emptivie, so send the username/password right away
> with the first request

I haven't read the code, but any upload task that accepts
username+password and doesn't send those credentials on the first try
would be fairly silly. I'm almost certain that the authentication
information is sent with the first request.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlsIoe4ACgkQHPApP6U8
pFi6Ug//dlh1e2wAhwZ5tqwffs7Z7wFDPqZKpCd6NULziWWZTno+eglpj3XQl2gc
YDFFBkXaobsRW+N073Gk+5u0UDFEHxDda+HECHGzTEoq/Ss88dCSLWdX/yihw62S
467SC7U9GiWagNxuerj9EDxizwAtVyTBbnv2uueHvhIwMHY4ha9A5AD756mkm1eC
S9n7gbFyT/NFyG8Smyn5jC14B12VSBG0+43CfV8bbMzYV4mCOo2SMN1FDu6rS3/K
eDBR//yIj5Fxg4qln2LmcxBPZdJD/de5IyuQSK/q2g7NXvFLD/NwZL8sBv6ICpS6
mtE8925deH5rHo7Dcm30R4UozAuAVcLret8EbkdHUpI87Dbw0OQiKI/fosTz7e1A
2Hszxz6XMNzVrGqhi2tZdpLEUrTv1l43FhVlafgh2C4oen5Uv9Sm7BLDXOyUjJBN
+lDYC6kJRxEFZ7oL5V/o5N9xIESl5VOYBcpxgPImhYfeX1WEzyycZrhfWD64VX9o
2+w8Uzi80tYzqY+CdMswQgLvRkhjUhuhY49C9Mhk3yEBmpGSf94UyYHRgu5FBPCM
XUOeVCLifs7rX2kKEz3G6zvdj+Crsez9b9M9u7S4iqYwWoeHcAYouRlJIKewJeU+
2iu2EUSRWhaWhvFyRsRCS3GEwIa0iyEFa2LNH+BXLXPnNPa5814=
=Ex/m
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-25 Thread Arnold Morein

Not sure how configure that, its just an Ant task:



    
        
        
    



Do you have an example for that?


On May 25, 2018, at 09:13 AM, Johan Compagner  wrote:


On Thu, 24 May 2018 at 22:01, Arnold Morein  wrote:


There are no errors in catalina.out when this occurs.


Yes, via the manager UI I can deploy the WAR, but that doesn't help me in
our automated scripts.


It does appear to be on the Ant side of things though. Does chunking need
to be turned on in Manager (or does that setting enable it)?


Or does Ant need to support chunking?




i see you use username/password is that basic authentication?
and is that basic authenthication pre emptive?

Because that could be a bit problem, if you send a very big file to a
server that then first replies that you need to authenticate
You should use pre emptivie, so send the username/password right away with
the first request


Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-25 Thread Johan Compagner
On Thu, 24 May 2018 at 22:01, Arnold Morein  wrote:

> There are no errors in catalina.out when this occurs.
>
> Yes, via the manager UI I can deploy the WAR, but that doesn't help me in
> our automated scripts.
>
> It does appear to be on the Ant side of things though. Does chunking need
> to be turned on in Manager (or does that setting enable it)?
>
> Or does Ant need to support chunking?
>


i see you use username/password is that basic authentication?
and is that basic authenthication pre emptive?

 Because that could be a bit problem, if you send a very big file to a
server that then first replies that you need to authenticate
You should use pre emptivie, so send the username/password right away with
the first request


Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-24 Thread Arnold Morein

There are no errors in catalina.out when this occurs.



Yes, via the manager UI I can deploy the WAR, but that doesn't help me in our 
automated scripts.



It does appear to be on the Ant side of things though. Does chunking need to be 
turned on in Manager (or does that setting enable it)?



Or does Ant need to support chunking?


On May 24, 2018, at 11:48 AM, Luis Rodríguez Fernández  
wrote:


Hello Arnold,

In this type of issues you should get something like this in the
catalina.out:

ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
HTMLManager: FAIL - Deploy Upload Failed, Exception:
[org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (355668026) exceeds the
configured maximum (52428800)]

It looks like is more in the ant side. Have you tried directly with the
/manager application?

Hope it helps,

Luis










2018-05-24 17:51 GMT+02:00 Arnold Morein :


Have been working on a WAR project that is pretty big (104MB) against
Tomcat 8. The Ant command:





Was working fine. After upgrading to the last JDK 8 (1.8.0_172) and Tomcat
9.0.8 this command results in:


build.xml:832: java.io.IOException: Error writing request body to server


I've googled but all I have found is that the Tomcat manager application
has a 50MB default upload limit, which I changed to:




15000
15000
0



And yet after restarting Tomcat, the error remains.


Can anyone else replicate this behavior or suggest a fix?






--

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


Re: Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-24 Thread Luis Rodríguez Fernández
Hello Arnold,

In this type of issues you should get something like this in the
catalina.out:

ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager] -
HTMLManager: FAIL - Deploy Upload Failed, Exception:
[org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException:
the request was rejected because its size (355668026) exceeds the
configured maximum (52428800)]

It looks like is more in the ant side. Have you tried directly with the
/manager application?

Hope it helps,

Luis










2018-05-24 17:51 GMT+02:00 Arnold Morein :

> Have been working on a WAR project that is pretty big (104MB) against
> Tomcat 8. The Ant command:
>
>  path="${path}" war="file:${dist.home}${path}.war" />
>
> Was working fine. After upgrading to the last JDK 8 (1.8.0_172) and Tomcat
> 9.0.8 this command results in:
>
> build.xml:832: java.io.IOException: Error writing request body to server
>
> I've googled but all I have found is that the Tomcat manager application
> has a 50MB default upload limit, which I changed to:
>
> 
>   
>   15000
>   15000
>   0
> 
>
> And yet after restarting Tomcat, the error remains.
>
> Can anyone else replicate this behavior or suggest a fix?
>
>


-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


Tomcat/9.0.8 - Can't deploy war of 104MB

2018-05-24 Thread Arnold Morein

Have been working on a WAR project that is pretty big (104MB) against Tomcat 8. 
The Ant command:






Was working fine. After upgrading to the last JDK 8 (1.8.0_172) and Tomcat 
9.0.8 this command results in:



build.xml:832: java.io.IOException: Error writing request body to server


I've googled but all I have found is that the Tomcat manager application has a 
50MB default upload limit, which I changed to:




  
  15000
  15000
  0




And yet after restarting Tomcat, the error remains.



Can anyone else replicate this behavior or suggest a fix?