RE: Byte Serving PDF's
This doesn't seem to work for me. To test the theory, I dropped an 11.5 meg optimized PDF (i.e. a PDF prepared by Adobe Acrobat for byte serving) in the context root of an app in Tomcat 4. When I access the pdf directly using the file name in the URL, the whole thing still downloads before it displays. And I haven't messed with Tomcat 4's default configuration. I checked my browser acrobat plug-in (IE 6 w/ Acrobat Reader 5.01) to make sure they are configured correctly. Furthermore, I found a site that has some fairly large PDF's (http://web2.chm.msu.edu/oem/Blasting.htm) and the first page of those DO appear before the entire file finishes downloading. I then copied a 3.5 meg file from that site (http://web2.chm.msu.edu/oem/Blasting/Instruct/t01-10.pdf) and dropped it into the Tomcat 4 app. When I access that same file via Tomcat, the whole thing downloads before it displays. Any ideas? For those interested, here's Adobe's technical notes on the subject: http://www.adobe.com/support/techguides/acrobat/byteserve/byteservmain.html -T -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:09 AM To: Tomcat Users List Subject: AW: Byte Serving PDF's AFAIK the only thing you have to do is let tomcat 4.0 serve the PDF's instead of your own servlet. Tomcat 4 implements HTTP 1.1 which introduced something like 'byte range request' (I don't have the exact name at hand) which is used by the acrobat reader. -Ursprüngliche Nachricht- Von: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 23:59 An: 'Tomcat Users List' Betreff: RE: Byte Serving PDF's Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To: 'Tomcat Users List' Subject: RE: Byte Serving PDF's The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- 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] -- 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]
Byte Serving PDF's
Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Byte Serving PDF's
The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- 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: Byte Serving PDF's
Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To: 'Tomcat Users List' Subject: RE: Byte Serving PDF's The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- 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] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: upgrade b6 to 4.0.1
Do you have an old J2EE.jar in your classpath somewhere? -T -Original Message- From: Brian K. Buckley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:42 PM To: Tomcat Users List Subject: Re: upgrade b6 to 4.0.1 The most likely scenario is that you are somehow trying to use the generated source files (for your JSP pages) from the b6 release in the 4.0.1 release. This won't work. To get rid of them, shut down Tomcat and delete the entire contents of the work directory. Then, when you restart, the sources will get regenerated under the 4.0.1 compiler. Your scenario certainly sounds like it is on track, but it didn't work. I deleted the work directory (of 4.0.1 and also b6 and prior too) but the regenerated source has the same Tag/BodyTag package problem. Any other thoughts? - Brian -- 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: upgrade b6 to 4.0.1
No, but if the old classes are in the path by virtue of being in your apps WEB_INF/lib (for example) you may experience problems compiling. -T -Original Message- From: Brian K. Buckley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 4:13 PM To: Tomcat Users List Subject: Re: upgrade b6 to 4.0.1 Do you have an old J2EE.jar in your classpath somewhere? I start Tomcat using the standard startup.bat in the bin directory. Is my system classpath even used in the compiling of JSPs or anything else? I thought not. -- 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]
Where to put .properties so web app finds it
I've got a .properties file for settings in the web app that might be configured differently depending on which server the .war might be dropped. It obviously doesn't belong in the .war itself. Where is the recommended place to put such configuration files in Tomcat 4 so that the app will find it? I'm trying hard not to modify the default configuration of T4 much until I know more about it. -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Where to put .properties so web app finds it
Thanks, but I'm looking less for what works and more for what's right (if there is such a thing). -T -Original Message- From: Evan Swanson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 6:02 PM To: 'Tomcat Users List' Subject: RE: Where to put .properties so web app finds it CATALINA_HOME is set by the Tomcat4.0 as a property. Seems to work for me. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 3:00 PM To: Tomcat-User (E-mail) Subject: Where to put .properties so web app finds it I've got a .properties file for settings in the web app that might be configured differently depending on which server the .war might be dropped. It obviously doesn't belong in the .war itself. Where is the recommended place to put such configuration files in Tomcat 4 so that the app will find it? I'm trying hard not to modify the default configuration of T4 much until I know more about it. -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]