Re: Realm + PDF + Internet Explorer
Hi! You should try response.setHeader(Cache-Control,public); Regards, Viktor On Fri, 4 Feb 2005 07:56:20 -0700, Milazzo, Michael A HQISEC [EMAIL PROTECTED] wrote: I tried both application/pdf and application/octet-stream. I ensured the checkbox mentioned in this thread was unchecked within IE. I believe you can set the content as often as you wish, but the content type set for the stream will be the value set during the last invokation of setContentType(). At least that is my understanding. Thanks, Mike -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Friday, February 04, 2005 7:50 AM To: Tomcat Users List Subject: Re: Realm + PDF + Internet Explorer Yes. I have not attempted a fix as of yet. Was planning to try the link provided by Wendy as well as a twist on the uri. Mine now calls the servlet name. I was going to amend .pdf to it to see if that would help. I wonder, is it possible to set the response.setContentType() twice? Set it to html, send a blank page, change to application/pdf and send the document. Doug - Original Message - From: Milazzo, Michael A HQISEC [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 04, 2005 9:28 AM Subject: RE: Realm + PDF + Internet Explorer I have a similar issue. I am running Tomcat 5.0.x and Apache 1.3.x using the mod_jk connector over SSL (Apache handling all the SSL). I have a servlet that is supposed to open a PDF on the server and send it to a requesting client (using the HttpServletRequest object's output stream). IE 6 tells me that it can't download the internet site and the requested resource is either not found or not available. I know the files are there and no exceptions are being thrown on the server. Anyone else encountered this issue? Thanks, Mike -Original Message- From: Kalyan Inuganti [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 10:36 AM To: Tomcat Users List Subject: Re: Realm + PDF + Internet Explorer Gracie, IE has a setting that does not let you open PDFs being served over SSL. You can configure IE to not do this: Tools - Internet Options - Advanced - Security - Uncheck the Do Not Save Encrypted Pages to Disk checkbox if its checked. This should not have anything to do with Tomcat though. Hope that helps. Thanks, Kalyan On Thu, 03 Feb 2005 10:24:34 -0700, Wendy Smoak [EMAIL PROTECTED] wrote: From: Graice Marques [EMAIL PROTECTED] I'm having a problem with Internet Explorer. I have a web application running in Tomcat that generate some PDF reports. When I add a tomcat security realm to my webapp and run it in IE I can't open my PDF reports. I don't know if this is the same problem, but at least one version of IE wouldn't display non-HTML content after a form POST over SSL. Here's a workaround: http://wiki.wendysmoak.com/cgi-bin/wiki.pl?NonsecureContent -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jasper JSP Loading
Hi! I guess the only way is this: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/resources.html Regards, Viktor On Sun, 05 Sep 2004 09:14:41 +0200, Massimo Ferrari [EMAIL PROTECTED] wrote: Hello, what is the best way (if there is one) to make Jasper Load JSP sources from a database? Thank you Massimo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible bug in Tomcat5.0.27
Hi! It seems that setting Content-Length header on response commits that response (which shouldn't happen). protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { httpServletResponse.setIntHeader(Content-Length, 0); httpServletResponse.sendError(404); } After invoking such a servlet I'm getting IllegalStateException java.lang.IllegalStateException org.apache.coyote.tomcat5.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:338) com.fcs.TestServlet.doGet(TestServlet.java:32) I tried the following combination httpServletResponse.setIntHeader(Content-Length, 0); httpServletResponse.setStatus(304); Using sniffer I see that there is no 304 response, but 200 Ok. Can somebody clarify this? Regards, Viktor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having web. app. in custom medium, not in FileSystem
Hi All! I'm trying to use this feature http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/resources.html in order to have my web. app inside custom medium, not in File System. During the startup of the Tomcat I'm getting this exception. I checked the implementation of TldConfig and it seems that this line causes the exception NameClassPair item = (NameClassPair) items.nextElement(); I'm sure that underneath, in my implementation of JNDI provider, I return an object which extends NameCLassPair class. It seems that this could be a classloader issue. Has anybody tried to use this feature in Tomcat? If it's classloder related then where I should put my JNDI classes and related jars? (I tried common/classes, common/lib and server/classes, server/lib - same result) Will this approach work with embedded Tomcat under JBoss? Please, help me. Regards, VIktor 20-Jul-2004 12:40:26 PM org.apache.catalina.core.StandardContext start SEVERE: Error reading tld listeners java.lang.ClassCastException java.lang.ClassCastException at org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldC onfig.java:627) at org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig. java:594) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 260) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe ployer.java:903) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav a:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester .java:76) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:488) at org.apache.catalina.core.StandardHost.install(StandardHost.java:863) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j ava:482) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 76) at org.apache.catalina.core.StandardServer.start(StandardServer.java:229 8) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) - To unsubscribe, e-mail: [EMAIL PROTECTED] For