Re: Trouble with Tomcat5, SSI and crossContext
hi excuse me, can you tell me how to unsubscribe from the mailing list. thankx a lot - Original Message - From: Ted Gittinger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:29 PM Subject: Trouble with Tomcat5, SSI and crossContext jakarta-tomcat-5.0.18 Windows 2000 I cannot get SSI (server side includes) to work from one context to another. I CAN get it to work from one context to the ROOT context but not anywhere else. I have an index.html file with the following virtual include: !--#include virtual=/zinc/bdyhdr4.txt -- index.html is located in 'stx.war' deployed under webapps. zinc is a separate context under webapps and contains bdyhdr4.txt. webapps | | ROOT | | stx | | index.html | | zinc | | bdyhdr4.txt I have enabled the SSI servlet, set 'isVirtualWebappRelative' to 0, and changed the crossContext=true in both the stx.xml and zinc.xml files located in C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost. When viewing 'index.html', an error message an error occurred while processing this directive appears where the text from the #include should be. The Tomcat log file shows: StandardContext[/stx]ssi: SSIServletExternalResolver.getServletContextAndPath( /zinc/bdyhdr4.txt, true) StandardContext[/stx]ssi: #include--Couldn't include file: /zinc/bdyhdr4.txt java.io.IOException: Couldn't find file: /bdyhdr4.txt at org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExt ernalResolver.java:420) at org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:190) Here's the strange part. If I copy the bdyhdr4.txt file to the ROOT context, the include works. It seems as if Tomcat is resolving the context to 'ROOT' instead of 'zinc'. I did add a connector so that port 80 is used in addition to port 8080. Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Any ideas? I've tried creating a 'zinc' subdirectory in 'ROOT' and eliminating the 'zinc' context under webapps. I've tried adding a zinc subdirectory in 'jsp-examples' and changing the code to !--#include virtual=/jsp-examples/bdyhdr4.txt -- to see if crossContext is working. Thanks! - 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: Simple instructions
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Michael Forster [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:39 PM Subject: Simple instructions I am trying to learn how everything slots together with Jakarta and other things (like openejb etc) has anyone seen or could help put together the Dummys guide to Installing Configuring and Understanding Tomcat Some headers that could be used are What is in the server.xml file How do I set up the server to also serve html pages What files are needed for JNDI? JDBC? What is the bare minimum set of files needed to get tomcat running? Secrets of the WEB-INF dir. Mike. -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++ G e+ h++ r+++ y+++ --END GEEK CODE BLOCK-- --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.600 / Virus Database: 381 - Release Date: 28/02/2004 - 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: jar versions
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Charles N. Harvey III [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:42 PM Subject: Re: jar versions Didn't realize it was such a heated subject. Thanks for the reference, it made some good sense. I'm definately not the type to want to start an argument, so I can live with it as is. Thanks again. Charlie Shapira, Yoav wrote: Howdy, Please let's not start another flamewar on this topic of eternal debate, this mailing list is voluminous enough as it is. There are pros and cons to each side, and many debates have taken place on this and other list on this topic. Suffice it to say it's a choice the developers make. For example see http://marc.theaimsgroup.com/?t=10243459103r=1w=2. Yoav Shapira Millennium ChemInformatics -Original Message- From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:27 AM To: Tomcat Users List Subject: jar versions I have one little thing that sometimes drives me crazy about most products that I download off of the internet - jar versions. There aren't any. Its not just Tomcat, its Sun. How come the j2ee.jar never has a version? Does that bother anyone else? This never really bothered me that much before, because I was still a beginner and which version I was using never really came into play. But now that I try to keep up on the latest versions of freely available classes the version numbers matter. And, with the advent of Maven, it becomes slightly annoying to change my project.xml file because the jar does not have a version, or to rename my jars and add in a number. Recently I had issues with my classloader because there were jars in there that I could not override. What made it really difficult was finding out which version was used. But the /tomcat/common/lib/ directory does the same thing. Not one of the jars has a version number. Can this be changed? Can a 1.3 or 0.4 be added to the end of each of the jars so that everyone can know which version their system is loading? Just my $0.02. I am trying to get everyone at my company to make sure everything is numbered, so I thought I'd throw my opinion around at everyone else. :) Big fan of the product, thanks for all the years of great work. Charlie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: serving binary files
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:43 PM Subject: RE: serving binary files Howdy, Does anyone have a suggestion on how to server binary files through tomcat? I am creating a binary file as a result of a request and would like to let the user download it. Just setting mime type and passing through as an attachment doesn't work as write methods of the writer seem to truncate upper bits of the data. This is not specific to tomcat, it's basic servlet writing. If you're outputting binary data, don't use the writer obtained from HttpServletResponse#getWriter. Instead, use the output stream obtained from HttpServletResponse#getOutputStream. Then setting the mime type will be sufficient. Any useful suggestion would be greatly appreciated. And useless suggestions? ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]