Re: big image only appear at half
Hmm nope already try it s not a memory problem :( it seem that s the 3 factor toghether : apache 2.2.3 (maybe the same with other apache) tomcat 5.5.20 mod_jk and tomcat native library (i have try many version) when all of this are together i get this problem, if someone has the same configuration :) right now i have remove the native library because i didn t find any other solution. seb - Original Message - From: Dick Balaska [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, December 07, 2006 8:46 AM Subject: Re: big image only appear at half Out of memory, perhaps? I've run into this with big images. I had to serialize my image reader/preparer too. Trying to do more than one image at a time would exhaust memory rather quickly. -Xms512m -Xmx768m dik On 12/6/2006 3:09 PM also sprach mast : Hi, nobody have had problem with big image on tomcat ? (it do that on a brand new tomcat with common configuration that s why i am surprised nobody has encounter this) Regards - Original Message - From: mast [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, December 04, 2006 11:38 PM Subject: big image only appear at half Hi, i am having a problem with tomcat 5.5.20 (problem not present on 5.5.9) , when i put an image bigger than approximatively 130K it only appear at half on the screen (it s cut in the middle) i have put in the web.xml init-param param-namesendfileSize/param-name param-value-1/param-value /init-param in case it was this, but doesn't change a thing, i have try to find a solution on the ML but didn t find it yet, anyways have a solution about this? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat switches off all the time
I`m trying to install the tomcat 5.5.12 version on my computer, but I can not run tomcat automatically by changing the service-properties from manual to automatic. The tomcat service switches off after about 0.5 minutes. Even if i restart the computer, tomcat does not switch on again automatically. Do you have any idea what the bug for this problem is? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat switches off all the time
Is there any firewall running in your machine? -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:20 PM To: users@tomcat.apache.org Subject: tomcat switches off all the time I`m trying to install the tomcat 5.5.12 version on my computer, but I can not run tomcat automatically by changing the service-properties from manual to automatic. The tomcat service switches off after about 0.5 minutes. Even if i restart the computer, tomcat does not switch on again automatically. Do you have any idea what the bug for this problem is? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: tomcat switches off all the time
yes, I`m using the Windows Firewall... does a firewall have any influence on the activity of the tomcat-service? Original-Nachricht Datum: Thu, 7 Dec 2006 14:57:56 +0530 Von: Narayanaswamy, Mohan [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: RE: tomcat switches off all the time Is there any firewall running in your machine? -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:20 PM To: users@tomcat.apache.org Subject: tomcat switches off all the time I`m trying to install the tomcat 5.5.12 version on my computer, but I can not run tomcat automatically by changing the service-properties from manual to automatic. The tomcat service switches off after about 0.5 minutes. Even if i restart the computer, tomcat does not switch on again automatically. Do you have any idea what the bug for this problem is? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is jsp designed for use by large websites
Is SJAS 9 really using tomcat inside ? its already 2.5 and the behaviour is slightly different like the getContextPath(), and other function which returns null at tomcat 5.5 has a return value at SJAS 9. Log log = Utility.getLogger(this); ServletContext context = evt.getServletContext(); log.info(servlet context name : + context.getServletContextName() ); log.info(server info : + context.getServerInfo()); log.info(servlet api + context.getMajorVersion() + '.' + context.getMinorVersion()); On 12/7/06, JiaDong Huang [EMAIL PROTECTED] wrote: As far as I know, JBoss/SunOne are all bundling Tomcat inside. Not sure where the feeling of the number of Tomcat users to attenuate over time comes from. Dong -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 December 2006 3:07 PM To: Tomcat Users List Subject: Re: Is jsp designed for use by large websites Totally agree. PHP is no doubt an excellent tool, but primarily for hobbyists or standalone type of deployment. On the other hand, Java is widely used on enterprise application. If you open up the hood and look, all the expensive application like WebSphere are running Tomcat inside. epy. - Original Message - From: Leon Rosenberg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 06, 2006 3:27 PM Subject: Re: Is jsp designed for use by large websites On 12/6/06, Peter Crowther [EMAIL PROTECTED] wrote: From: Martin Gainty [mailto:[EMAIL PROTECTED] As Tomcat is OpenSource (and not proprietary) and can be installed on any OS (vs just 1) I dont undertand What is causing the number of Tomcat users to attenuate over time? Ancient history, I know, but I'll respond anyway. A Model T Ford is a perfectly good car. However, if Ford don't innovate and other car manufacturers do, people buying new cars will switch away from Ford to vehicles that are cheaper, faster, have lower fuel costs or innovations like a roof. Tomcat and JSP is a perfectly good model for web applications. However, if the Java community and the Tomcat developers don't innovate and other communities do (for example the PHP community and Microsoft), people deploying new applications will switch away from Tomcat and JSP to systems that are cheaper, faster to develop, have lower hosting/running costs or innovations like per-webapp memory and CPU throttling. The issue is not that Tomcat is bad in absolute terms, it's simply that other communities are out-innovating it so it's becoming a (perceived) poorer *relative* choice. I'd too like to know which communities are out-innovating java? To stay in you example, comparing php (or ruby for this matter) to java is like comparing bicycles with cars. Sure its fun to make a ride on sunday. Sure it's ok to bike to the office on a sunny day, if the office is 30 minutes away. But trying to deliver a fridge to the customer with a bike is rather stupid. regards Leon Btw. I'm ashamed that I don't know it, but does C# has a similar concept to ThreadLocals? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Andre- PCs are like air conditioner, if you open Windows, they don't work
Re: RE: RE: tomcat switches off all the time
Unfortunately the tomcat still switches off although I turned of the firewall. Original-Nachricht Datum: Thu, 7 Dec 2006 15:10:37 +0530 Von: Narayanaswamy, Mohan [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: RE: RE: tomcat switches off all the time Yes, Turn of the Windows Firewall and test it. Firewall blocks when Tomcat tries to listen a port. Regards, Mohan -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:38 PM To: Tomcat Users List Subject: Re: RE: tomcat switches off all the time yes, I`m using the Windows Firewall... does a firewall have any influence on the activity of the tomcat-service? Original-Nachricht Datum: Thu, 7 Dec 2006 14:57:56 +0530 Von: Narayanaswamy, Mohan [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: RE: tomcat switches off all the time Is there any firewall running in your machine? -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:20 PM To: users@tomcat.apache.org Subject: tomcat switches off all the time I`m trying to install the tomcat 5.5.12 version on my computer, but I can not run tomcat automatically by changing the service-properties from manual to automatic. The tomcat service switches off after about 0.5 minutes. Even if i restart the computer, tomcat does not switch on again automatically. Do you have any idea what the bug for this problem is? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: RE: tomcat switches off all the time
Do you find any clue from the Tomcat Logs? Regards, Mohan -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:53 PM To: Tomcat Users List Subject: Re: RE: RE: tomcat switches off all the time Unfortunately the tomcat still switches off although I turned of the firewall. Original-Nachricht Datum: Thu, 7 Dec 2006 15:10:37 +0530 Von: Narayanaswamy, Mohan [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: RE: RE: tomcat switches off all the time Yes, Turn of the Windows Firewall and test it. Firewall blocks when Tomcat tries to listen a port. Regards, Mohan -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:38 PM To: Tomcat Users List Subject: Re: RE: tomcat switches off all the time yes, I`m using the Windows Firewall... does a firewall have any influence on the activity of the tomcat-service? Original-Nachricht Datum: Thu, 7 Dec 2006 14:57:56 +0530 Von: Narayanaswamy, Mohan [EMAIL PROTECTED] An: Tomcat Users List users@tomcat.apache.org Betreff: RE: tomcat switches off all the time Is there any firewall running in your machine? -Original Message- From: Andreas Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 5:20 PM To: users@tomcat.apache.org Subject: tomcat switches off all the time I`m trying to install the tomcat 5.5.12 version on my computer, but I can not run tomcat automatically by changing the service-properties from manual to automatic. The tomcat service switches off after about 0.5 minutes. Even if i restart the computer, tomcat does not switch on again automatically. Do you have any idea what the bug for this problem is? -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ein Herz für Kinder - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries (SCGroup) do not accept liability for damage caused by this email and may monitor email traffic. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is jsp designed for use by large websites
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] I'd too like to know which communities are out-innovating java? My first like-for-like example would be .Net - and for those who don't think this is a community compared to Java, note that both have large companies supporting them. To anticipate an argument, comparing Java to PHP or Ruby simply because it's not Microsoft is specious. One should compare like with like. My second like-for-not-like community would be PHP. It's a community that doesn't have major corporate backing, but the rate of innovation of packages in the PHP world is very high indeed. I feel it's not necessarily ideal for large sites - where this thread started - due to its present implementation, but it's certainly good for small to medium sites. To stay in you example, comparing php (or ruby for this matter) to java is like comparing bicycles with cars. Sure its fun to make a ride on sunday. Sure it's ok to bike to the office on a sunny day, if the office is 30 minutes away. But trying to deliver a fridge to the customer with a bike is rather stupid. But realising that not everybody requires a 4-seater car, and that (say) a Smart car is relevant, is *precisely* an example of out-innovation. Btw. I'm ashamed that I don't know it, but does C# has a similar concept to ThreadLocals? Yes, since 1.0. http://msdn2.microsoft.com/en-gb/library/6sby1byh(VS.80).aspx - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user
Hello I have an installation of tomcat version 5.0.28 where tomcat runs under a user tomact on LINUX. My jsp application should read files from a directory. Read access to directory and files is limited to group sdf and file owner asd: drwxrws--- 17 asd sdf datathat contains the file -rwxrwx--- asd sdf input.txt The directory is owned by a different user than tomcat. However, user tomcat is a member of the group (sdf in the example) that owns the target directory. At LINUX level as user tomcat I have access to the file. For security reasons I cannot give read access to everybody. With this set up of user rights my application cannot access the file. If I create a group tomcat and if I change owner and/or group of the directory and file to tomcat then the read access works. Is this an error in my jsp application or could I configure tomcat that it would also read files without being the owner of files or the group? Thank you very much for your help Ekkehard
Re: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user
Ekkehard A quick clarification please..Are any of these directories sym-linked? M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements dentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, December 07, 2006 7:47 AM Subject: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user Hello I have an installation of tomcat version 5.0.28 where tomcat runs under a user tomact on LINUX. My jsp application should read files from a directory. Read access to directory and files is limited to group sdf and file owner asd: drwxrws--- 17 asd sdf data that contains the file -rwxrwx--- asd sdf input.txt The directory is owned by a different user than tomcat. However, user tomcat is a member of the group (sdf in the example) that owns the target directory. At LINUX level as user tomcat I have access to the file. For security reasons I cannot give read access to everybody. With this set up of user rights my application cannot access the file. If I create a group tomcat and if I change owner and/or group of the directory and file to tomcat then the read access works. Is this an error in my jsp application or could I configure tomcat that it would also read files without being the owner of files or the group? Thank you very much for your help Ekkehard
RE: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user
Dear Martin, Indeed, they are. Thank you Ekkehard -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 3:21 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user Ekkehard A quick clarification please..Are any of these directories sym-linked? M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements dentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, December 07, 2006 7:47 AM Subject: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user Hello I have an installation of tomcat version 5.0.28 where tomcat runs under a user tomact on LINUX. My jsp application should read files from a directory. Read access to directory and files is limited to group sdf and file owner asd: drwxrws--- 17 asd sdf data that contains the file -rwxrwx--- asd sdf input.txt The directory is owned by a different user than tomcat. However, user tomcat is a member of the group (sdf in the example) that owns the target directory. At LINUX level as user tomcat I have access to the file. For security reasons I cannot give read access to everybody. With this set up of user rights my application cannot access the file. If I create a group tomcat and if I change owner and/or group of the directory and file to tomcat then the read access works. Is this an error in my jsp application or could I configure tomcat that it would also read files without being the owner of files or the group? Thank you very much for your help Ekkehard
Tomcat Manager deletion
Hi tomcat users, On a win32 environment, I've installed many Tomcat instances for one Tomcat home. Ex: -Service 1: set CATALINA_HOME=C:\tomcat55 set CATALINA_BASE=C:\tomcat_appliA -Service 2: set CATALINA_HOME=C:\tomcat55 set CATALINA_BASE=C:\tomcat_appliB For each of those instances, I've deployed manager with the following context : Context docBase=${catalina.home}/server/webapps/manager privileged=true/Context Each time, I have to restart my win32 service, the manager webapp is deleted ?!? Any ideas ? Thanks, Remy C --- Cette communication (y compris les pieces jointes) est reservee a l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privilegiees, confidentielles, exemptees de divulgation selon la loi ou protegees par les droits d'auteur. Si vous n'etes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est non-autorisee et peut etre illegale. Tout message electronique est susceptible d'alteration et son integrite ne peut etre assuree. Sanofi Pasteur decline toute responsabilite au titre de ce message s'il a ete modifie ou falsifie. Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur de l'erreur de distribution et de la destruction du message. Merci. This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential, exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed.Sanofi Pasteur shall not be liable for this e-mail if modified or falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you. ** - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Server side forward across different webapps?
Yes, you can do this. You have to get the ServletContext of the other web app. Use your current servletContext and call getContext() with the uripath of the other web app. Use the returned context to get a RequestDispatcher. Use the RequestDispatcher as you would normally. See the servlet api as needed. Stanley Yue wrote: Hi all: I have two webapps running in the same tomcat process. I want to have one webapps perform a server-side forward to a servlet in the second webapps? Is this possible? If not, what are some of the workarounds? Thanks, Stanley - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server side forward across different webapps?
From: IT Desk [mailto:[EMAIL PROTECTED] Subject: Re: Server side forward across different webapps? You have to get the ServletContext of the other web app. Use your current servletContext and call getContext() with the uripath of the other web app. Note that you must set the crossContext attribute to true in your Context element for this to work. See the following for more details: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat5.5 service not find jre1.5.0, but startup.bat does
Under Windows XP Home, jre1.5.0, tomcat5.5, Oracle9i, JBuilder9 with jdk 1.4, StarTeam: My problem is with tomcat5.5 installed as a Windows service. It doesn't start. It logs the message: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later I interpret that to mean it has not located the jre1.5.0 home. However, it starts successfully with the startup.bat. My JRE_HOME environment variable is set to c:\Program Files\Java\jre1.5.0, and tomcat5.5 starts successfully using startup.bat. I found by testing and looking in the batch files that setting JAVA_HOME to the jre home did not work - it expects a jdk at the JAVA_HOME location apparently. The tomcat service was installed using service.bat -install. I tried to get the service to start by doing the following: 1. Set JAVA_HOME to point to the jre1.5.0 home. 2. Modifying the service.bat file to explicitly specify --JAVA_HOME parameter to the jre1.5.0 home. 3. Using tomcat5 //US// --JAVA_HOME ... to set the jre1.5.0 home. 4. Searching the registry for JAVA_HOME references that might conflict. Because I have JBuilder9 installed, there are the following registry keys: HKEY_LOCAL_MACHINE | SOFTWARE | JavaSoft | Java Development Kit | 1.4 | JavaHome = C:\Programs\Jbuilder9\jdk1.4 HKEY_LOCAL_MACHINE|SOFTWARE|JavaSoft|Java Development Kit|1.4.1|JavaHome = C:\Programs\Jbuilder9\jdk1.4 5. Editing the service properties and setting --JAVA_HOME in the startup parameters, but just guessing at the syntax. I have run out of ideas. Does anyone know what might be the problem with running Tomcat5.5 as a service with jre1.5.0? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set app as default context in Tomcat?
I am using Tomcat 5.5.20 and my app in XP. I need set my app as default context so I will only use url localhost:8080 instead of localhost:8080/app. The way I found is to set a context in Host of server.xml. But this led to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use of context in Host, which is correct for my app since it has its own context.xml under meta-inf folder. The only line I added in server.xml is as below(Context only), Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=appfuse docBase=appfuse debug=0 reloadable=true/ My context.xml is, Context path=/appfuse debug=99 reloadable=true antiJARLocking=true antiResourceLocking=false/ Can anyone give me some hints? Thanks! -- View this message in context: http://www.nabble.com/How-to-set-app-as-default-context-in-Tomcat--tf2776569.html#a7745991 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is this possibe? mod_jk ==SSL== AJP/1.3
Can traffic between mod_jk and Tomcat's AJP connector be encrypted (without using ssh/stunnel)? I see SSL mentioned in the doc for AJP, but it's clear as mud: http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html So, in Apache, I am using SSL and mod_jk. I set these parameters per the mod_jk doc: # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkExtractSSL On # What is the indicator for SSL (default is HTTPS) JkHTTPSIndicator HTTPS # What is the indicator for SSL session (default is SSL_SESSION_ID) JkSESSIONIndicator SSL_SESSION_ID # What is the indicator for client SSL cipher suit (default is SSL_CIPHER) JkCIPHERIndicator SSL_CIPHER # What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT) JkCERTSIndicator SSL_CLIENT_CERT In Tomcat's server.xml, I have define an AJP/1.3 connector like so: Connector port=8202 protocol=AJP/1.3 URIEncoding=UTF-8 scheme=https secure=true clientAuth=false (mod_jk worker uses this connection) It works whether I set scheme and secure or not. Is the communication encrypted? (If so, I'd wonder how since Tomcat knows nothing of my CA's public key or my keystore.) What am I missing? -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7746284 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server side forward across different webapps?
Along this line of thought, I have one webapp. webApp1 and a second, I supply called webApp2. Is there a way, that I can lookup the context of webapp2, knowing that the customer may change the name of that webapp2 at deployment time? I cant rely on the webapp2 name, since a user could change that. Also the installation of webapp2 is optional. I have in webapp1 a link to webapp2. Right now I create an environment variable in the webapp1 contextfile, that lists the URI for webapp2. This env-variable is then used as the link in webapp1. It would be very nice to take this step out, if there was a consistent way to know the context of webapp2 without requiring user input and still work if the users changed the name of webapp2 at deploy time. Maybe some global resource variable I set with webapp2 that's transparent to the user? Mike -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 1:03 PM To: Tomcat Users List Subject: RE: Server side forward across different webapps? From: IT Desk [mailto:[EMAIL PROTECTED] Subject: Re: Server side forward across different webapps? You have to get the ServletContext of the other web app. Use your current servletContext and call getContext() with the uripath of the other web app. Note that you must set the crossContext attribute to true in your Context element for this to work. See the following for more details: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to set app as default context in Tomcat?
From: kkus [mailto:[EMAIL PROTECTED] Subject: How to set app as default context in Tomcat? I am using Tomcat 5.5.20 and my app in XP. I need set my app as default context so I will only use url localhost:8080 instead of localhost:8080/app. The default app must be named ROOT. This is supplied by the name of the subdirectory of webapps, or packaging your app as ROOT.war under webapps. You may also specify it by using a Context element in conf/[engine]/[host]/ROOT.xml, if your app is deployed somewhere other than Tomcat's webapps directory. The Context element normally goes in webapps/appname/META-INF/context.xml. The only line I added in server.xml is as below(Context only), It is strongly discouraged to put Context elements in server.xml, since it requires a Tomcat restart to change them. Read the doc: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this possibe? mod_jk ==SSL== AJP/1.3
unless of course the Cert is self-signed with keytool I would remove all the certs from classpath and start with a 'True Certificate' signed by Verisign or Thawte M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: dfelicia [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, December 07, 2006 2:46 PM Subject: Is this possibe? mod_jk ==SSL== AJP/1.3 Can traffic between mod_jk and Tomcat's AJP connector be encrypted (without using ssh/stunnel)? I see SSL mentioned in the doc for AJP, but it's clear as mud: http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html So, in Apache, I am using SSL and mod_jk. I set these parameters per the mod_jk doc: # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkExtractSSL On # What is the indicator for SSL (default is HTTPS) JkHTTPSIndicator HTTPS # What is the indicator for SSL session (default is SSL_SESSION_ID) JkSESSIONIndicator SSL_SESSION_ID # What is the indicator for client SSL cipher suit (default is SSL_CIPHER) JkCIPHERIndicator SSL_CIPHER # What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT) JkCERTSIndicator SSL_CLIENT_CERT In Tomcat's server.xml, I have define an AJP/1.3 connector like so: Connector port=8202 protocol=AJP/1.3 URIEncoding=UTF-8 scheme=https secure=true clientAuth=false (mod_jk worker uses this connection) It works whether I set scheme and secure or not. Is the communication encrypted? (If so, I'd wonder how since Tomcat knows nothing of my CA's public key or my keystore.) What am I missing? -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7746284 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to set app as default context in Tomcat?
The way I am handling this, and it is probably not very clean, but it works for me, is to define an index.html file in webapps/ROOT with this content: html meta http-equiv=Refresh content=0; url=/app /html On 12/7/06, kkus [EMAIL PROTECTED] wrote: I am using Tomcat 5.5.20 and my app in XP. I need set my app as default context so I will only use url localhost:8080 instead of localhost:8080/app. The way I found is to set a context in Host of server.xml. But this led to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use of context in Host, which is correct for my app since it has its own context.xml under meta-inf folder. The only line I added in server.xml is as below(Context only), Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=appfuse docBase=appfuse debug=0 reloadable=true/ My context.xml is, Context path=/appfuse debug=99 reloadable=true antiJARLocking=true antiResourceLocking=false/ Can anyone give me some hints? Thanks! -- View this message in context: http://www.nabble.com/How-to-set-app-as-default-context-in-Tomcat--tf2776569.html#a7745991 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this possibe? mod_jk ==SSL== AJP/1.3
hi: As far as have seen there is no SSL support for AJP/1.3 - the trafic is in clear between the Apache and tomcat using mod_jk. I guess with apache 2 you can use mod_proxy and ssl to a tomcat using the http connector with ssl. If you have apache and tomcat on separate servers you might have to look at stunnel to encrypt the traffic. Fred Martin Gainty wrote: unless of course the Cert is self-signed with keytool I would remove all the certs from classpath and start with a 'True Certificate' signed by Verisign or Thawte M- - Original Message - From: dfelicia [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, December 07, 2006 2:46 PM Subject: Is this possibe? mod_jk ==SSL== AJP/1.3 Can traffic between mod_jk and Tomcat's AJP connector be encrypted (without using ssh/stunnel)? I see SSL mentioned in the doc for AJP, but it's clear as mud: http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html So, in Apache, I am using SSL and mod_jk. I set these parameters per the mod_jk doc: # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkExtractSSL On # What is the indicator for SSL (default is HTTPS) JkHTTPSIndicator HTTPS # What is the indicator for SSL session (default is SSL_SESSION_ID) JkSESSIONIndicator SSL_SESSION_ID # What is the indicator for client SSL cipher suit (default is SSL_CIPHER) JkCIPHERIndicator SSL_CIPHER # What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT) JkCERTSIndicator SSL_CLIENT_CERT In Tomcat's server.xml, I have define an AJP/1.3 connector like so: Connector port=8202 protocol=AJP/1.3 URIEncoding=UTF-8 scheme=https secure=true clientAuth=false (mod_jk worker uses this connection) It works whether I set scheme and secure or not. Is the communication encrypted? (If so, I'd wonder how since Tomcat knows nothing of my CA's public key or my keystore.) What am I missing? -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7746284 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7747753 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Timeout on request to response
I'm having an issue using Apache with mod_jk (ajp13) to Tomcat under JBoss having to do with a request that is taking longer than one of those pieces thinks is reasonable to produce a result for the client. I have found an attribute of the Connector called connectionTimeout specified in service.xml in the jbossweb-tomcat55.sar directory, along with another value called disableUploadTimeout. It seems to me that between the two of these parameters, given their descriptions, I should be able to get around the problem, but I've changed their values and can't seem to get to a point where the changes I make have any impact on the problem. Ordinarily, I wouldn't have a request that takes longer than 5 minutes to execute, but this one is producing a very valuable report and it just has to take that long. Somebody is sending an error back to the client after 5 minutes have expired. It's pretty clear that the server is continuing to chug away at producing the report, but by the time it's done, no one is listening for it any more. Does anyone have any insight as to how to make the timeout in this case longer than 5 minutes? Is there some other parameter in Apache that's overriding the one I've found in the Connector? The documentation for disableUploadTimeout says: This flag allows the servlet container to use a different, longer connection timeout while a servlet is being executed, which in the end allows either the servlet a longer amount of time to complete its execution, or a longer timeout during data upload. If not specified, this attribute is set to false. But it doesn't say where the longer connection timeout is specified. The fact that it says it makes it possible for the servlet container to use a different, longer connection timeout, makes me think it means a longer connection timeout than the one specified by the attribute called connectionTimeout, but it doesn't say that specifically. Help please. Thanks.
Auto-redeployment for a default web application
I have appBase and docBase as different folders. The docBase contains the war files. We want to deploy one of the WAR file as a default application (i.e. with the context path of empty string ). Things seems to deployed okay on startup. (Even though it is deployed twice, I do not have the docBase inside appBase though). However, it seems impossible to auto-redeploy this default web application. It is possible to auto-deploy an application by dropping a WAR file to the appBase directory. But I want the XYZ.war to be redeployed as a default one so we dont have to go http://localhost:8080/myapp;. Any suggestions is appreciated. Regards, K.C - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Auto-redeployment for a default web application
From: K. Chi Bui [mailto:[EMAIL PROTECTED] Subject: Auto-redeployment for a default web application We want to deploy one of the WAR file as a default application (i.e. with the context path of empty string ). I just answered this question a couple of hours ago. Check this thread in the archives: http://marc.theaimsgroup.com/?t=11655199514r=1w=2 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
I've tried using ROOT.war. Again, it is deployed fine on Tomcat startup. But it is not redeployed when u update the ROOT.war in either docBase and appBase directories. One interesting thing here is Apache suggests that we should not have docBase underneath appBase (or pointing these attributes to the same folder). I have my WARs in docBase. But I want them to be auto-redeployed. So sometime when tomcat is running, I have to put these new WAR files to the appBase folder to be detected. This is not good because the packed war files are mixed with the unpacked folders. Even this, there is a problem of redeploying after u change the name of the war file. You know what stops tomcat from redeploying even you update the WAR file? Is there anyway that we can tell Tomcat to redeploy when something is changed in a folder other than what specified in the appBase attribute (e.g. docBase folder)? Regards. Caldarale, Charles R wrote: From: K. Chi Bui [mailto:[EMAIL PROTECTED] Subject: Auto-redeployment for a default web application We want to deploy one of the WAR file as a default application (i.e. with the context path of empty string ). I just answered this question a couple of hours ago. Check this thread in the archives: http://marc.theaimsgroup.com/?t=11655199514r=1w=2 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user
You dont have to become group member or owner to read. For secure reason, normally we create a group, only owner can write and execute for example, and only group member can read. If your reading access related to JDK or tomcat classpath etc. You have to create secure policy file and start tomcat in secure mode. Wish it helps Li On 12/7/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear Martin, Indeed, they are. Thank you Ekkehard -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 3:21 PM To: Tomcat Users List Subject: Re: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user Ekkehard A quick clarification please..Are any of these directories sym-linked? M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements dentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, December 07, 2006 7:47 AM Subject: Tomcat 5.0.28 installed under LINUX - access to file system limited to tomcat user Hello I have an installation of tomcat version 5.0.28 where tomcat runs under a user tomact on LINUX. My jsp application should read files from a directory. Read access to directory and files is limited to group sdf and file owner asd: drwxrws--- 17 asd sdf data that contains the file -rwxrwx--- asd sdf input.txt The directory is owned by a different user than tomcat. However, user tomcat is a member of the group (sdf in the example) that owns the target directory. At LINUX level as user tomcat I have access to the file. For security reasons I cannot give read access to everybody. With this set up of user rights my application cannot access the file. If I create a group tomcat and if I change owner and/or group of the directory and file to tomcat then the read access works. Is this an error in my jsp application or could I configure tomcat that it would also read files without being the owner of files or the group? Thank you very much for your help Ekkehard -- When we invent time, we invent death.
Re: Is this possibe? mod_jk ==SSL== AJP/1.3
As far as have seen there is no SSL support for AJP/1.3 - the trafic is in clear between the Apache and tomcat using mod_jk. I guess with apache 2 you can use mod_proxy and ssl to a tomcat using the http connector with ssl. Thanks for the reply, Fred. I feared that was the answer. The problem with mod_proxy is that it doesn't perform as well. It also doesn't offer load-balancing, connection pooling, etc. -- View this message in context: http://www.nabble.com/Is-this-possibe---mod_jk-%3C%3D%3DSSL%3D%3D%3E-AJP-1.3-tf2776640.html#a7750917 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
K. Chi Bui wrote: One interesting thing here is Apache suggests that we should not have docBase underneath appBase Where are you getting this from? If the docs say this they need fixing as this is absolutely not the case. The rule is appBase must not *equal* docBase. I have my WARs in docBase. I am not sure I understand this. WARs should be place in the appBase directory or, if stored outside the appBase, the docBase in your Context element should be set to the WAR file. I think you need to sort the above out before worrying about your other questions. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk failover and preferring localhost
I just tested with mod_jk 1.2.19 and it still seems as though the distance parameter is being ignored. Output from the status/monitor.page shows mod_jk alternating between tomcats with different distance values in workers.properties. How can I troubleshoot this further? Here's my workers.properties... [EMAIL PROTECTED]:/usr/local/etc/apache$ cat workers.properties workers.tomcat_home=/usr/local/tomcat5.5 workers.java_home=/usr/local/jdk ps=/ worker.list=tomcat worker.tomcat.type=lb worker.tomcat.socket_timeout=195 worker.tomcat.balance_workers=localhost,ritin worker.tomcat.sticky_session=False worker.localhost.port=8009 worker.localhost.socket_timeout=195 worker.localhost.host=localhost worker.localhost.type=ajp13 workers.localhost.distance=10 worker.localhost.lbfactor=1 worker.ritin.port=8009 worker.ritin.host=ritin worker.ritin.type=ajp13 workers.localhost.distance=20 worker.ritin.lbfactor=1 And some version information... [EMAIL PROTECTED]:~$ grep mod_jk /var/log/apache/error_log |tail -1 [Thu Dec 7 16:13:04 2006] [notice] Apache/1.3.37 (Unix) mod_perl/1.29 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 mod_jk/1.2.19 configured -- resuming normal operations Dane Rainer Jung-3 wrote: The new attribute distance will help you. It was first implemented for version 1.2.16, which is in the process of being released (see my other answer). Please test and let us know your results. thuss2 schrieb: We have 10 web servers with Tomcat's running on them and a mod_jk configuration to prefer the tomcat on localhost and only failover to another machine if the local one fails. This worked fine under our older mod_jk, however, we just upgraded to 1.2.15 and now it that the local_worker properties are no longer supported, it's load balancing every request. So I checked out the workers.properties options page: http://tomcat.apache.org/connectors-doc/config/workers.html and noticed the new distance option so that I can give localhost a distance of 0 and everything else a greater distance so that the load balancer should always prefer localhost. However, it seems to be ignoring the distance property completely and load balancing every request. Can anyone suggest what I might try to get it to always use the local tomcat for requests unless it fails: worker.list=tomcat worker.tomcat.type=lb worker.tomcat.socket_timeout=195 worker.tomcat.balance_workers=localhost,latin1,latin2,... worker.tomcat.sticky_session=False worker.localhost.port=8009 worker.localhost.host=localhost worker.localhost.type=ajp13 worker.localhost.lbfactor=1 worker.localhost.distance=0 worker.latin1.port=8009 worker.latin1.host=latin1 worker.latin1.type=ajp13 worker.latin1.lbfactor=1 worker.latin1.distance=1 worker.latin2.port=8009 worker.latin2.host=latin2 worker.latin2.type=ajp13 worker.latin2.lbfactor=1 worker.latin2.distance=1 Thanks, Todd -- View this message in context: http://www.nabble.com/mod_jk-failover-and-preferring-localhost-t1825380.html#a4979143 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mod_jk-failover-and-preferring-localhost-tf1825380.html#a7750978 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this possibe? mod_jk ==SSL== AJP/1.3
On 12/7/06, dfelicia [EMAIL PROTECTED] wrote: mod_proxy is ... It also doesn't offer load-balancing, Not true; see http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html I've used this recently (with mod_proxy_ajp) and it worked fine. :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk failover and preferring localhost
Short answer for your question: the two lines you tried to use as a distance configuration both have typos: workers.localhost.distance=10 workers.localhost.distance=20 workers - worker localhost - ritin (once) I just did a quick test with 1.2.20 (there should no be change wrt. distance between 19 and 20) and it worked. Regards, Rainer daneturner schrieb: I just tested with mod_jk 1.2.19 and it still seems as though the distance parameter is being ignored. Output from the status/monitor.page shows mod_jk alternating between tomcats with different distance values in workers.properties. How can I troubleshoot this further? Here's my workers.properties... [EMAIL PROTECTED]:/usr/local/etc/apache$ cat workers.properties workers.tomcat_home=/usr/local/tomcat5.5 workers.java_home=/usr/local/jdk ps=/ worker.list=tomcat worker.tomcat.type=lb worker.tomcat.socket_timeout=195 worker.tomcat.balance_workers=localhost,ritin worker.tomcat.sticky_session=False worker.localhost.port=8009 worker.localhost.socket_timeout=195 worker.localhost.host=localhost worker.localhost.type=ajp13 workers.localhost.distance=10 worker.localhost.lbfactor=1 worker.ritin.port=8009 worker.ritin.host=ritin worker.ritin.type=ajp13 workers.localhost.distance=20 worker.ritin.lbfactor=1 And some version information... [EMAIL PROTECTED]:~$ grep mod_jk /var/log/apache/error_log |tail -1 [Thu Dec 7 16:13:04 2006] [notice] Apache/1.3.37 (Unix) mod_perl/1.29 mod_ssl/2.8.28 OpenSSL/0.9.7e-p1 mod_jk/1.2.19 configured -- resuming normal operations Dane Rainer Jung-3 wrote: The new attribute distance will help you. It was first implemented for version 1.2.16, which is in the process of being released (see my other answer). Please test and let us know your results. thuss2 schrieb: We have 10 web servers with Tomcat's running on them and a mod_jk configuration to prefer the tomcat on localhost and only failover to another machine if the local one fails. This worked fine under our older mod_jk, however, we just upgraded to 1.2.15 and now it that the local_worker properties are no longer supported, it's load balancing every request. So I checked out the workers.properties options page: http://tomcat.apache.org/connectors-doc/config/workers.html and noticed the new distance option so that I can give localhost a distance of 0 and everything else a greater distance so that the load balancer should always prefer localhost. However, it seems to be ignoring the distance property completely and load balancing every request. Can anyone suggest what I might try to get it to always use the local tomcat for requests unless it fails: worker.list=tomcat worker.tomcat.type=lb worker.tomcat.socket_timeout=195 worker.tomcat.balance_workers=localhost,latin1,latin2,... worker.tomcat.sticky_session=False worker.localhost.port=8009 worker.localhost.host=localhost worker.localhost.type=ajp13 worker.localhost.lbfactor=1 worker.localhost.distance=0 worker.latin1.port=8009 worker.latin1.host=latin1 worker.latin1.type=ajp13 worker.latin1.lbfactor=1 worker.latin1.distance=1 worker.latin2.port=8009 worker.latin2.host=latin2 worker.latin2.type=ajp13 worker.latin2.lbfactor=1 worker.latin2.distance=1 Thanks, Todd -- View this message in context: http://www.nabble.com/mod_jk-failover-and-preferring-localhost-t1825380.html#a4979143 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
I have two different folders for appBase and docBase. I have my .wae files in the docbase and of course this is set in the Context tag. But having the war in the docBase, how can I tell Tomcat to redeploy them because they are not in 'appBase'? This is my main question. Mark Thomas wrote: K. Chi Bui wrote: One interesting thing here is Apache suggests that we should not have docBase underneath appBase Where are you getting this from? If the docs say this they need fixing as this is absolutely not the case. The rule is appBase must not *equal* docBase. I have my WARs in docBase. I am not sure I understand this. WARs should be place in the appBase directory or, if stored outside the appBase, the docBase in your Context element should be set to the WAR file. I think you need to sort the above out before worrying about your other questions. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
When using automatic deployment, the |docBase| defined by an XML Context http://tomcat.apache.org/tomcat-4.1-doc/config/context.html file should be outside of the |appBase| directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice. extracted from: http://tomcat.apache.org/tomcat-4.1-doc/config/host.html Mark Thomas wrote: K. Chi Bui wrote: One interesting thing here is Apache suggests that we should not have docBase underneath appBase Where are you getting this from? If the docs say this they need fixing as this is absolutely not the case. The rule is appBase must not *equal* docBase. I have my WARs in docBase. I am not sure I understand this. WARs should be place in the appBase directory or, if stored outside the appBase, the docBase in your Context element should be set to the WAR file. I think you need to sort the above out before worrying about your other questions. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
K. Chi Bui wrote: I have two different folders for appBase and docBase. I have my .wae files in the docbase and of course this is set in the Context tag. So, to be clear: - your host has an appBase directory - you have placed appname.xml files in the appBase, one per WAR file - you have a second directory, called abc for this example - all of your WAR files are in the abc directory - each appname.xml has docBase=/some/path/abc/appname.war If this is the case, this should work. If this is not the case please provide more detail on your configuration. But having the war in the docBase, how can I tell Tomcat to redeploy them because they are not in 'appBase'? This is my main question. You don't want to reploy them, you want to reload them. You can use the manager to do this. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Auto-redeployment for a default web application
K. Chi Bui wrote: When using automatic deployment, the |docBase| defined by an XML Context http://tomcat.apache.org/tomcat-4.1-doc/config/context.html file should be outside of the |appBase| directory. If this is not the case difficulties may be experienced deploying the web application or the application may be deployed twice. extracted from: http://tomcat.apache.org/tomcat-4.1-doc/config/host.html OK. I had forgotten that combination of settings. Be aware that this is only true when *both* of the following apply: - you are using automatic deployment - you place a context.xml file in the appBase In this case, the war (or directory) referred to in the context.xml file should not be in the appBase. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk failover and preferring localhost
Rainer Jung-3 wrote: Short answer for your question: the two lines you tried to use as a distance configuration both have typos: workers.localhost.distance=10 workers.localhost.distance=20 workers - worker localhost - ritin (once) Ouch. How stupid. Thanks for the correction. Problem solved. Apologies for the sloppy post :-\ Dane -- View this message in context: http://www.nabble.com/mod_jk-failover-and-preferring-localhost-tf1825380.html#a7751349 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat5.5 service not find jre1.5.0, but startup.bat does
Run the Configure Tomcat program (tomcat5w.exe). Click on the Java tab. It'll show you what JVM it's using. If it's wrong, turn off Use default and select the correct JVM. -- Len On 12/7/06, sb4 [EMAIL PROTECTED] wrote: Under Windows XP Home, jre1.5.0, tomcat5.5, Oracle9i, JBuilder9 with jdk 1.4, StarTeam: My problem is with tomcat5.5 installed as a Windows service. It doesn't start. It logs the message: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later I interpret that to mean it has not located the jre1.5.0 home. However, it starts successfully with the startup.bat. My JRE_HOME environment variable is set to c:\Program Files\Java\jre1.5.0, and tomcat5.5 starts successfully using startup.bat. I found by testing and looking in the batch files that setting JAVA_HOME to the jre home did not work - it expects a jdk at the JAVA_HOME location apparently. The tomcat service was installed using service.bat -install. I tried to get the service to start by doing the following: 1. Set JAVA_HOME to point to the jre1.5.0 home. 2. Modifying the service.bat file to explicitly specify --JAVA_HOME parameter to the jre1.5.0 home. 3. Using tomcat5 //US// --JAVA_HOME ... to set the jre1.5.0 home. 4. Searching the registry for JAVA_HOME references that might conflict. Because I have JBuilder9 installed, there are the following registry keys: HKEY_LOCAL_MACHINE | SOFTWARE | JavaSoft | Java Development Kit | 1.4 | JavaHome = C:\Programs\Jbuilder9\jdk1.4 HKEY_LOCAL_MACHINE|SOFTWARE|JavaSoft|Java Development Kit|1.4.1|JavaHome = C:\Programs\Jbuilder9\jdk1.4 5. Editing the service properties and setting --JAVA_HOME in the startup parameters, but just guessing at the syntax. I have run out of ideas. Does anyone know what might be the problem with running Tomcat5.5 as a service with jre1.5.0? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is jsp designed for use by large websites
I believe SJAS 9 must be still using Tomcat. No reason for Sun to change the Servlet/JSP container. Agree? I can not comment about the stability of SJAS 9 as I am still using EJB2 - I did a quick try and realize I have to upgrade my EJB facility to EJB3. Would appreciate your findings! Dong -Original Message- From: Andre Prasetya [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 December 2006 8:45 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Is jsp designed for use by large websites Is SJAS 9 really using tomcat inside ? its already 2.5 and the behaviour is slightly different like the getContextPath(), and other function which returns null at tomcat 5.5 has a return value at SJAS 9. Log log = Utility.getLogger(this); ServletContext context = evt.getServletContext(); log.info(servlet context name : + context.getServletContextName() ); log.info(server info : + context.getServerInfo()); log.info(servlet api + context.getMajorVersion() + '.' + context.getMinorVersion()); On 12/7/06, JiaDong Huang [EMAIL PROTECTED] wrote: As far as I know, JBoss/SunOne are all bundling Tomcat inside. Not sure where the feeling of the number of Tomcat users to attenuate over time comes from. Dong -Original Message- From: epyonne [mailto:[EMAIL PROTECTED] Sent: Thursday, 7 December 2006 3:07 PM To: Tomcat Users List Subject: Re: Is jsp designed for use by large websites Totally agree. PHP is no doubt an excellent tool, but primarily for hobbyists or standalone type of deployment. On the other hand, Java is widely used on enterprise application. If you open up the hood and look, all the expensive application like WebSphere are running Tomcat inside. epy. - Original Message - From: Leon Rosenberg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, December 06, 2006 3:27 PM Subject: Re: Is jsp designed for use by large websites On 12/6/06, Peter Crowther [EMAIL PROTECTED] wrote: From: Martin Gainty [mailto:[EMAIL PROTECTED] As Tomcat is OpenSource (and not proprietary) and can be installed on any OS (vs just 1) I dont undertand What is causing the number of Tomcat users to attenuate over time? Ancient history, I know, but I'll respond anyway. A Model T Ford is a perfectly good car. However, if Ford don't innovate and other car manufacturers do, people buying new cars will switch away from Ford to vehicles that are cheaper, faster, have lower fuel costs or innovations like a roof. Tomcat and JSP is a perfectly good model for web applications. However, if the Java community and the Tomcat developers don't innovate and other communities do (for example the PHP community and Microsoft), people deploying new applications will switch away from Tomcat and JSP to systems that are cheaper, faster to develop, have lower hosting/running costs or innovations like per-webapp memory and CPU throttling. The issue is not that Tomcat is bad in absolute terms, it's simply that other communities are out-innovating it so it's becoming a (perceived) poorer *relative* choice. I'd too like to know which communities are out-innovating java? To stay in you example, comparing php (or ruby for this matter) to java is like comparing bicycles with cars. Sure its fun to make a ride on sunday. Sure it's ok to bike to the office on a sunny day, if the office is 30 minutes away. But trying to deliver a fridge to the customer with a bike is rather stupid. regards Leon Btw. I'm ashamed that I don't know it, but does C# has a similar concept to ThreadLocals? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Andre- PCs are like air conditioner, if you open Windows, they don't work - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Service Request not passing through Mod_Jk
Hello, I have a strange problem with mod_jk. Until now I never had trouble with mod_jk but lately I need to pass web service requests through to an Axis server running on tomcat (5.5.9). The strange thing is the pass-through works if the web service client resides on the same machine as apache httpd. But this is not a real use case. ;o) My first thought was this must be the firewall. But I opened all possible ports on the firewall and still got the same result. Besides this shouldn't be of any concern since axis uses the same http ports and it should be no difference if the request comes from a browser or a web service client using common http client. Error message I get are the usual java.net.SocketTimeout Exceptions. In the access.log of apache httpd I can see all requests coming either from localhost or the external client so no firewall problem possible. I set mod_jk log level to debug and see it's passing everything through even the request from the external client. I already asked at axis httpd mailings list. Nobody knew how to solve this. Cheers, Pete Attempting to map URI '/axis2/services/binarytest' [jk_uri_worker_map.c (524)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker2 - /axis2/ [mod_jk.c (1717)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=136973856 worker=worker2 jk_worker.c (132)]: Into wc_get_worker_for_name worker2 [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker [mod_jk.c (505)]: agsp=8080 agsn=192.168.200.194 hostn=192.168.200.194 shostn=my.proxy.de cbsport=0 sport=0 [jk_ajp_common.c (1693)]: Into jk_worker_t::get_endpoint [jk_ajp_common.c (1737)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 10 seconds [jk_ajp_common.c (1326)]: Into jk_endpoint_t::service [jk_ajp_common.c (298)]: Into ajp_marshal_into_msgb - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]