Re: Session Replication question
useDirtyFlag is supposed to be the SimpleTcpManager, DeltaManager always only replicates deltas. so does the backup manager. The two managers that work best are DeltaManager and BackupManager, both of them replicate upon setAttribute/removeAttribute actions. DeltaManager replicates to all other nodes in the cluster, BackupManager replicates to a single backup node where the data is stored. SimpleTcpManager, is no longer actively developed. Filip Jess Holle wrote: I read the cluster how-to regarding. I'm still not clear on a couple of details if is just using DeltaManager and SimpleTcpCluster: 1. If useDirtyFlag is false, I assume that the session is entire replicated after each and every access. Is this correct? 2. If useDirtyFlag is true, are only the pieces of the session that were changed (via setAttribute(), removeAttribute(), etc) sent throughout the cluster? * Or is this a separately configurable option? If so, when one calls setAttribute() and/or removeAttribute multiple times on the same attribute during the same request, are the duplicate events/deltas coalesced? I'm just trying to understand the behavior and capabilities of the clustering a bit better. I naively expected to find replication only when setAttribute(), removeAttribute() or the like are called /and/ that these changes would be coalesced into a minimalistic delta that would then be pushed to other nodes in the cluster (with a separate timestamp on each attribute if necessary). for the -- Jess Holle - 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 - Error : catalina.bat startup script is missing
In your Tomcat\bin directory, is there a (small) file called tomcat5.exe , and another called tomcat5w.exe ? If yes, then this will explain what is currently going on : http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html (Note : it is also linked to what you will find here : http://commons.apache.org/daemon/ Look for the procrun link) To get the standard bin files (including statup.sh), I suggest to download a standard Tomcat, unpack it in a new directory, and then just copy the missing files from that \bin subdirectory to your current one. That will give you a startup.bat, startup.sh etc.. Now, whether this is the good solution to your problem below, that I don't know. Chavadam wrote: Re: Static deployment of a previously tested-out web application (non compressed files) Dear Good IT Samaritans, I re-installed all the software applications on my PC, amongst others : ° Windows XP - Home edition - Version 2002 - Service Pack 3 ° jdk-6u7-nb-6_1-windows-ml ° apache-tomcat-5.5.27.zip (from the http://tomcat.apache.org/download-55.cgi site; not from the jakarta.apache.org/site/downloads/ site) ° mysql-5.0.67-win32 + a. dozen of plug-ins (proposed automatically) + choosen plug-ins as for XML Environment variables JAVA_HOME and CATALINA_HOME have been set on a classical way to their right respective path values (C:\program files\java\jdk1.6.0_07 and C:\Program Files\apache-tomcat-5.5.27). In NetBeans, I re-installed an existing web application (Java, JSP, servlets, JBeans, SQL, JDBC, XML ...) that I know which was running well on Tomcat before re-installation by simply copying the set of files and folders from the previous installation (static deployment / Same 'Context'). Now in NetBeans, I get the following deployment error at the start of run time : Starting of Tomcat failed, the C:\Program Files\apache-tomcat-5.5.27\bin\catalina.bat startup script is missing. In the following developers' forums, I did not found the right remedy or advice to me : ° http://www.nabble.com/netbeans-with-external-tomcat-td16531869.html ° http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=56t=004230 ° http://www.developpez.net/forums/d500395/java/developpement-web-java/tomcat/pb-debugger-tomcat-sous-netbeans-6-0-a/ So, I discarded and re-installed the NetBeans installation from my the NetBeans jdk-6u7-nb-6_1-windows-ml.exe installation file (that I put aside previously - It is not an installer file that I downloaded); Without success. Verification of Tools Servers ... All the settings at the different tabs seem to be OK. Looking to theProgram Files\apache-tomcat-5.5.27\bin folder (by means of a DOS-shell), I discovered that this installation of Tomcat does not feature a catalina.bat file (that NetBeans assumes to activate), hence missing script. Is it true that this problem could be solved if I re-install (again) Tomcat5 in the root of C: (not under C:\Program Files) ? I wonder if the installation wizard enables to make this choice. Or under D:\ ? Which is the file substituting the catalina.bat file ? In %CATALINA_HOME% directory, isn't it ? How to tell NetBeans to use this file to start up ? Which other version of apache-tomcat-5.5.27.zip file comes with the start and stop batch files ? - - - - - - - - - - - I found the page http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html and especially that ... [quote] The locations for Context Descriptors are; 1. $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml 2. $CATALINA_HOME/webapps/[webappname]/META-INF/context.xml Files in (1) are named [webappname].xml but files in (2) are named context.xml. If a Context Descriptor is not provided for a Context, Tomcat configures the Context using default values. [/quote] I observed that ... ° my '[webappname].xml' is present. This file contains a Context tag which, among others, contains a 'docBase' attribute whose value is the path to a [webappname]\build\web directory place which in turn contains the directories - WEB-INF, containing the 'web.xml' contect file - META-INF, containing the 'context.xml' file. ° my 'context.xml' is not present (see above) -- Does Tomcat configure the Context using its default values, or does it make use of the 'context.xml' file in the 'META-INF' directory ? - - - - - - - - - - - Kindly help me out, please. 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]
RE: Changing the ROOT application in Tomcat 6.0.18 on Linux
Thanks for the response, Chris. Yes, I used ROOT.xml (in upper case) but it just does not work. Well, there is no particular reason for not renaming my 'testweb' directory to 'ROOT'. I just do not like the fact very much that I have to rely on Tomcat specific contexts. I prefer to use my one and it bothers me that it does not work on Linux. As mentioned, no problems on Windows XP, but using ROOT.xml on my Linux machine does not work. It seams that Tomcat ignores the ROOT.xml in tomcat/conf/Catalina/localhost Thanks for the hint to not use the webapps directory. Yes, I do use another directory outside of Tomcat (I changes the appBase attribute in the host tag of the server.xml What do you mean with 'plus have it loaded from a separate ROOT.xml file, too' ? Thanks again! Maik -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 15. Oktober 2008 00:31 To: Tomcat Users List Subject: Re: Changing the ROOT application in Tomcat 6.0.18 on Linux -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maik, Maik Schumacher wrote: I want to change the ROOT application on Tomcat 6 without renaming my Web application to ROOT. Any particular reason? It's /way/ easier to simply re-name your directory to 'ROOT'. I performed the following steps on Windows where I have a Web application called testweb in the tomcat\webapps directory. 1) Created new directory structure tomat\conf\Catalina\localhost 2) Create a new File ROOT.xml in this new direcotry with this content: Context path=testweb reloadable=true/ Try moving your deployment directory to somewhere other than in the tomcat/webapps directory. It's not a good idea to allow TC to try to auto-deploy your webapp, plus have it loaded from a separate ROOT.xml file, too. Also, are you sure you used ROOT.xml (case matters)? If you didn't do that, it won't work. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj1HZ0ACgkQ9CaO5/Lv0PC7LgCdEyx1tUi8/dSR3ULdZO8XcU1p ux0AoKQ9hbApotDORgs94udGEIlUFPZC =l5Q4 -END PGP SIGNATURE- - 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: NIO 100% CPU usage
Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3 cores). Today I'll try to do some profiling to detect the exact cause, but the bug I mentioned before sound like a possible cause to me. I understand that you said that the bug is not fixed in JDK 6 update 7? It's strange because here http://java.sun.com/javase/6/webnotes/ReleaseNotes.html it says that the bug is fixed. Thanks, Matías -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: martes, 14 de octubre de 2008 08:16 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage hi Matías, I have not yet found a way to reproduce it to put in a work around so even though its not fixed in 1.5 and 1.6, we can make it work. If you want to work with me, we can make that happen, assuming you have a way to reproduce this Filip Matías Rojas wrote: Hello, I'm experiencing a problem with NIO in Tomcat, maybe related to this issue: Selector doesn't block on Selector.select(timeout) (lnx) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933 I'm using JDK 6 update 7 and it seems not to be fixed, does anybody have the same problem? When in heavy load, CPU usage goes to 100% and the only way to go back to normal is restarting Tomcat. Thanks, Matías - 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]
Transaction manager
Hi, I am looking for a standalone transaction manager for Tomcat. I tried JOTM but there's some blocker bugs in XAPool and the datasource implementation, moreover no new release for 3 years is scary :-) JBossTM works fine but it's under LGPL and unfortunatly I can't use it, too bad :-( Atomikos would be ok but I did not manage to configure it with Spring (the lookup for JTATransactionManager fails: No JTA ... found ..., and I don't wan't to tweak my applicationContext.xml with specific things as it should work in some other servers). I don't know if Geronimo provides a standalone TM that I could use in Tomcat, it seems to but I did not found any clear doc / post. Which TM are using with Tomcat? Thanks, Jerome - 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: Socket error
- Original Message - From: Rathiika [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 15, 2008 10:37 AM Subject: Re: Socket error Thanks Johny !!! for prompt response. I have checked my code, i am sure there is no problem with xml parsers. I am able to solve the FileNotFoundException, but sockettimeoutexception is still coming. I tried to change the timestamp in my appl, but no use. regards, Rathiika --- Rathiika, I dont know, cant get my mind around what it is u actually doing seems like a web service and in there you doing a call to another server... You were also getting null pointer exceptions all over the place... at every parser... That socket error seems to be saying the thing you calling is never answering... and it happens many times, maybe diff web services? Maybe the thing to do is watch the other side, the thing you calling into... maybe getting stuck somewhere. Sorry, its not jumping out and grabbing me ;) --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- If you cant pay in gold... get lost... http://coolharbor.100free.com/debt/usadebt.htm - 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: TC 5.5.27 upgrade JSP tag attribute quoting
David Wall wrote: While it makes sense, I was just checking to see if upgrading from Tomcat 5.5.26 to 5.5.27, not thinking such an upgrade would require JSP source code changes, will hold true going forward with subsequent Tomcat releases. We have a few places where JSP tag attribute values have Java code that itself contains double quotes, such as: tt:mytag value=%=(field+i)%/ or tt:mytag value=%=bean.get(name)%/ In 5.5.26, this compiled okay, but in 5.5.27, it results in an error like: org.apache.jasper.JasperException: /app/mypage.jsp(43,21) Attribute value (field+i) is quoted with which must be escaped when used within the value org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) It does make some sense, yet it worked fine for years. Is this something that will be true going forward with Tomcat releases, or is this some sort of bug that was introduced in 5.5.27? It is only interesting because even the error message shows it parses the attribute value correctly. Versions prior to 5.5.27 did not enforce the quoting requirements of the JSP spec. This was fixed in 5.5.27. You can disable this behaviour. See http://tomcat.apache.org/tomcat-5.5-doc/config/systemprops.html and look for STRICT_QUOTE_ESCAPING. 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: Transaction manager
2008/10/15 Jérôme Delattre [EMAIL PROTECTED]: Hi, I am looking for a standalone transaction manager for Tomcat. I tried JOTM but there's some blocker bugs in XAPool and the datasource implementation, moreover no new release for 3 years is scary :-) JBossTM works fine but it's under LGPL and unfortunatly I can't use it, too bad :-( Atomikos would be ok but I did not manage to configure it with Spring (the lookup for JTATransactionManager fails: No JTA ... found ..., and I don't wan't to tweak my applicationContext.xml with specific things as it should work in some other servers). I don't know if Geronimo provides a standalone TM that I could use in Tomcat, it seems to but I did not found any clear doc / post. Which TM are using with Tomcat? Thanks, Jerome I've just noticed JOTM is available in version 2.1.2 in maven repository ... http://www.mvnrepository.com/artifact/org.ow2.jotm/jotm-standalone/2.1.2 On their website it's still 2.0.10 ... strange. - 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: Changing the ROOT application in Tomcat 6.0.18 on Linux
From: Maik Schumacher [mailto:[EMAIL PROTECTED] Subject: RE: Changing the ROOT application in Tomcat 6.0.18 on Linux As mentioned, no problems on Windows XP, but using ROOT.xml on my Linux machine does not work. It seams that Tomcat ignores the ROOT.xml in tomcat/conf/Catalina/localhost Make sure you don't have a ROOT directory or ROOT.war file under the Host appBase directory, and that you don't have any Context elements in server.xml. If your new default webapp isn't deploying for some reason, there should be log entries indicating why. Are you using a real Tomcat on your Linux machine, or one of the 3rd-party repackaged versions? The latter has given people no end of problems due to abuse of symlinks and things not being where they appear to be. If so, delete it and install a real one from the Tomcat download page. You might want to do a clean reinstallation on the Linux box regardless, just to make sure there's not something messed up in what you've got. - 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]
Tomcat Shutdown Port as Variable
Hi All - I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my CATALINA_OPTS as parameters (-D...). Everything works great, however, the shutdown port seems to be an issue. Since catalina.sh does not utilize CATALINA_OPTS for the stop command, it does not process my parameter (-Dtc.shutdown.port=) and therefore will not attempt to shutdown the correct port. Is there any good way to achieve this to keep my server.xml modular without hacking apart the standard scripts that come with tomcat? for reference, TC version 6.0.18 Thanks, Al
tomcat as services
I have a machine that has multiply tomcat instances and they run as a service. I like to add a new tomcat: First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe Then I type the following tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem --Install=C:\Program Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop It shows up as service but will not start the tomcat error I get is as follows: [2008-10-15 09:33:59] [420 prunsrv.c] [error] The system cannot find the file specified. [2008-10-15 09:33:59] [1327 prunsrv.c] [error] Load configuration failed I think it's the parmaters can some tell mewhat the correct parmeters should be Thanks Frank
Re: Tomcat Shutdown Port as Variable
[EMAIL PROTECTED] wrote: Hi All - I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my CATALINA_OPTS as parameters (-D...). Everything works great, however, the shutdown port seems to be an issue. Since catalina.sh does not utilize CATALINA_OPTS for the stop command, it does not process my parameter (-Dtc.shutdown.port=) and therefore will not attempt to shutdown the correct port. Is there any good way to achieve this to keep my server.xml modular without hacking apart the standard scripts that come with tomcat? Adding it to JAVA_OPTS instead? Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Using S/MIME encryption in Tomcat5.5 fails
Hi, all! What I did now: I put the jars listed below into the endorsed directory. Than I got rid of the NoSuchProviderException and run into a NullPointerException now. I set Debug-mode on and get the following cosole output (only first two rows): ## DEBUG: setDebug: JavaMail version 1.3.1 error loading provider info: java.lang.NullPointerException java.lang.NullPointerException at net.suberic.crypto.EncryptionManager.loadProviders(EncryptionManager. java:48) at net.suberic.crypto.EncryptionManager.clinit(EncryptionManager.java: 37) ## As I told before ... Any help would be apreciated. Thanks and bye, servet -Ursprüngliche Nachricht- Von: Martin Gainty [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. Oktober 2008 18:56 An: Tomcat Users List Betreff: RE: Using S/MIME encryption in Tomcat5.5 fails I dont believe the default BC jars have S/MIME capability I would download bcmailJDK.jar and place in your /lib folder from http://www.bouncycastle.org/latest_releases.html let me know if this helps.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Using S/MIME encryption in Tomcat5.5 fails Date: Mon, 13 Oct 2008 18:13:46 +0200 Hi *, I try to encrypt outgoing mails from my webapplication with S/MIME. Therefore I make use of the BouncyCastleProvider and created an example according to http://javamail-crypto.sourceforge.net/. Afterwards I introduced Bouncycaste as securityprovider by adding the line security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvide r to the file JAVA_HOME/jre/lib/security/java.security. When I start the class as a standalone JavaApplication everything works fine, but putting it into my webapplication and calling it raises a NoSuchProviderException (DEBUG: setDebug: JavaMail version 1.3.1 java.security.NoSuchProviderException: No provider configured for S/MIME at net.suberic.crypto.EncryptionManager.getEncryptionUtils(Unknown Source)). Here is a list of libraries, that I include in the lib-directory of the created WAR-file: - activation.jar - bcmail-jdk15-141.jar - bcprov-ext-jdk15-141.jar - bcprov-jdk15-141.jar - cryptomail.jar - javamail-crypto_060622.jar - javamail-crypto-bouncycastle-smime_060622.jar - mail.jar - mailapi.jar - smtp.jar I also tried to put them into commons/lib but the exception is still thrown. I use Java1.5_14 and Tomcat5.5. Thanks in advance for your effort. Any help will be apreciated. Cheers, Servet - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ - 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 Shutdown Port as Variable
a shame that you cant specify that attribute via %JAVA_OPTS% maybe look at writing a set_8005 script which writes that specific_port to %TOMCAT_HOME%/conf/server.xml should be fine as long as you execute the script before starting TC .. any other suggestions? Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. To: users@tomcat.apache.org Subject: Tomcat Shutdown Port as Variable From: [EMAIL PROTECTED] Date: Wed, 15 Oct 2008 09:42:51 -0400 Hi All - I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my CATALINA_OPTS as parameters (-D...). Everything works great, however, the shutdown port seems to be an issue. Since catalina.sh does not utilize CATALINA_OPTS for the stop command, it does not process my parameter (-Dtc.shutdown.port=) and therefore will not attempt to shutdown the correct port. Is there any good way to achieve this to keep my server.xml modular without hacking apart the standard scripts that come with tomcat? for reference, TC version 6.0.18 Thanks, Al _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
RE: tomcat as services
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: tomcat as services First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem --Install=C:\Program Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop Rather than mucking around with all that, download and install the .zip version and use the included service.bat script to install as many services as you want. - 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: AW: Using S/MIME encryption in Tomcat5.5 fails
make sure TC knows where the endorsed folder is located e.g. -Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed when you're using a new package the best way to achieve an demonstrable functionality is to follow the provided sample http://javamail-crypto.sourceforge.net This package is beta status so if it works great..if it doesnt contact the projects comitters.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: AW: Using S/MIME encryption in Tomcat5.5 fails Date: Wed, 15 Oct 2008 16:04:43 +0200 Hi, all! What I did now: I put the jars listed below into the endorsed directory. Than I got rid of the NoSuchProviderException and run into a NullPointerException now. I set Debug-mode on and get the following cosole output (only first two rows): ## DEBUG: setDebug: JavaMail version 1.3.1 error loading provider info: java.lang.NullPointerException java.lang.NullPointerException at net.suberic.crypto.EncryptionManager.loadProviders(EncryptionManager. java:48) at net.suberic.crypto.EncryptionManager.clinit(EncryptionManager.java: 37) ## As I told before ... Any help would be apreciated. Thanks and bye, servet -Ursprüngliche Nachricht- Von: Martin Gainty [mailto:[EMAIL PROTECTED] Gesendet: Montag, 13. Oktober 2008 18:56 An: Tomcat Users List Betreff: RE: Using S/MIME encryption in Tomcat5.5 fails I dont believe the default BC jars have S/MIME capability I would download bcmailJDK.jar and place in your /lib folder from http://www.bouncycastle.org/latest_releases.html let me know if this helps.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Using S/MIME encryption in Tomcat5.5 fails Date: Mon, 13 Oct 2008 18:13:46 +0200 Hi *, I try to encrypt outgoing mails from my webapplication with S/MIME. Therefore I make use of the BouncyCastleProvider and created an example according to http://javamail-crypto.sourceforge.net/. Afterwards I introduced Bouncycaste as securityprovider by adding the line security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvide r to the file JAVA_HOME/jre/lib/security/java.security. When I start the class as a standalone JavaApplication everything works fine, but putting it into my webapplication and calling it raises a NoSuchProviderException (DEBUG: setDebug: JavaMail version 1.3.1 java.security.NoSuchProviderException: No provider configured for S/MIME at net.suberic.crypto.EncryptionManager.getEncryptionUtils(Unknown Source)). Here is a list of libraries, that I include in the lib-directory of the created WAR-file: - activation.jar - bcmail-jdk15-141.jar - bcprov-ext-jdk15-141.jar - bcprov-jdk15-141.jar - cryptomail.jar - javamail-crypto_060622.jar - javamail-crypto-bouncycastle-smime_060622.jar - mail.jar - mailapi.jar - smtp.jar I also tried to put them into commons/lib but the exception is still thrown. I use Java1.5_14 and Tomcat5.5. Thanks in advance for your effort. Any help will be apreciated. Cheers, Servet - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ See how Windows Mobile brings your life together—at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
RE: tomcat as services
Ok this maybe a stupid question to ask but where do I download the service.bat file I only asked due it is not in tomcaat bin directory and I did a search and can not find this file Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 10:29 AM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: tomcat as services First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem --Install=C:\Program Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop Rather than mucking around with all that, download and install the .zip version and use the included service.bat script to install as many services as you want. - 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]
Programmatic instruct Tomcat to shutdown
Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by issuing a shutdown instruction to the container, but I can't find how to do this peacefully. I tried the System.exit(1) trick but this keeps running threads active because they do not get the shutdown notification. How should I properly call server shutdown from my webapp ? Thank you, Maxim. -- Cheers, Maxim Veksler Free as in Freedom - Do u GNU ?
SOAP-based web service question
Hello, We'd like to do the following, and it *almost* works. We want multiple ports serving multiple web applications, and following the various how-tos on the web we've got multiple Service/Connector/Engine/Host setups going. This is Tomcat 5.5.16. We've got regular web application 'A' served on port 8081. We've got a SOAP-based web service 'B' (based on web app 'A') served on port 8023. We've got a SOAP-based web service 'C' served on port 8054. This all works, EXCEPT you can also access web service 'B' on port 8054, and you can access web service 'C' on port 8023. It doesn't appear to care. Any clues? Is this segregation possible? Thanks! --chris sterritt - 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 Shutdown Port as Variable
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat Shutdown Port as Variable a shame that you cant specify that attribute via %JAVA_OPTS% As Rainer already pointed out, you can; the shutdown script does not use CATALINA_OPTS, but it does honor JAVA_OPTS. - 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: tomcat as services
Never mind I found it thanks I go to try it -Original Message- From: Frank Uccello Sent: Wednesday, October 15, 2008 10:52 AM To: 'Tomcat Users List' Subject: RE: tomcat as services Ok this maybe a stupid question to ask but where do I download the service.bat file I only asked due it is not in tomcaat bin directory and I did a search and can not find this file Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 10:29 AM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: tomcat as services First I copy an existing tomcat.exe and rename to Tomcat-ItActionSystem.exe tomcat5 //IS//TomcatItActionSystems --DisplayName=Tomcat-ItActionSystem --Install=C:\Program Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto --StartMode=jvm --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop Rather than mucking around with all that, download and install the .zip version and use the included service.bat script to install as many services as you want. - 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 as services
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services Ok this maybe a stupid question to ask but where do I download the service.bat file Repeating what I already said (emphasis added): Rather than mucking around with all that, download and install the **.zip version** - 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: Socket error
Thanks Johny !!! for prompt response. I have checked my code, i am sure there is no problem with xml parsers. I am able to solve the FileNotFoundException, but sockettimeoutexception is still coming. I tried to change the timestamp in my appl, but no use. regards, Rathiika -- View this message in context: http://www.nabble.com/Socket-error-tp19967872p19989181.html 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: tomcat as services
I have now try the service.bat install name It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service Please help -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 11:27 AM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services Ok this maybe a stupid question to ask but where do I download the service.bat file Repeating what I already said (emphasis added): Rather than mucking around with all that, download and install the **.zip version** - 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 as services
From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service The error message is self-explanatory: you have a non-alphabetic character in the service name. - 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: Tomcat Shutdown Port as Variable
I have quite a few installs of Tomcat on the same server (same CATALINA_HOME, different CATALINA_BASE), and I am interested in making my configs a little more portable. I'm trying to make certain unique items in my server.xml variable ( ${variablename} ), being pulled from my CATALINA_OPTS as parameters (-D...). Everything works great, however, the shutdown port seems to be an issue. Since catalina.sh does not utilize CATALINA_OPTS for the stop command, it does not process my parameter (-Dtc.shutdown.port=) and therefore will not attempt to shutdown the correct port. Is there any good way to achieve this to keep my server.xml modular without hacking apart the standard scripts that come with tomcat? Adding it to JAVA_OPTS instead? That works as expected. Thank you very much! Al
Re: Installing another jdk while tomcat is running
- Original Message - From: nashrul [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, October 15, 2008 6:03 AM Subject: Installing another jdk while tomcat is running I have jdk 1.4 and 1.5 installed and tomcat 5.0 running. I downloaded jdk 1.6 and I want to install this jdk while the tomcat is running (for some reasons I couldn't shut down the tomcat). Is this OK if I do this ? Does jdk installation not interfere with the running tomcat ?? Thanks... Should not be a problem, just dont replace the old JRE, put the new one in another folder. Then... next time you start up tomcat you tell it to use the new JDK... or not. Its actually a good way to work... have a JRE or JDK in a non standard folder, that is dedicated to your server... esp if you also developing on the machine. You can have as many JDK/JREs as you want, and if you developing, you should keep all the old ones anyway... so you can test software against diff engines. The only problem is if you in stall multiple versions of the same JRE version... on windows anyway same version JRE's interfere with each other, but diff versions are ok. By the way... if you already using the TC in production... get another one of those as well... dont develop against your production TC. --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- If you cant pay in gold... get lost... http://coolharbor.100free.com/debt/usadebt.htm - 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: question : encounter java.net.SocketTimeoutException: Read timed out occasionally
Hi all, we've been having the same Exception and Stack Trace in an application we've written for a customer. Our application is running on Tomcat 5.5.25 accessed through Apache with ModJk. The Exception occurs when a client accesses the server with a slow connection and plenty of data is posted to the server during the request. The request parameters contained in the posted data are null when we try to access them in our java code. What we'll test next is to increase the keep-alive timeout of Apache and see if that helps. The downside of this being trouble if there are many Clients accessing the server at the same time. Another solution according to other posts in other forums might be an upgrade to tomcat 6. If the clients access the tomcat-server directly without apache in front of it, the error does not occur at all, so it seems to have something to do with modJK. Plus - in our case - the error has nothing to do with IE (for a change). Just wanted to let you know... Cheers, Alex Johnny Kewl wrote: - Original Message - From: James Wang [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, October 13, 2008 11:35 AM Subject: Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally Hi Johnny, Yes, We are using ajax to make the post requests, and the header do include content-length information that was calculated by ajax automatically, but the strange thing is sometime it get stuck at the begin of uploading http body(0 byte was transfered always in this case) until AJP connector timeout, actually we have revised a little bit on tomcat source code, below is our finding we made the change on org.apache.catalina.connector.Request.java for your reference : protected void parseParameters() { : : : : : : : : if (actualLen == len) { parameters.processParameters(formData, 0, len); } else { // added by me context.getLogger().error(formData Len error len : + len + actualLen : + actualLen); } } catch (Throwable t) { context.getLogger().warn (sm.getString(coyoteRequest.parseParameters), t); } } } Following was the Tomcat log, actualLen always return 0, the first line showing the content-length is 32 but the returned actual length is 0. SEVERE: formData Len error len :32 actualLen :0 SEVERE: formData Len error len :379 actualLen :0 SEVERE: formData Len error len :32 actualLen :0 SEVERE: formData Len error len :41 actualLen :0 SEVERE: formData Len error len :60 actualLen :0 SEVERE: formData Len error len :74 actualLen :0 SEVERE: formData Len error len :145 actualLen :0 SEVERE: formData Len error len :60 actualLen :0 Thanks Best Regards. James Wang On Mon, Oct 13, 2008 at 4:34 PM, Johnny Kewl [EMAIL PROTECTED] wrote: James... dont know... couple of thing you can do... get wire shark and actually watch whats on the wire... if the header is coming in and no body is sent, it aint tomcat... My Ajax is stale... if you doing it yourself, then its very like a javascript issue cant remember details but its not unusual in the Ajax stuff to see... ... if(IE) do it all different... ... I think you working on the wrong side... its that Ajax, is my guess My guess is that it works with Firefox perfectly... but not on IE and you dont have a debugger for that... welcome to Javascript ;) on diff browsers its a nightmare ;) Good luck, or maybe post the Ajax snippet and see if the guys can spot it... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- If you cant pay in gold... get lost... - 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/question-%3A-encounter-java.net.SocketTimeoutException%3A-Read-timed-out-occasionally-tp19326602p19993182.html 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]
problem with executing a batch file in tomcat JAVA servlet
I'm trying to execute a batch file in my servlet in tomcat5. I'm using the Process class exec() and issuing a command of cmd.exe /C file.bat Then I do a p.waitFor(); after this. However, it appears that a few of the files copy, then the process hangs. If I stop the calling program, the batch file completes. Any Ideas of what's happening? Thanks, Dan Gross, ATLC - 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: problem with executing a batch file in tomcat JAVA servlet
Daniel L. Gross wrote: I'm trying to execute a batch file in my servlet in tomcat5. I'm using the Process class exec() and issuing a command of cmd.exe /C file.bat Then I do a p.waitFor(); after this. However, it appears that a few of the files copy, then the process hangs. If I stop the calling program, the batch file completes. Any Ideas of what's happening? Maybe blocking waiting for you to read the output stream? Take a look at the CGIServlet for the sort of code you might need to write. Mark Thanks, Dan Gross, ATLC - 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]
Logging
I am using tomcat 6. And I have enabled log4j by placing log4j.xml and log4j.jar files in classpath. It did change to log4j but I see that some debug messages are put in log files and some are not. I was looking around and found the following: # Set juli LogManager if it is present if [ -r $CATALINA_BASE/conf/logging.properties ]; then JAVA_OPTS=$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager LOGGING_CONFIG=-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties fi Does this have any impact. I have logging.properties in conf, does it change behaviour in any way. Should I be getting rid of this file. I still don't understand why some debugs are printed and some are not. - 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: NIO 100% CPU usage
what version of tomcat are you using? Filip Matías Rojas wrote: Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3 cores). Today I'll try to do some profiling to detect the exact cause, but the bug I mentioned before sound like a possible cause to me. I understand that you said that the bug is not fixed in JDK 6 update 7? It's strange because here http://java.sun.com/javase/6/webnotes/ReleaseNotes.html it says that the bug is fixed. Thanks, Matías -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: martes, 14 de octubre de 2008 08:16 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage hi Matías, I have not yet found a way to reproduce it to put in a work around so even though its not fixed in 1.5 and 1.6, we can make it work. If you want to work with me, we can make that happen, assuming you have a way to reproduce this Filip Matías Rojas wrote: Hello, I'm experiencing a problem with NIO in Tomcat, maybe related to this issue: Selector doesn't block on Selector.select(timeout) (lnx) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933 I'm using JDK 6 update 7 and it seems not to be fixed, does anybody have the same problem? When in heavy load, CPU usage goes to 100% and the only way to go back to normal is restarting Tomcat. Thanks, Matías - 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: tomcat as services
Ok I tried with a - now its tomcatItActionSystems I do not get alpha error but still get Failed installing 'tomcatItActionSystem' service -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 12:12 PM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service The error message is self-explanatory: you have a non-alphabetic character in the service name. - 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]
[ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.
The Apache Tomcat team announces the immediate availability of Apache Tomcat Connectors 1.2.27-dev-704800 for testing. Apache Tomcat Connectors version 1.2.27-dev contains numerous of bug fixes over previous 1.2.26 version and lots of new features. The complete changelog with all fixes and new features can be found at: http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/docs/jk-1.2.27-dev-704800/miscellaneous/changelog.html Assorted set of binaries is also available for testing at: http://tomcat.apache.org/dev/dist/tomcat-connectors/jk/binaries/ If you find any bugs while using this test release, please fill in the Bugzilla Bug Report or send an e-mail to Tomcat Dvelopers List. When entering bug use the following link: https://issues.apache.org/bugzilla/query.cgi?product=Tomcat%20Connectors Notice: Please do not use this version for production. It is ment to be used for testing purposes only! Thank you, -- The Apache Tomcat Team - 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 as services
I had change the batch file but I got the service to work thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 12:12 PM To: Tomcat Users List Subject: RE: tomcat as services From: Frank Uccello [mailto:[EMAIL PROTECTED] Subject: RE: tomcat as services It gives me a window error nonalpah45 only option is click ok Once click ok Failed installing 'tomcat-ItActionSystem' service The error message is self-explanatory: you have a non-alphabetic character in the service name. - 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]
Not showing error during deployment
Hi I'm using TC 5.5.26 and java 5. When I deploy one webapp I get the following error: SEVERE: Context [/search] startup failed due to previous errors But it doesn't give any further error. Some other times I added a log4j configuration on the common/classes and the log4j jar inside common\lib and had to configure as debug to be able to see the deployment error stacktrace. But this would give me just too much log. What is the right approach to show the deployment errors? regards Emerson - 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: NIO 100% CPU usage
It's 6.0.18 -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: miércoles, 15 de octubre de 2008 07:25 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage what version of tomcat are you using? Filip Matías Rojas wrote: Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3 cores). Today I'll try to do some profiling to detect the exact cause, but the bug I mentioned before sound like a possible cause to me. I understand that you said that the bug is not fixed in JDK 6 update 7? It's strange because here http://java.sun.com/javase/6/webnotes/ReleaseNotes.html it says that the bug is fixed. Thanks, Matías -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: martes, 14 de octubre de 2008 08:16 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage hi Matías, I have not yet found a way to reproduce it to put in a work around so even though its not fixed in 1.5 and 1.6, we can make it work. If you want to work with me, we can make that happen, assuming you have a way to reproduce this Filip Matías Rojas wrote: Hello, I'm experiencing a problem with NIO in Tomcat, maybe related to this issue: Selector doesn't block on Selector.select(timeout) (lnx) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933 I'm using JDK 6 update 7 and it seems not to be fixed, does anybody have the same problem? When in heavy load, CPU usage goes to 100% and the only way to go back to normal is restarting Tomcat. Thanks, Matías - 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]
Re: NIO 100% CPU usage
ok, when you reproduce it, you don't really need a profiler, you can do a top with threads on, or a ps -efL, and from those, you can look into a thread dump I've never been able to reproduce the issue, so if you have a system, or if you want to work with me, ping me offline at fhanik at apache dot org Filip Matías Rojas wrote: It's 6.0.18 -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: miércoles, 15 de octubre de 2008 07:25 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage what version of tomcat are you using? Filip Matías Rojas wrote: Hi Filip, Thanks for your response. I can only reproduce it on production, where we are running a Linux 2.6 Kernel with JDK 6 update 7. After a high load it is still running at 100% CPU usage (sometimes 200% or 300% taking 2 or 3 cores). Today I'll try to do some profiling to detect the exact cause, but the bug I mentioned before sound like a possible cause to me. I understand that you said that the bug is not fixed in JDK 6 update 7? It's strange because here http://java.sun.com/javase/6/webnotes/ReleaseNotes.html it says that the bug is fixed. Thanks, Matías -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: martes, 14 de octubre de 2008 08:16 p.m. To: Tomcat Users List Subject: Re: NIO 100% CPU usage hi Matías, I have not yet found a way to reproduce it to put in a work around so even though its not fixed in 1.5 and 1.6, we can make it work. If you want to work with me, we can make that happen, assuming you have a way to reproduce this Filip Matías Rojas wrote: Hello, I'm experiencing a problem with NIO in Tomcat, maybe related to this issue: Selector doesn't block on Selector.select(timeout) (lnx) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403933 I'm using JDK 6 update 7 and it seems not to be fixed, does anybody have the same problem? When in heavy load, CPU usage goes to 100% and the only way to go back to normal is restarting Tomcat. Thanks, Matías - 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] - 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: Not showing error during deployment
I tried doing the log4j trick and just noticed that that just works in linux/unix. Why can't logging in tomcat be simpler??? I just want to see the error that is happening during deployment... 2008/10/15 emerson cargnin [EMAIL PROTECTED]: Hi I'm using TC 5.5.26 and java 5. When I deploy one webapp I get the following error: SEVERE: Context [/search] startup failed due to previous errors But it doesn't give any further error. Some other times I added a log4j configuration on the common/classes and the log4j jar inside common\lib and had to configure as debug to be able to see the deployment error stacktrace. But this would give me just too much log. What is the right approach to show the deployment errors? regards Emerson - 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 6 and subdirectories
Hi, I recently started using Tomcat 6 but can't configure it to map subdirectories to same servlet within the default context. I didn't have problems with the same setup in Tomcat 5. Here is an example. http://mysite/test.html - maps to the application servlet and works as expected http://mysite/directory/test.html - doesn't maps to the application servlet and fails to display correctly The second link works only after I create an additional context, but it's not an acceptable solution because there are many directories in application base. Context path=directory docBase= / In web.xml I have the following servlet mapping: servlet-mapping servlet-nameappServlet/servlet-name url-pattern*.html/url-pattern /servlet-mapping I tried different url patters to match subdirectories, but neither one worked: url-pattern/*/url-pattern url-pattern/directory/*/url-pattern url-patterndirectory/*/url-pattern Any help is appreciated. Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySQL DBCP Connection Example?
I am attempting to setup a tomcat mysql connection in order to allow users to write jsp webapps that can use a mysql database backend. I have understood that this page seems to be a walkthrough on how to set this up, and I'm running into problems in the MySQL DBCP Example section. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html I have followed the steps verbatim (except the javauser account password in mysql, I'm using something different) In step 2, I put the context... entry separate of the existing context entry located in $CATALINA_ROOT/conf/context.xml In step 3, I put the description and resource-ref at the end of the web.xml file (right before /web-app and I have created a testfile in $CATALINA_ROOT/webapps/ROOT/test.jsp When I restart tomcat, logs/catalina.out has some lines like the following (where line 36 is the new Context ... entry): Oct 15, 2008 1:55:02 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 36 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1394) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:789) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:728) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1009) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5338) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4086) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
Re: Programmatic instruct Tomcat to shutdown
you mean like java.lang.System.exit(1); Filip Maxim Veksler wrote: Hello, I would like to forcefully cause my application server to fail once I discover a situation I can't recover from. We have HA that should handle the situation from there. The best way I can see this happening is by issuing a shutdown instruction to the container, but I can't find how to do this peacefully. I tried the System.exit(1) trick but this keeps running threads active because they do not get the shutdown notification. How should I properly call server shutdown from my webapp ? Thank you, Maxim. - 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: MySQL DBCP Connection Example?
It'd be helpful if you could post that file. Sanitize it for db usernames and passwords, but post it so we can see what it looks like. Also, run it through an XML validator to see if there's any issues. Netbeans has one built-in. --David Tim Potter wrote: I am attempting to setup a tomcat mysql connection in order to allow users to write jsp webapps that can use a mysql database backend. I have understood that this page seems to be a walkthrough on how to set this up, and I'm running into problems in the MySQL DBCP Example section. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html I have followed the steps verbatim (except the javauser account password in mysql, I'm using something different) In step 2, I put the context... entry separate of the existing context entry located in $CATALINA_ROOT/conf/context.xml In step 3, I put the description and resource-ref at the end of the web.xml file (right before /web-app and I have created a testfile in $CATALINA_ROOT/webapps/ROOT/test.jsp When I restart tomcat, logs/catalina.out has some lines like the following (where line 36 is the new Context ... entry): Oct 15, 2008 1:55:02 PM org.apache.tomcat.util.digester.Digester fatalError SEVERE: Parse Fatal Error at line 36 column 2: The markup in the document following the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1394) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644) at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:789) at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:728) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1009) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.StandardContext.init(StandardContext.java:5338) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4086) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.
Please join us in ensuring the quality of the forthcoming release by testing this snapshot. The source archives are in the same format as a release download, so easy to build. The last release is already 10 months old and there were important changes in the meantime. We hope we can make you interested in testing by the following list of improvements: Features/Improvements - General: - New optional watchdog thread (Apache/IIS) doing internal maintenance (idle connection checks, backend probing). See JkWatchdogInternal (Apache) and watchdog_interval (IIS). - Added session_cookie and session_path for configuring session identifiers. - Add extension attributes to uri worker map (Apache/IIS). Allowed are: - reply_timeout - active/disabled/stopped - fail_on_status - use_server_errors which can now be used per mount and not only per worker. - New communication configuration directives: - socket_connect_timeout - connection_acquire_timeout - retry_interval time - connection_ping_interval, ping_timeout and ping_mode - Allow using web server error pages. - Automatically determine needed shm size Apache: - Allow dynamic setting of reply timeout using the environment variable JK_REPLY_TIMEOUT. IIS: - Basic support for multiple Webs in one Application Pool - Basic support for multiple Application Pools - Use environment variables JKISAPI_PATH (Full path to the ISAPI Redirector) and JKISAPI_NAME (Name of the ISAPI Redirector dll without extension) in attribute values of the redirector .properties file (Example: log_file=$(ISAPI_PATH)\$(ISAPI_NAME).log) - New attribute error_page which can contain a full URL used as a redirect URL when an error occurs. Any %d in error_page will be replaced by the HTTP status code of the error. - New boolean attribute enable_chunked_encoding to allow chunked encoding of HTTP responses. This is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define ISAPI_ALLOW_CHUNKING. - Use raw headers instead of CGI headers. Fixes problem underscore=dash problem in header names. This is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define USE_RAW_HEADERS. - Improved IIS event detection. This also imporoves IIS 5.1 compatibility. It is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define AUTOMATIC_AUTH_NOTIFICATION. Status-Worker: - Add manageability and statistics counters for simple ajp workers and ajp lb members. - Add display of seconds since last statistics reset and access and transfer rates. - Add dump action. - Allow showing only a single member for a load balancer. - Include server local time in output. - Improve XSS hardening. - Layout changes. Build: - Improve Cygwin build. - Don't use post httpd 2.2.0 API functions when building with new --enable-api-compatibility configure switch. - Use correct ld flags provided by apxs when building module. Prevents some crashes on AIX for httpd 1.3 module. Docs - Various minor additions. Fixes - - BZ 36385: Add missing prepost cping/cpong directly after connect in case prepost cping is used, but no connect cping. - BZ 44116: Fix handling of multiple JSESSIONID cookies. - BZ 44147: Multiple load balancing workers problem. - BZ 44738: Fix merging of JkOption ForwardURI* between virtual hosts. - BZ 45026: For Apache httpd 2.x add Unknown Reason as the reason phrase, if we get an empty one from the backend. Otherwise httpd 2.x returns status 500. - BZ 45812: Add done() service method that causes sending EOS bucket for Apache httpd 2.x. This allows filter chain to work properly. - Improved thread safety on some platforms, especially AIX - Fix IIS memory corruption due to parallel initialization by multiple threads. - Set lb_factor instead of distance in status worker. - JkAutoAlias does not work in combination with JkMountCopy if there are no JkMount in virtual host. - Make dynamic URI map reloading atomic and free memory not needed any longer. - Always send initial POST packet even if the client disconnected. Furthermore there have been a couple of additional code refactorings. Thank you, -- The Apache Tomcat Team - 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: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.
Rainer, The connectors FAQ (http://tomcat.apache.org/connectors-doc/miscellaneous/faq.html )states: mod_jk works well with Apache 2.2. You need a binary module compiled for version 2.2 of the Apache web server. A binary compiled for version 2.0 will not work. Important parts of the functionality of mod_jk have been reimplemented as Apache httpd modules mod_proxy_ajp and mod_proxy_balancer. These are part of the standard distributoin of Apache 2.2. The new modules do not contain all features of mod_jk, but you get them automatically with every Apache 2.2. Is there anywhere a description of what mod_jk does that is NOT done by mod_proxy_ajp and mod_proxy_balancer? Also, does this release imply a corresponding release of mod_jk? Thanks, Ken On Oct 15, 2008, at 4:04 PM, Rainer Jung wrote: Please join us in ensuring the quality of the forthcoming release by testing this snapshot. The source archives are in the same format as a release download, so easy to build. The last release is already 10 months old and there were important changes in the meantime. We hope we can make you interested in testing by the following list of improvements: Features/Improvements - General: - New optional watchdog thread (Apache/IIS) doing internal maintenance (idle connection checks, backend probing). See JkWatchdogInternal (Apache) and watchdog_interval (IIS). - Added session_cookie and session_path for configuring session identifiers. - Add extension attributes to uri worker map (Apache/IIS). Allowed are: - reply_timeout - active/disabled/stopped - fail_on_status - use_server_errors which can now be used per mount and not only per worker. - New communication configuration directives: - socket_connect_timeout - connection_acquire_timeout - retry_interval time - connection_ping_interval, ping_timeout and ping_mode - Allow using web server error pages. - Automatically determine needed shm size Apache: - Allow dynamic setting of reply timeout using the environment variable JK_REPLY_TIMEOUT. IIS: - Basic support for multiple Webs in one Application Pool - Basic support for multiple Application Pools - Use environment variables JKISAPI_PATH (Full path to the ISAPI Redirector) and JKISAPI_NAME (Name of the ISAPI Redirector dll without extension) in attribute values of the redirector .properties file (Example: log_file=$(ISAPI_PATH)\$(ISAPI_NAME).log) - New attribute error_page which can contain a full URL used as a redirect URL when an error occurs. Any %d in error_page will be replaced by the HTTP status code of the error. - New boolean attribute enable_chunked_encoding to allow chunked encoding of HTTP responses. This is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define ISAPI_ALLOW_CHUNKING. - Use raw headers instead of CGI headers. Fixes problem underscore=dash problem in header names. This is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define USE_RAW_HEADERS. - Improved IIS event detection. This also imporoves IIS 5.1 compatibility. It is currently considered experimental. To be able to use it, you need to build the isapi redirector with an additional define AUTOMATIC_AUTH_NOTIFICATION. Status-Worker: - Add manageability and statistics counters for simple ajp workers and ajp lb members. - Add display of seconds since last statistics reset and access and transfer rates. - Add dump action. - Allow showing only a single member for a load balancer. - Include server local time in output. - Improve XSS hardening. - Layout changes. Build: - Improve Cygwin build. - Don't use post httpd 2.2.0 API functions when building with new --enable-api-compatibility configure switch. - Use correct ld flags provided by apxs when building module. Prevents some crashes on AIX for httpd 1.3 module. Docs - Various minor additions. Fixes - - BZ 36385: Add missing prepost cping/cpong directly after connect in case prepost cping is used, but no connect cping. - BZ 44116: Fix handling of multiple JSESSIONID cookies. - BZ 44147: Multiple load balancing workers problem. - BZ 44738: Fix merging of JkOption ForwardURI* between virtual hosts. - BZ 45026: For Apache httpd 2.x add Unknown Reason as the reason phrase, if we get an empty one from the backend. Otherwise httpd 2.x returns status 500. - BZ 45812: Add done() service method that causes sending EOS bucket for Apache httpd 2.x. This allows filter chain to work properly. - Improved thread safety on some platforms, especially AIX - Fix IIS memory corruption due to parallel initialization by multiple threads. - Set lb_factor instead of distance in status worker. - JkAutoAlias does not work in combination with JkMountCopy if there are no JkMount in virtual host. - Make dynamic URI map reloading atomic and free memory not needed any
tomcat error
I have my tomcat start and everything look fine but I can not reach localhost:8057/it/servlet The tomcat log states SEVERE: Invalid message received with signature 18245 Any see this before I can not seem to find anything via google
Tomcat Training at ApacheCon
Ladies and gentlemen, I am teaching a Tomcat class at ApacheCon, New Orleans and there are still spots left. It's a two day training, going from novice to very experienced in a gradual way over the two days. http://us.apachecon.com/c/acus2008/sessions/13 Filip - 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 error
That all it states or could you provide a little more context? Also the usual stuff everyone forgets: OS, tomcat version, java version, relevant configs, etc., ... --David Frank Uccello wrote: I have my tomcat start and everything look fine but I can not reach localhost:8057/it/servlet The tomcat log states SEVERE: Invalid message received with signature 18245 Any see this before I can not seem to find anything via google - 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: MySQL DBCP Connection Example?
These are my web.xml, context.xml, and test.jsp files (truncated). Let me know if there are any other files you would like to see. [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 !-- Introduction == -- !-- There is a bunch of stuff not included as its not relevant to this -- !-- Default Welcome File List = -- !-- When a request URI refers to a directory, the default servlet looks -- !-- for a welcome file within that directory and, if present, -- !-- to the corresponding resource URI for display. If no welcome file -- !-- is present, the default servlet either serves a directory listing, -- !-- or returns a 404 status, depending on how it is configured. -- !-- -- !-- If you define welcome files in your own application's web.xml -- !-- deployment descriptor, that list *replaces* the list configured -- !-- here, so be sure that you include any of the default values that -- !-- you wish to include. -- welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/context.xml ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- !-- The contents of this file will be loaded for each web application -- Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource /Context Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true !-- maxActive: Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to -1 for no limit. -- !-- maxIdle: Maximum number of idle dB connections to retain in pool. Set to -1 for no limit. See also the DBCP documentation on this and the minEvictableIdleTimeMillis configuration parameter. -- !-- maxWait: Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- !-- username and password: MySQL dB username and password for dB connections -- !-- driverClassName: Class name for the old mm.mysql JDBC driver is org.gjt.mm.mysql.Driver - we recommend using Connector/J though. Class name for the official MySQL Connector/J driver is com.mysql.jdbc.Driver. -- !-- url: The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. --
Re: Data Truncated when proxied from Apache
use mod_proxy_http or mod_jk, Filip Stephen Nelson-Smith wrote: Hi, I have an application which parses XML. It sits behind an Apache Httpd 2.2 server using mod_proxy_ajp. I am finding that if I POST more than about 1600 chars, the POST gets truncated, and I get an XML parse error. Httpd logs show: [Tue Sep 30 19:40:27 2008] [debug] mod_proxy_ajp.c(206): proxy: got 1380 bytes of data And: [Tue Sep 30 19:40:27 2008] [debug] ajp_header.c(284): ajp_marshal_into_msgb: Header[3] [Content-Length] = [1615] Checking back over my logs, proxy has never got more than 1614 bytes of data. Does anyone have any idea what is cutting this off? I am imagining there may be a setting somewhere which says: Don't pass more than $value bytes of data. S. - 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]
mod_proxy_http v. mod_jk, was Re: Data Truncated when proxied from Apache
On Oct 15, 2008, at 5:44 PM, Filip Hanik - Dev Lists wrote: use mod_proxy_http or mod_jk, I have seen a few posts recommending mod_proxy_http a little bit over mod_jk. Why is that? I used mod_jk recently simply because it was on the tomcat site. I just assumed it was the default/best option. Maybe there should be a link on http://tomcat.apache.org/download-connectors.cgi indicating that you might want to look at mod_proxy_http saying something like it might meet your needs better. best, -Rob - 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: MySQL DBCP Connection Example?
I think I see your problem. Don't modify the default web.xml file or the default context.xml file unless you really have good reason to. Instead, your webapp should be layed out similar to this, per the servlet spec: DBTest - test.jsp - WEB-INF - web.xml - lib - standard.jar - jstl.jar - META-INF - context.xml All this goes under tomcat's webapps directory. Separately, put your mysql driver jar in tomcat's /lib directory for tomcat 6.0.x, /common/lib for most previous versions of tomcat. All the additional stuff you put in tomcat's /conf/web.xml and /conf/context.xml should be put in the web.xml and context.xml files shown above under DBTest. I've included standard.jar and jstl.jar above because your test.jsp is using the sql jstl taglib. --David Tim Potter wrote: These are my web.xml, context.xml, and test.jsp files (truncated). Let me know if there are any other files you would like to see. [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 !-- Introduction == -- !-- There is a bunch of stuff not included as its not relevant to this -- !-- Default Welcome File List = -- !-- When a request URI refers to a directory, the default servlet looks -- !-- for a welcome file within that directory and, if present, -- !-- to the corresponding resource URI for display. If no welcome file -- !-- is present, the default servlet either serves a directory listing, -- !-- or returns a 404 status, depending on how it is configured. -- !-- -- !-- If you define welcome files in your own application's web.xml -- !-- deployment descriptor, that list *replaces* the list configured -- !-- here, so be sure that you include any of the default values that -- !-- you wish to include. -- welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/context.xml ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- !-- The contents of this file will be loaded for each web application -- Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource /Context Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true !-- maxActive: Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to -1 for no limit. -- !-- maxIdle: Maximum number of idle dB connections to retain in pool. Set to -1 for no limit. See also the DBCP documentation on this and the minEvictableIdleTimeMillis configuration parameter. -- !-- maxWait: Maximum time to wait for a dB connection to become available in ms,
Re: MySQL DBCP Connection Example?
David, Thanks for your input, I can test that out, but that would be a different direction than I think I want to go. I have running an apache web server that users access home directories (mod_user) in order to run thier primarily php scripted web pages, but some would like the option of jsp. So currently I have tomcat running with mod_jk, and jkmount setup in apache awaiting /*.jsp to interpret, and i'm able to successfully run a test.jsp page which gets interpreted. On that note, should I just as easily create a ~user/public_html/WEB-INF/web.xml ...or do I need to modify things to the DBCP to function. Thanks and I appreciate the instructions! Tim Potter On Wed, Oct 15, 2008 at 6:00 PM, David Smith [EMAIL PROTECTED] wrote: I think I see your problem. Don't modify the default web.xml file or the default context.xml file unless you really have good reason to. Instead, your webapp should be layed out similar to this, per the servlet spec: DBTest - test.jsp - WEB-INF - web.xml - lib - standard.jar - jstl.jar - META-INF - context.xml All this goes under tomcat's webapps directory. Separately, put your mysql driver jar in tomcat's /lib directory for tomcat 6.0.x, /common/lib for most previous versions of tomcat. All the additional stuff you put in tomcat's /conf/web.xml and /conf/context.xml should be put in the web.xml and context.xml files shown above under DBTest. I've included standard.jar and jstl.jar above because your test.jsp is using the sql jstl taglib. --David Tim Potter wrote: These are my web.xml, context.xml, and test.jsp files (truncated). Let me know if there are any other files you would like to see. [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 !-- Introduction == -- !-- There is a bunch of stuff not included as its not relevant to this -- !-- Default Welcome File List = -- !-- When a request URI refers to a directory, the default servlet looks -- !-- for a welcome file within that directory and, if present, -- !-- to the corresponding resource URI for display. If no welcome file -- !-- is present, the default servlet either serves a directory listing, -- !-- or returns a 404 status, depending on how it is configured. -- !-- -- !-- If you define welcome files in your own application's web.xml -- !-- deployment descriptor, that list *replaces* the list configured -- !-- here, so be sure that you include any of the default values that -- !-- you wish to include. -- welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/context.xml ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under
RE: MySQL DBCP Connection Example?
From: Tim Potter [mailto:[EMAIL PROTECTED] Subject: Re: MySQL DBCP Connection Example? I can test that out, but that would be a different direction than I think I want to go. I don't think David was strong enough in his recommendations: you may not ever add additional Context elements to conf/context.xml - they really do need to be placed in each webapp's META-INF directory. Alternatively, you can place required Context elements in a conf/Catalina/[host]/[appName].xml file - one per webapp that actually needs a Context element (many don't). Likewise, updating conf/web.xml to specify settings for individual webapps results in those settings being applied to all webapps, even the ones that are distributed with Tomcat - not a good idea. - 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: MySQL DBCP Connection Example?
The servlet spec was designed around webapps being completely self-contained packages of pages and logic. I'm sure there are people on this list who what you are looking for ... I haven't. Maybe they can chime in here. As an alternative to storing webapps in tomcat's webapps directory, you could place a Context ... ... /Context xml fragment in a file in conf/Catalina/localhost with docBase and path properly set. Then the user deploy their own webapp in the folder pointed to by the docBase attribute. --David Tim Potter wrote: David, Thanks for your input, I can test that out, but that would be a different direction than I think I want to go. I have running an apache web server that users access home directories (mod_user) in order to run thier primarily php scripted web pages, but some would like the option of jsp. So currently I have tomcat running with mod_jk, and jkmount setup in apache awaiting /*.jsp to interpret, and i'm able to successfully run a test.jsp page which gets interpreted. On that note, should I just as easily create a ~user/public_html/WEB-INF/web.xml ...or do I need to modify things to the DBCP to function. Thanks and I appreciate the instructions! Tim Potter On Wed, Oct 15, 2008 at 6:00 PM, David Smith [EMAIL PROTECTED] wrote: I think I see your problem. Don't modify the default web.xml file or the default context.xml file unless you really have good reason to. Instead, your webapp should be layed out similar to this, per the servlet spec: DBTest - test.jsp - WEB-INF - web.xml - lib - standard.jar - jstl.jar - META-INF - context.xml All this goes under tomcat's webapps directory. Separately, put your mysql driver jar in tomcat's /lib directory for tomcat 6.0.x, /common/lib for most previous versions of tomcat. All the additional stuff you put in tomcat's /conf/web.xml and /conf/context.xml should be put in the web.xml and context.xml files shown above under DBTest. I've included standard.jar and jstl.jar above because your test.jsp is using the sql jstl taglib. --David Tim Potter wrote: These are my web.xml, context.xml, and test.jsp files (truncated). Let me know if there are any other files you would like to see. [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/web.xml ?xml version=1.0 encoding=ISO-8859-1? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -- web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 !-- Introduction == -- !-- There is a bunch of stuff not included as its not relevant to this -- !-- Default Welcome File List = -- !-- When a request URI refers to a directory, the default servlet looks -- !-- for a welcome file within that directory and, if present, -- !-- to the corresponding resource URI for display. If no welcome file -- !-- is present, the default servlet either serves a directory listing, -- !-- or returns a 404 status, depending on how it is configured. -- !-- -- !-- If you define welcome files in your own application's web.xml -- !-- deployment descriptor, that list *replaces* the list configured -- !-- here, so be sure that you include any of the default values that -- !-- you wish to include. -- welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list descriptionMySQL Test App/description resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app [EMAIL PROTECTED]:~$ cat /usr/local/tomcat/conf/context.xml ?xml version='1.0' encoding='utf-8'? !-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the License); you may not use this file except in compliance
Memory leak from threadlocal for hot deployment
If I store an application object in ThreadLocal and do hot deployment it prevents the old classloader from getting GCed . Why can't Tomcat refresh it's threadpool after every app restart? --Noble - 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 does DBCP handle Idle connections
Originally the application faces connection reset problems using the configuration: type=javax.sql.DataSource removeAbandoned=true removeAbandonedTimeout=100 maxActive=500 maxIdle=10 maxWait=1000 because the opened connections are closed by the server and the DBCP return a closed connection Therefore we switch to a ne conf using: type=javax.sql.DataSource removeAbandoned=true removeAbandonedTimeout=100 maxActive=500 maxIdle=10 maxWait=1000 validationQuery=insert into conntest (name) values ('test'); select 1; testOnBorrow=false testWhileIdle=true timeBetweenEvictionRunsMillis=24 numTestsPerEvictionRun=10 So we run the connection test while the connection is idle every 4min. the server timeout is set to 5 minutes But we find that the insert statement only insert function for the first 30 minutes Then all the connection are closed, and the pool is empty. Can anyone explain the suituation? 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: [ANN] Apache Tomcat Connectors 1.2.27-dev-704800 available for testing.
Ken Bowen wrote: Is there anywhere a description of what mod_jk does that is NOT done by mod_proxy_ajp and mod_proxy_balancer? You might find this useful http://blogs.jboss.com/blog/mturk/ Also, does this release imply a corresponding release of mod_jk? Yes. This is basically 1.2.27 we'll release. Regards -- ^(TM) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]