Re: Uploading large files
On 5/29/2013 1:29 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/29/13 2:00 PM, Mark Eggers wrote: On 5/29/2013 10:48 AM, Mohit Anchlia wrote: I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going to be bufferred in memory. Let me google that for you: http://commons.apache.org/proper/commons-fileupload/using.html Read the above. It looks like this answers all of your questions and gives lots of flexibility. If you are using servlet 3.0 file upload, there are configuration parameters that let you specify how much file data will be uploaded before the data gets buffered on disk, etc. (Google for "servlet 3.0 multipart-config"). - -chris Nice. The annotation is especially nice (for those that are wired that way). A (more) complete answer would have included both answers, and left the choice as an exercise for the reader. Thanks - /mde/ . . . . just my two cents. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Uploading large files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/29/13 2:00 PM, Mark Eggers wrote: > On 5/29/2013 10:48 AM, Mohit Anchlia wrote: >> I am looking for a general advice on uploading large files. I am >> currently thinking that we do it on our API and have clients >> chunk it in multiple pieces and send it to the server. >> >> I could try http chunk based transfer but only think I am unsure >> of is if on the server the entire content is going to be >> bufferred in memory. >> > Let me google that for you: > > http://commons.apache.org/proper/commons-fileupload/using.html > > Read the above. It looks like this answers all of your questions > and gives lots of flexibility. If you are using servlet 3.0 file upload, there are configuration parameters that let you specify how much file data will be uploaded before the data gets buffered on disk, etc. (Google for "servlet 3.0 multipart-config"). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRpmVDAAoJEBzwKT+lPKRYNloP/2eNde9Q0T7RoxHgwTTYYYl7 dhCIFQ3MgAYclebzb1tr91lc/eQdsJQVY9sfo24LEaoPLkOjRdoCoOphl0IIMCKv 4a4Qm5CGozoUxp+H8sObcB4492r7t0plucMwX2uVf0OWeeNruyA7PQmjVg/MP4JL /mbVrN/rN8wgyqrrcBSSoY8VI24eZVV5rfp9j/YDm5Nz+TAngmTCtR8fiLp/Zv3D YUgAfXLUknZaQg47xHJE9sztKVbBx+A43wIMlFTMzUlQ1U/RYyXfVqMa2cGH/uP9 v5DJFvo0l6MaH6tgjGbhdbw2JV1m6wYggXHitw++lzProtKUNY0aFMR41G9b1zJQ oonvjMIKw/7a6J4DoZrY6Wgk1hcF8T/5CF6ZuRVskJAovnguZGe0MNKN5saMbP5j MEpasTZHNDsMAm6O9SzZiecd8+bJ4iDXbTiqOhMxd0DUcb8dGQE3Jddlr/I0DLwj 0lgLJ619CRVB6d8bhTSnNrzpmGWBznyGEyrJztl1WIC1ajmdS7VpeOrdGlFff60R pv6WhzTKCn2C7W9fCIcQLkTZu1lW/67bT72fZKZEJwAVWAwHBf3nLbc859zwyG2q csivsKEGRD90VNs412G93/BCHuEpiu95uWO5CimmlZdLnXuJAHWMTyncHbOI9vBA OEfroxAnoUZMk44QnLgk =x/oz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: allow domains *and* ip range
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Miklos, On 5/28/13 7:19 PM, Miklos Espak wrote: >> Note that the "allow" and "deny" attributes are regular >> expressions, so you can get as creative as possible. There was a >> request a while back for a filter/valve that would operate on >> CIDR ranges... I don't think that ever got committed. A quick BZ >> search didn't find anything. It must have been on the mailing >> list. >> > > The CIDR format would be more natural for the address filtering, > but I could express the range with a regex, so this is not the > problem. Yeah, regexps will work of course, but CIDR is certainly much more standard. >> Combining the valves using OR is not really possible as you >> describe it. Tomcat doesn't have anything like Apache httpd's >> "RequireAny". You could easily write a new Valve that extends one >> or the other valve and implements its own OR semantics. >> > > Do I have to modify the tomcat sources for this, or could I keep my > code in a separate library? I would like to avoid maintaining a > patch for this and rebuilding tomcat after an upgrade. I do not > know the tomcat API. You could keep this in a separate library -- just make sure that you put it into Tomcat's lib/ directory. You will not have to modify Tomcat sources per se, but you'll be stealing some source from Tomcat and then maintaining it yourself. It's honestly not that much code. It might be fun to create some combinations of these "allow"-type filters that more closely-match some of the stuff that httpd can do. > Maybe it would be easier to install an apache httpd that directs > the http/https ports to tomcat and configure this in the httpd > config? It will certainly be easier in that you will only have to configure things and not have to write any software. But adding another service component adds a layer of complexity you may not want to add. Another option would be to use the url-rewrite filter[1] with appropriate rules to whitelist your hostnames and/or IPs and reject everything else. > I tried to configure this in iptables as well, but that does not > support domains as I saw. iptables works strictly on IP addresses and won't work on hostnames. - -chris [1] http://tuckey.org/urlrewrite/ -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRpl+rAAoJEBzwKT+lPKRYdugQAL4M9MPGlBTNa2DNVto7xrsN ZH0wHam8FuBM0pjtXU0S7KPOO36fAXRTXUfn8VwOhHYgbbfEat1Aiwm/7eYl8wmz jYCJSbyylgYaZWoNf0dfI4J9mnf1rgnZmFzqafOYHWoYlMsAI6w1YfvpFyceSHnE S1DKgAXNcd/fq+4b/bM0T0On36ZDiFNgvjyk/ckYAhqqTBF+pd6MaMZPvsGnejC0 wbUgauuJdZSn2Gvvsa0/Z3Z8r5rk2GYwGvKviigWtCyGg2+qwXHqAcDSBGHwGFDD UXMlVMlrIWLycOCqKMxzIFQMYYKynDLpLDFnWVIG2GDCDiEdAo4kS9tH6Tj+X9fm qv1Ntzb0mjLJr0JXxg53ppdJP7biOqdAbL8aTzCMEKd+FkSxnQ7HUL2FSO9ERFl+ e9dyOd90NuBZ/iUYVqvkTXFS7eY13g5h+AWz6UAoEkytDf7w5zLtm/T6Y0ol4RWB OZJUCmRUaFMfDbDx4E/Q9C3/J6lvgn9l1VVEIRcHsi/MWdRRwoICiyAvBVQ3t6BP L49WUOtRb2pdcRCv6HRJRuLLQnav9YpLpkRgQU97JfyUtzG+dvyo1molFBxTALbZ qw1iwruWbvw4WFWefcaAe3tuHxppEwwJfTuH4yXJJtAprvgyA8KSM/4s7Zl5aE2m 22tg5BBK/kLqw+HPSGtu =kjAC -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Uploading large files
On 5/29/2013 10:48 AM, Mohit Anchlia wrote: I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going to be bufferred in memory. Let me google that for you: http://commons.apache.org/proper/commons-fileupload/using.html Read the above. It looks like this answers all of your questions and gives lots of flexibility. . . . . just my two cents /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Uploading large files
I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going to be bufferred in memory.
Re: Is there a way to make manager applications be first ones loaded?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 5/28/13 6:02 PM, Caldarale, Charles R wrote: >> From: Nick Williams [mailto:nicho...@nicholaswilliams.net] >> Subject: Is there a way to make manager applications be first >> ones loaded? > >> The FileNotFoundExceptions in our Ant build happen when the Ant >> task successfully contacts Tomcat but Tomcat returns a 404 for >> the manager because that application hasn't started yet. That's >> unpleasant. > > Why not have your Ant task contact the manager app, and only > proceed when a positive response is received? +1 You could also connect via JMX to see if the /manager context has started before attempting to deploy. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRpjzFAAoJEBzwKT+lPKRYnfIP/jKbxurDvqMIIivV3JMeO6xw hVlwPzeLJaFSgkchjDQr19VzdDlHzzu4mL/1wNP5/tAdTwvIy8IbIhTq2gFfUk8h p/itlfCKzlXzeKRf2FRnxmIZDgMy7IwNbMsonvjyvMV1RQrVras9yeOnlHwicoME Y/hXnc/wt9HFr7FrZI8xF0XNbT7UelI42HwAeQVzxNgyqbtpJcyjym3QVMzSzjdK G3+0gNRi411X5uiU1U80+8zibo9NXMHq4jHkbpYV3GDXB7MwTCi+4qG8YzFsEQoE MqN1Q0D7Ms9HltAIOmQmxdWCH/mi6Gg+8xO8BLhhA4HHbYuA4H0LF4A6J+2bKxPp LZhJTv4aTPs1HqaLSMX8hbMKxS6SDQqhlcwWbjK39LdEELkreLZrQGz7lSdCG8RY UIUmq6HUgYXKb8EfOrSqo/vUx/6QRlW7mfhC0msQMSBagTn+7pI1yj72ESXOw1j3 HY+TVwUvzd8OZP7o5vx0USquo88Typ0L5qLavTY2aO5V6frrMiwpmMPbAxCYvgf5 hWEV2y23WAUCPuGH2xlxyhwdGydoXy3Y10lPMUF3vL547GaH7wT4M+TdnTYV40EL L1ubY6D5hBQiXFpjkOKBAfK6v35Acl8sapj/1zwBjeCCGL1bMJioI72v6JuEoKHh O/VB9m07QQiKq2OO5t+Y =AJ0h -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Reg. Tomcat Support Cost
Pid wrote: On 29/05/2013 12:44, Jailwal, Pawan (Genworth) wrote: Hi Thanks, Can you tell me the support cost? Like what are all the support level & cost accordingly? Either you can read the pages indicated, or you could pay me $1m a year for dedicated support for all levels to help you read the pages indicated. With due respect, I believe that my esteemed colleague above is somewhat out of his mind, and I will make a more reasonable counter-offer as follows : For a one-off advance fee of $25,000 (twenty-five thousand US Dollars) + applicable taxes, I would happily act as a go-between, and contact each of the organisations mentioned on the page http://wiki.apache.org/tomcat/SupportAndTraining on your behalf and ask them for terms and conditions, add my modest broker fee to ditto, format this into a nice spreadsheet and forward it to you for comparison. p -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 29 May 2013 12:42 To: Tomcat Users List Subject: Re: FW: Reg. Tomcat Support Cost Jailwal, Pawan (Genworth) wrote: Hello, We are looking information of support/license cost of Tomcat server, can you please provide the information on the same? As indicated on the Internet home page of the Tomcat project at http://tomcat.apache.org, Tomcat is open-source (and free software), so there is no license fee. As also indicated under the "find help" item on that same page, there are a number of possibilities for help and support, some of them free, some not. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Reg. Tomcat Support Cost
As others pointed out, check out the list of companies that provide support and training: http://wiki.apache.org/tomcat/SupportAndTraining I am sure that you can find others too: http://bit.ly/13YsFrr Good luck!
Re: Making sure I understand application startup order correctly
On 29/05/2013 00:24, Nick Williams wrote: > Guys, > > Can some of the fine experts on this list double check my assertions below > and let me know if I'm going wrong anywhere? I hope I got it all right. :-) > > Assertion #1 > If metadata-complete="true" is present in the deployment descriptor: > A) The container does NOT scan /WEB-INF/classes for annotations, > B) The container does NOT scan /WEB-INF/lib JARs for > ServletContainerInitializers, "The metadata-complete and invocation of ServletContainerInitializers are independent." https://java.net/jira/browse/SERVLET_SPEC-36 p > C) The container does NOT scan /WEB-INF/lib JARs for web-fragment.xml files, > and > D) The container does NOT scan /WEB-INF/lib JARs for annotations. > > Assertion #2 > If class loading is configured "parent last," the > ServletContainerInitializers in the application are fired before > ServletContainerInitializers provided by the container. If class loading is > configured "parent first", the ServletContainerInitializers provided by the > container fire before the ServletContainerInitializers in the application. > > Assertion #3 > ServletContainerInitializers in the container and in /WEB-INF/lib JARs are > fired before any ServletContextListeners. The order in which they are fired > is determined by (web.xml) and/or > (web-fragment.xml), but if neither of those are present the order is > unspecified. > > Assertion #4 > The init methods of ServletContextListeners declared in the container, in > /WEB-INF/classes, and in /WEB-INF/lib JARS are all fired BEFORE the init > methods of any Filters or Servlets. The destroy methods of > ServletContextListeners declared in the container, in /WEB-INF/classes, and > in /WEB-INF/lib JARs are all fired AFTER the destroy methods of any Filters > or Servlets. > > Assertion #5 > The init methods of Filters declared in the container, in /WEB-INF/classes, > and in /WEB-INF/lib JARs are all fired BEFORE the init methods of any > Servlets. The destroy methods of Filters declared in the container, in > /WEB-INF/classes, and in /WEB-INF/lib JARs are all fired AFTER the destroy > methods of any Servlets. > > Assertion #6 > If any given ServletContainerInitializer is the first > ServletContainerInitializer to be fired when an application starts up, and > that ServletContainerInitializer adds a ServletContextListener and a Filter > to the ServletContext: > A) The Listener it adds will be the first Listener whose init method is > called and the last Listener whose destroy method is called, > B) The Filter it adds will be the first Filter whose init method is called > and the last Filter whose destroy method is called, and > C) The Filter will be the first Filter on the Filter chain, always. > > Thanks in advance, > > Nick > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- [key:62590808] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Reg. Tomcat Support Cost
Jailwal, Pawan (Genworth) wrote: Hi Thanks, Can you tell me the support cost? Like what are all the support level & cost accordingly? No, we cannot tell you that. We apologise for the inconvenience, but it seems unavoidable that you will unfortunately have to do some work yourself, by getting in touch with these organisations and asking them. Thanks Pawan Jailwal Genworth International Service Centre, Bay 133-134 Shannon Free zone, Shannon, Co. Clare, Office: +353 61714760 Mobile: +353 894646198 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 29 May 2013 12:42 To: Tomcat Users List Subject: Re: FW: Reg. Tomcat Support Cost Jailwal, Pawan (Genworth) wrote: Hello, We are looking information of support/license cost of Tomcat server, can you please provide the information on the same? As indicated on the Internet home page of the Tomcat project at http://tomcat.apache.org, Tomcat is open-source (and free software), so there is no license fee. As also indicated under the "find help" item on that same page, there are a number of possibilities for help and support, some of them free, some not. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Reg. Tomcat Support Cost
On 29/05/2013 12:44, Jailwal, Pawan (Genworth) wrote: > Hi Thanks, > > Can you tell me the support cost? Like what are all the support level & cost > accordingly? Either you can read the pages indicated, or you could pay me $1m a year for dedicated support for all levels to help you read the pages indicated. p > -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: 29 May 2013 12:42 > To: Tomcat Users List > Subject: Re: FW: Reg. Tomcat Support Cost > > Jailwal, Pawan (Genworth) wrote: >> Hello, >> >> We are looking information of support/license cost of Tomcat server, can you >> please provide the information on the same? >> >> > As indicated on the Internet home page of the Tomcat project at > http://tomcat.apache.org, Tomcat is open-source (and free software), so there > is no license fee. > As also indicated under the "find help" item on that same page, there are a > number of possibilities for help and support, some of them free, some not. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- [key:62590808] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: FW: Reg. Tomcat Support Cost
Hi Thanks, Can you tell me the support cost? Like what are all the support level & cost accordingly? Thanks Pawan Jailwal Genworth International Service Centre, Bay 133-134 Shannon Free zone, Shannon, Co. Clare, Office: +353 61714760 Mobile: +353 894646198 -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 29 May 2013 12:42 To: Tomcat Users List Subject: Re: FW: Reg. Tomcat Support Cost Jailwal, Pawan (Genworth) wrote: > Hello, > > We are looking information of support/license cost of Tomcat server, can you > please provide the information on the same? > > As indicated on the Internet home page of the Tomcat project at http://tomcat.apache.org, Tomcat is open-source (and free software), so there is no license fee. As also indicated under the "find help" item on that same page, there are a number of possibilities for help and support, some of them free, some not. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: Reg. Tomcat Support Cost
Jailwal, Pawan (Genworth) wrote: Hello, We are looking information of support/license cost of Tomcat server, can you please provide the information on the same? As indicated on the Internet home page of the Tomcat project at http://tomcat.apache.org, Tomcat is open-source (and free software), so there is no license fee. As also indicated under the "find help" item on that same page, there are a number of possibilities for help and support, some of them free, some not. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
FW: Reg. Tomcat Support Cost
Hello, We are looking information of support/license cost of Tomcat server, can you please provide the information on the same? Thanks Pawan Jailwal Genworth International Service Centre, Bay 133-134 Shannon Free zone, Shannon, Co. Clare, Office: +353 61714760 Mobile: +353 894646198
Re: Maven plugin for Tomcat 8?
Guessing, maybe just "overriding" plugin dependencies will work even with current released version of the plugin. Kind regards, Stevo Slavić. On Wed, May 29, 2013 at 12:44 PM, Olivier Lamy wrote: > Currently no idea. > That will probably need an other module (tomcat8). > > > > 2013/5/21 Rossen Stoyanchev : > > Is there any way to use the Tomcat maven plugin with Tomcat 8 (i.e. trunk > > snapshots)? The documentation lists how to configure Tomcat 6 and 7 only > > [1]. > > > > Rossen > > > > [1] http://tomcat.apache.org/maven-plugin-trunk/ > > > > -- > Olivier Lamy > Ecetera: http://ecetera.com.au > http://twitter.com/olamy | http://linkedin.com/in/olamy > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Maven plugin for Tomcat 8?
Currently no idea. That will probably need an other module (tomcat8). 2013/5/21 Rossen Stoyanchev : > Is there any way to use the Tomcat maven plugin with Tomcat 8 (i.e. trunk > snapshots)? The documentation lists how to configure Tomcat 6 and 7 only > [1]. > > Rossen > > [1] http://tomcat.apache.org/maven-plugin-trunk/ -- Olivier Lamy Ecetera: http://ecetera.com.au http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org