Re: Async one thing left
On 27/03/2010 19:43, Filip Hanik - Dev Lists wrote: AJP and NIO connectors are good. What state is APR in? (I'm on my laptop at the moment and it isn't set up to run the tests) BIO connector has one use case where the request/response don't get recycled properly. If I disable the cache it works fine, so I need to track that one down, and then we will be good to go Sounds great. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928370 - /tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java
Author: markt Date: Sun Mar 28 10:07:42 2010 New Revision: 928370 URL: http://svn.apache.org/viewvc?rev=928370&view=rev Log: MUST_STOP is also a valid state from which to transition to STOPPING_PREP Modified: tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java Modified: tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java?rev=928370&r1=928369&r2=928370&view=diff == --- tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java (original) +++ tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java Sun Mar 28 10:07:42 2010 @@ -191,7 +191,8 @@ public abstract class LifecycleBase impl } if (!state.equals(LifecycleState.STARTED) && -!state.equals(LifecycleState.FAILED)) { +!state.equals(LifecycleState.FAILED) && +!state.equals(LifecycleState.MUST_STOP)) { invalidTransition(Lifecycle.BEFORE_STOP_EVENT); } - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/CharacterEncoding" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko. The comment on this change is: Corrected some misprints. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=10&rev2=11 -- 1. Set the `URIEncoding` attribute on the element in server.xml to something specific (e.g. `URIEncoding="UTF-8"`). 1. Set the `useBodyEncodingForURI` attribute on the element in server.xml to `true`. This will cause the Connector to use the request body's encoding for GET parameters. - References: [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|Tomcat 6 HTTP Connector]], [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|Tomcat 6 AJP Connector]] + References: [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|Tomcat 6 HTTP Connector]], [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|Tomcat 6 AJP Connector]] <>'''How do I change how POST parameters are interpreted?''' @@ -85, +85 @@ 1. Set URIEncoding="UTF-8" on your in server.xml 1. Use a [[#Q3|character encoding filter]] with the default encoding set to UTF-8 - 1. Change all your JSPs to set the correct `Content-Type` (use `<%...@page cotnentType="mime/type; charset=UTF-8" %>`) + 1. Change all your JSPs to set the correct `Content-Type` (use `<%...@page contentType="mime/type; charset=UTF-8" %>`) 1. Change all your servlets to set the content type for responses to UTF-8 1. Change any content-generation libraries you use (Velocity, Freemarker, etc.) to use UTF-8 as the content type 1. Disable any valves or filters that may read request parameters before your character encoding filter or jsp page has a chance to set the encoding to UTF-8. For more information see http://www.mail-archive.com/us...@tomcat.apache.org/msg21117.html. @@ -107, +107 @@ ''Default encoding for GET'' - The character set for HTTP query strings (that's the technical term for 'GET parameters') can be found in sections 2 and 2.1 the "URI Syntax" specification. The character set is defined to be [[http://en.wikipedia.org/wiki/ASCII|US-ASCII]]. Any character that does not map to US-ASCII must be encoded in some way. Section 2.1 of the URI Syntax specification says that characters outside of US-ASCII must be encoded using `%` escape sequences: each character is encoded as a literal `%` followed by the two hexadecimal codes which indicate its character code. Thus, `a` (US-ASCII character code 0x97) is equivalent to `%97`. There ''is no default encoding for URIs'' specified anywhere, which is why there is a lot of confusion when it comes to decoding these values. + The character set for HTTP query strings (that's the technical term for 'GET parameters') can be found in sections 2 and 2.1 the "URI Syntax" specification. The character set is defined to be [[http://en.wikipedia.org/wiki/ASCII|US-ASCII]]. Any character that does not map to US-ASCII must be encoded in some way. Section 2.1 of the URI Syntax specification says that characters outside of US-ASCII must be encoded using `%` escape sequences: each character is encoded as a literal `%` followed by the two hexadecimal codes which indicate its character code. Thus, `a` (US-ASCII character code 97 = 0x61) is equivalent to `%61`. There ''is no default encoding for URIs'' specified anywhere, which is why there is a lot of confusion when it comes to decoding these values. Some notes about the character encoding of URIs: 1. ISO-8859-1 and ASCII are compatible for character codes 0x20 to 0x7E, so they are often used interchangeably. Most of the web uses ISO-8859-1 as the default for query strings. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "CategoryFAQ" by KonstantinKoli nko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "CategoryFAQ" page has been changed by KonstantinKolinko. The comment on this change is: Create a category to link together the up-do-date FAQ and Howto pages. http://wiki.apache.org/tomcat/CategoryFAQ -- New page: #format wiki #language en Category that connects all the [[FAQ|FAQ]] and HowTo pages. To add a page to this category, add a link to this page on the last line of the page. You can add multiple categories to a page. Please note, that because of how this page name is capitalized, you have to use the `[[` `|` `]]` syntax to create a link here. See the source of this page. '''List of pages in this category:''' <> CategoryCategory [[CategoryFAQ|CategoryFAQ]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ" by KonstantinKoli nko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ?action=diff&rev1=26&rev2=27 -- * [[/Tomcat_User|Tomcat User]] - More information about the tomcat-user list. * [[/Windows|Windows]] - Common Windows questions. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Bugs" by Konstanti nKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Bugs" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Bugs?action=diff&rev1=9&rev2=10 -- If you are reading this - you were probably instructed to contact the user list for help. Bugzilla is not a support forum. Bugzilla is intended to fix "real bugs" in Tomcat. It is not intended to help you diagnose errors you are experiencing. The outcome of a diagnosis can be a new bug in Bugzilla. Configuration questions do not belong in Bugzilla. See [[FAQ/Tomcat_User|Tomcat User]] for what the Tomcat User list is. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Class_Not_Found " by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Class_Not_Found" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Class_Not_Found?action=diff&rev1=10&rev2=11 -- You have conflicting XML api jar files in your classpath. Read the README or RELEASE-NOTES for more information. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/CharacterEncoding" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=11&rev2=12 -- * [[http://issues.apache.org/bugzilla/show_bug.cgi?id=24345|24345]] * [[http://issues.apache.org/bugzilla/show_bug.cgi?id=25848|25848]] + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Clustering" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Clustering" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Clustering?action=diff&rev1=3&rev2=4 -- Change /etc/hosts so that the localhost domain resolves to the actual IP address of the NIC, eth0. Please see Bugzilla for more. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Connectors" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Connectors" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Connectors?action=diff&rev1=10&rev2=11 -- See [[FAQ/CharacterEncoding|Character Encoding]] + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Database" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Database" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Database?action=diff&rev1=3&rev2=4 -- * '''Do not use JDBC-ODBC bridge''' bundled with Sun's JDK with Tomcat. It was never meant for a production server environment. If you ask a question about it, everyone will tell you to not use it. If you do need to use ODBC, there are 3rd party drivers which do a pretty good job at being thread safe. * If you use the oracle thin driver, be sure to rename it to a jar file from a zip file. Tomcat only auto-magically loads files ending in .jar placed in a lib directory. It ignores all other file extensions. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Deployment" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Deployment" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Deployment?action=diff&rev1=6&rev2=7 -- Because the Classloader (and the Class objects it loaded) cannot be recycled. They are stored in the permanent heap generation by the JVM, and when you redepoy a new class loader is created, which loads another copy of all these classes. This can cause {{{OufOfMemoryErrors}}} eventually. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Developing" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Developing" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=9&rev2=10 -- Interval that controls reloading of the changed JSP pages is set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper configuration]] in `web.xml`. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "HowTo" by KonstantinKo linko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=85&rev2=86 -- This will produce a thread dump on standard output, but may not be possible to capture to a file. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/FDA_Validation" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/FDA_Validation" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/FDA_Validation?action=diff&rev1=4&rev2=5 -- There's no need to be. See the [[http://wiki.apache.org/tomcat/FAQ/Security|security page]] of this FAQ for more information. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Linux_Unix" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Linux_Unix" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Linux_Unix?action=diff&rev1=5&rev2=6 -- This is a common complaint when using Solaris. Make sure you use {{{nohup}}} and see [[http://marc.theaimsgroup.com/?l=tomcat-user&m=104809785114238&w=2|this thread]] + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Other_Operating_ Systems" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Other_Operating_Systems" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Other_Operating_Systems?action=diff&rev1=3&rev2=4 -- * OpenVMS-Alpha: * [[http://issues.apache.org/bugzilla/show_bug.cgi?id=31499|Hewlett Packard (meg.garri...@hp.com)]] + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Logging" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Logging" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Logging?action=diff&rev1=16&rev2=17 -- Restart Tomcat... and it's working! + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928380 - in /tomcat/trunk: java/org/apache/catalina/ java/org/apache/catalina/core/ java/org/apache/catalina/mbeans/ java/org/apache/catalina/startup/ webapps/docs/ webapps/docs/config/
Author: markt Date: Sun Mar 28 11:57:46 2010 New Revision: 928380 URL: http://svn.apache.org/viewvc?rev=928380&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48662 Make extraction of context.xml files configurable and disable it by default for Tomcat 7 Modified: tomcat/trunk/java/org/apache/catalina/Context.java tomcat/trunk/java/org/apache/catalina/core/StandardContext.java tomcat/trunk/java/org/apache/catalina/core/StandardHost.java tomcat/trunk/java/org/apache/catalina/mbeans/MBeanFactory.java tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java tomcat/trunk/java/org/apache/catalina/startup/LocalStrings.properties tomcat/trunk/webapps/docs/changelog.xml tomcat/trunk/webapps/docs/config/host.xml Modified: tomcat/trunk/java/org/apache/catalina/Context.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Context.java?rev=928380&r1=928379&r2=928380&view=diff == --- tomcat/trunk/java/org/apache/catalina/Context.java (original) +++ tomcat/trunk/java/org/apache/catalina/Context.java Sun Mar 28 11:57:46 2010 @@ -19,6 +19,8 @@ package org.apache.catalina; +import java.net.URL; + import javax.servlet.ServletContext; import javax.servlet.descriptor.JspConfigDescriptor; @@ -133,17 +135,17 @@ public interface Context extends Contain /** - * Return the path to a file to save this Context information. + * Return the URL of the XML descriptor for this context. */ -public String getConfigFile(); +public URL getConfigFile(); /** - * Set the path to a file to save this Context information. + * Set the URL of the XML descriptor for this context. * - * @param configFile The path to a file to save this Context information. + * @param configFile The URL of the XML descriptor for this context. */ -public void setConfigFile(String configFile); +public void setConfigFile(URL configFile); /** Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=928380&r1=928379&r2=928380&view=diff == --- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Sun Mar 28 11:57:46 2010 @@ -23,6 +23,7 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.Hashtable; @@ -255,9 +256,9 @@ public class StandardContext /** - * The path to a file to save this Context information. + * The URL of the XML descriptor for this context. */ -private String configFile = null; +private URL configFile = null; /** @@ -1196,9 +1197,9 @@ public class StandardContext } /** - * Return the path to a file to save this Context information. + * Return the URL of the XML descriptor for this context. */ -public String getConfigFile() { +public URL getConfigFile() { return (this.configFile); @@ -1206,11 +1207,11 @@ public class StandardContext /** - * Set the path to a file to save this Context information. + * Set the URL of the XML descriptor for this context. * - * @param configFile The path to a file to save this Context information. + * @param configFile The URL of the XML descriptor for this context. */ -public void setConfigFile(String configFile) { +public void setConfigFile(URL configFile) { this.configFile = configFile; } Modified: tomcat/trunk/java/org/apache/catalina/core/StandardHost.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardHost.java?rev=928380&r1=928379&r2=928380&view=diff == --- tomcat/trunk/java/org/apache/catalina/core/StandardHost.java (original) +++ tomcat/trunk/java/org/apache/catalina/core/StandardHost.java Sun Mar 28 11:57:46 2010 @@ -131,6 +131,13 @@ public class StandardHost /** + * Should XML files be copied to $CATALINA_BASE/conf// by + * default when a web application is deployed? + */ +private boolean copyXML = false; + + +/** * The Java class name of the default error reporter implementation class * for deployed web applications. */ @@ -378,6 +385,28 @@ public class StandardHost /** + * Return the copy XML config file flag for this component. + */ +public boolean isCopyXML() { + +return (this.copyXML); + +} + + +/** + * Set the
DO NOT REPLY [Bug 48662] context.xml expansion on deployment improvements
https://issues.apache.org/bugzilla/show_bug.cgi?id=48662 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Mark Thomas 2010-03-28 11:57:59 UTC --- This has been implemented for 7.0.x and will be included in 7.0.0 onwards -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928381 - in /tomcat/site/trunk: docs/migration.html xdocs/migration.xml
Author: markt Date: Sun Mar 28 11:57:59 2010 New Revision: 928381 URL: http://svn.apache.org/viewvc?rev=928381&view=rev Log: Add copyXML to migration notes Modified: tomcat/site/trunk/docs/migration.html tomcat/site/trunk/xdocs/migration.xml Modified: tomcat/site/trunk/docs/migration.html URL: http://svn.apache.org/viewvc/tomcat/site/trunk/docs/migration.html?rev=928381&r1=928380&r2=928381&view=diff == --- tomcat/site/trunk/docs/migration.html (original) +++ tomcat/site/trunk/docs/migration.html Sun Mar 28 11:57:59 2010 @@ -455,6 +455,35 @@ compatibility problems. + +Deployment + + + + + + + + +XML context descriptors are no longer extracted from deployed WARs and +directories and copied to the host's xmlBase. The default +Tomcat 6 behavior can be enabled by setting the copyXML +attribute of the host to true. + + + + + + + + + + + + + + + Manager application Modified: tomcat/site/trunk/xdocs/migration.xml URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/migration.xml?rev=928381&r1=928380&r2=928381&view=diff == --- tomcat/site/trunk/xdocs/migration.xml (original) +++ tomcat/site/trunk/xdocs/migration.xml Sun Mar 28 11:57:59 2010 @@ -91,6 +91,15 @@ compatibility problems. + + +XML context descriptors are no longer extracted from deployed WARs and +directories and copied to the host's xmlBase. The default +Tomcat 6 behavior can be enabled by setting the copyXML +attribute of the host to true. + + + The Manager application has been re-structured for Tomcat 7 onwards and - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Memory" by Konstan tinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Memory" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Memory?action=diff&rev1=8&rev2=9 -- * You can't find out how much memory a ??? is using. The JVM doesn't give us these detail. * That being said, a memory profiling tool might prove the above statements wrong - but you probably don't want to use them in a production environment. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/About" by Konstant inKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/About" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/About?action=diff&rev1=5&rev2=6 -- * Don't forget to add an anchor to the start of your answer * Note: The anchors do not have to appear on the page in numerical order + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Miscellaneous" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Miscellaneous" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Miscellaneous?action=diff&rev1=17&rev2=18 -- If you can achieve the desired functionality with a Filter, it is the preferred way to go. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Performance_and_ Monitoring" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Performance_and_Monitoring" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring?action=diff&rev1=5&rev2=6 -- Yes. Here's the most comprehensive and objective one we've found to date: [[http://www.webperformanceinc.com/library/reports/ServletReport/|Web Performance, Inc.'s comparison]]. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "UsefulLinks" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "UsefulLinks" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/UsefulLinks?action=diff&rev1=17&rev2=18 -- = TroubleShooting = * How to deal with OutOfMemory Errors + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Security" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Security" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Security?action=diff&rev1=6&rev2=7 -- In `server.xml` - add a "server" attribute to the Connector element. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html - + + [[CategoryFAQ|CategoryFAQ]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "TomcatVersions" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "TomcatVersions" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/TomcatVersions?action=diff&rev1=12&rev2=13 -- * Tomcat 4.0.x * Tomcat 5.0.x + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Tomcat_User" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Tomcat_User" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Tomcat_User?action=diff&rev1=3&rev2=4 -- If you wish to extend tomcat using your own Valve, Realm, or anything else ... those discussions belong in tomcat-user. You might be using Tomcat's internal API but unless your changes are going back into the official source tree, the question belongs on the user list. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Windows" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Windows" page has been changed by KonstantinKolinko. The comment on this change is: Add category link. http://wiki.apache.org/tomcat/FAQ/Windows?action=diff&rev1=7&rev2=8 -- See also the `service.bat` file that comes in the `*-windows-.zip` distributives of Tomcat. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928388 - /tomcat/trunk/webapps/docs/config/host.xml
Author: markt Date: Sun Mar 28 12:28:54 2010 New Revision: 928388 URL: http://svn.apache.org/viewvc?rev=928388&view=rev Log: Language tweaks Modified: tomcat/trunk/webapps/docs/config/host.xml Modified: tomcat/trunk/webapps/docs/config/host.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/host.xml?rev=928388&r1=928387&r2=928388&view=diff == --- tomcat/trunk/webapps/docs/config/host.xml (original) +++ tomcat/trunk/webapps/docs/config/host.xml Sun Mar 28 12:28:54 2010 @@ -363,7 +363,7 @@ Finally, any sub-directory within the Host's appBase that has not already been deployed as a result of a context XML descriptor -will be deployed next. The context path used will be a slash character +will be deployed. The context path used will be a slash character ("/") followed by the directory name, unless the directory name is ROOT, in which case the context path will /. Multi-level contexts may be defined by using #, e.g. use a directory named @@ -426,7 +426,7 @@ Finally, note that if you are defining contexts explicitly in server.xml, you should probably turn off automatic application deployment. Otherwise, -the web applications will each be deployed twice each, and that may cause +the web applications will each be deployed twice, and that may cause problems for the applications. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928389 - /tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml
Author: markt Date: Sun Mar 28 12:30:09 2010 New Revision: 928389 URL: http://svn.apache.org/viewvc?rev=928389&view=rev Log: Clarify autoDeploy behaviour. Make more consistent both internally and with Tomcat 7 docs. Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml?rev=928389&r1=928388&r2=928389&view=diff == --- tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml Sun Mar 28 12:30:09 2010 @@ -61,9 +61,9 @@ The description below uses the variable name $CATALINA_BASE to refer the base directory against which most relative paths are resolved. If you have -not configured Tomcat 6 for multiple instances by setting a CATALINA_BASE +not configured Tomcat for multiple instances by setting a CATALINA_BASE directory, then $CATALINA_BASE will be set to the value of $CATALINA_HOME, -the directory into which you have installed Tomcat 6. +the directory into which you have installed Tomcat. @@ -82,18 +82,23 @@ The Application Base directory for this virtual host. This is the pathname of a directory that may contain web applications to be deployed on this virtual host. You may specify an -absolute pathname for this directory, or a pathname that is relative -to the $CATALINA_BASE directory. See +absolute pathname, or a pathname that is relative to the +$CATALINA_BASE directory. See Automatic Application Deployment for more information on automatic recognition and -deployment of web applications to be deployed automatically. If not -specified, the default of webapps will be used. +deployment of web applications. If not specified, the default of +webapps will be used. -This flag value indicates if new web applications, dropped in to -the appBase directory while Tomcat is running, should -be automatically deployed. The flag's value defaults to true. See +This flag value indicates if Tomcat should check periodically for new +or updated web applications while Tomcat is running. If true, Tomcat +periodically checks the appBase and +$CATALINA_BASE/conf/[engine_name]/[host_name] +directories and deploys any new web applications or context XML +descriptors found. Updated web applications or context XML descriptors +will trigger a reload of the web application. The flag's value defaults +to true. See Automatic Application Deployment for more information. @@ -122,8 +127,8 @@ This flag value indicates if web applications from this host should -be automatically deployed by the host configurator. -The flag's value defaults to true. See +be automatically deployed when Tomcat starts. The flag's value defaults +to true. See Automatic Application Deployment for more information. @@ -154,14 +159,15 @@ -Set to false if you want to disable parsing the context.xml -file embedded inside the application (located at /META-INF/context.xml). -Security conscious environments should set this to false to prevent -applications from interacting with the container's configuration. The -administrator will then be responsible for providing an external context -configuration file, and put it in -$CATALINA_BASE/conf/[enginename]/[hostname]/. -The flag's value defaults to true. +Set to false if you want to disable parsing the context +XML descriptor embedded inside the application (located at +/META-INF/context.xml). Security conscious environments +should set this to false to prevent applications from +interacting with the container's configuration. The administrator will +then be responsible for providing an external context configuration +file, and putting it in +$CATALINA_BASE/conf/[engine_name]/[host_name]. The flag's +value defaults to true. @@ -180,7 +186,8 @@ placed in the appBase directory as web application archive (WAR) files to be unpacked into a corresponding disk directory structure, false to run such web applications directly -from a WAR file. See +from a WAR file. WAR files located outside of the Host's +appBase will not be expanded. See Automatic Application Deployment for more information. @@ -232,7 +239,7 @@ A host is associated with the - org.apache.catalina.core.ContainerBase.[enginename].[hostname] +
[Tomcat Wiki] Update of "FAQ/CharacterEncoding" by Kons tantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko. The comment on this change is: Updated. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=12&rev2=13 -- 1. [[#Q3|How do I change how POST parameters are interpreted?]] 1. [[#Q4|How can I test if my configuration will work correctly?]] 1. [[#Q6|How can I send higher characters in HTTP headers?]] - 1. [[#Q8|What can you recommend to just make everything work?]] + 1. [[#Q8|What can you recommend to just make everything work? -- How to use UTF-8 everywhere.]] 1. [[#Q9|Why does everything have to be this way?]] - 1. [[#Q5|I'm having a problem with character encoding in Tomcat 5]] == Answers == @@ -34, +33 @@ <>'''How do I change how POST parameters are interpreted?''' POST requests should specify the encoding of the parameters and values they send. Since many clients fail to set an explicit encoding, the default is used (ISO-8859-1). In many cases this is not the preferred interpretation so one can employ a javax.servlet.Filter to set request encodings. Writing such a filter is trivial. Furthermore Tomcat already comes with such an example filter. Please take a look at: - 4.x:: - {{{ - webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java - }}} 5.x:: {{{ webapps/servlets-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java @@ -79, +74 @@ You have to encode them in some way before you insert them into a header. Using url-encoding (`%` + high byte number + low byte number) would be a good idea. - <>'''What can you recommend to just make everything work?''' + <>'''What can you recommend to just make everything work? -- How to use UTF-8 everywhere.''' - Using `UTF-8` as your character encoding for everything is a safe bet. This should work for pretty much every situation. In order to completely switch to using UTF-8, you need to make the following changes: + Using `UTF-8` as your character encoding for everything is a safe bet. This should work for pretty much every situation. - 1. Set URIEncoding="UTF-8" on your in server.xml + In order to completely switch to using UTF-8, you need to make the following changes: + + 1. Set {{{URIEncoding="UTF-8"}}} on your in `server.xml`. References: [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector]], [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector]]. 1. Use a [[#Q3|character encoding filter]] with the default encoding set to UTF-8 - 1. Change all your JSPs to set the correct `Content-Type` (use `<%...@page contentType="mime/type; charset=UTF-8" %>`) - 1. Change all your servlets to set the content type for responses to UTF-8 + 1. Change all your JSPs to include charset name in their contentType. For example, use {{{<%...@page contentType="text/html; charset=UTF-8" %>}}} for the usual JSP pages and {{{}}} for the pages in XML syntax (aka JSP Documents). + 1. Change all your servlets to set the content type for responses and to include charset name in the content type to be UTF-8. Use {{{response.setContentType("text/html; charset=UTF-8")}}} or {{{response.setCharacterEncoding("UTF-8")}}}. - 1. Change any content-generation libraries you use (Velocity, Freemarker, etc.) to use UTF-8 as the content type + 1. Change any content-generation libraries you use (Velocity, Freemarker, etc.) to use UTF-8 and to specify UTF-8 in the content type of the responses that they generate. 1. Disable any valves or filters that may read request parameters before your character encoding filter or jsp page has a chance to set the encoding to UTF-8. For more information see http://www.mail-archive.com/us...@tomcat.apache.org/msg21117.html. <>'''Why does everything have to be this way?''' - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/CharacterEncoding" by Kons tantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko. The comment on this change is: Rearranged. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=13&rev2=14 -- = Character Encoding Issues = == Questions == + + 1. '''Why''' - 1. [[#Q1|What is the default character encoding of the request or response body?]] + 1. [[#Q1|What is the default character encoding of the request or response body?]] + 1. [[#Q9|Why does everything have to be this way?]] + 1. '''How''' - 1. [[#Q2|How do I change how GET parameters are interpreted?]] + 1. [[#Q2|How do I change how GET parameters are interpreted?]] - 1. [[#Q3|How do I change how POST parameters are interpreted?]] + 1. [[#Q3|How do I change how POST parameters are interpreted?]] + 1. [[#Q8|What can you recommend to just make everything work? (How to use UTF-8 everywhere).]] - 1. [[#Q4|How can I test if my configuration will work correctly?]] + 1. [[#Q4|How can I test if my configuration will work correctly?]] - 1. [[#Q6|How can I send higher characters in HTTP headers?]] + 1. [[#Q6|How can I send higher characters in HTTP headers?]] + 1. '''Troubleshooting''' - 1. [[#Q8|What can you recommend to just make everything work? -- How to use UTF-8 everywhere.]] - 1. [[#Q9|Why does everything have to be this way?]] - 1. [[#Q5|I'm having a problem with character encoding in Tomcat 5]] + 1. [[#Q5|I'm having a problem with character encoding in Tomcat 5]] == Answers == + + === Why === + <>'''What is the default character encoding of the request or response body?''' If a character encoding is not specified, the Servlet specification requires that an encoding of ISO-8859-1 is used. The character encoding for the body of an HTTP message (request ''or'' response) is specified in the `Content-Type` header field. An example of such a header is `Content-Type: text/html; charset=ISO-8859-1` which explicitly states that the default (ISO-8859-1) is being used. References: [[http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1|HTTP 1.1 Specification, Section 3.7.1]] - <>'''How do I change how GET parameters are interpreted?''' + - Tomcat will use ISO-8859-1 as the default character encoding of the entire URL, including the query string ("GET parameters"). - - There are two ways to specify how GET parameters are interpreted: - - 1. Set the `URIEncoding` attribute on the element in server.xml to something specific (e.g. `URIEncoding="UTF-8"`). - 1. Set the `useBodyEncodingForURI` attribute on the element in server.xml to `true`. This will cause the Connector to use the request body's encoding for GET parameters. - - References: [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|Tomcat 6 HTTP Connector]], [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|Tomcat 6 AJP Connector]] - - <>'''How do I change how POST parameters are interpreted?''' - - POST requests should specify the encoding of the parameters and values they send. Since many clients fail to set an explicit encoding, the default is used (ISO-8859-1). In many cases this is not the preferred interpretation so one can employ a javax.servlet.Filter to set request encodings. Writing such a filter is trivial. Furthermore Tomcat already comes with such an example filter. Please take a look at: - 5.x:: - {{{ - webapps/servlets-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java - webapps/jsp-examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java - }}} - 6.x:: - {{{ - webapps/examples/WEB-INF/classes/filters/SetCharacterEncodingFilter.java - }}} - - <>'''How can I test if my configuration will work correctly?''' - - The following sample JSP should work on a clean Tomcat install for any input. If you set the URIEncoding="UTF-8" on the connector, it will also work with method="GET". - {{{ - <%@ page contentType="text/html; charset=UTF-8" %> - - - - Character encoding test page - - - Data posted to this form was: - <% -request.setCharacterEncoding("UTF-8"); -out.print(request.getParameter("mydata")); - %> - - - - - - - - - - }}} - - <>'''How can I send higher characters in my HTTP headers?''' - - You have to encode them in some way before you insert them into a header. Using url-encoding (`%` + high byte number + low byte number) would be a good idea. - - <>'''What can you recommend to just make everything work? -- How to use UTF-8 everywhere.''' - - Using `UTF-8` as your character encoding for everything is a safe bet. This should work for pretty much every situation. - - In order to completely switch to using UTF-8, you need to make the following changes: - - 1. Set {{{URIEncoding="UTF-
[Tomcat Wiki] Trivial Update of "FAQ/CharacterEncoding" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/CharacterEncoding" page has been changed by KonstantinKolinko. The comment on this change is: Style tweak: Remove HRs, because they looked ugly: somehow the browser (FF) displayed them all with different thickness. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding?action=diff&rev1=14&rev2=15 -- References: [[http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1|HTTP 1.1 Specification, Section 3.7.1]] - + <> <>'''Why does everything have to be this way?''' @@ -67, +67 @@ Section 3.1 of the ARPA Internet Text Messages spec states that headers are always in US-ASCII encoding. Anything outside of that needs to be encoded. See the section above regarding query strings in URIs. - === How === @@ -83, +82 @@ References: [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|Tomcat 6 HTTP Connector]], [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|Tomcat 6 AJP Connector]] - + <> <>'''How do I change how POST parameters are interpreted?''' @@ -99, +98 @@ }}} - + <> <>'''What can you recommend to just make everything work? (How to use UTF-8 everywhere).''' @@ -117, +116 @@ 1. Disable any valves or filters that may read request parameters before your character encoding filter or jsp page has a chance to set the encoding to UTF-8. For more information see http://www.mail-archive.com/us...@tomcat.apache.org/msg21117.html. - + <> <>'''How can I test if my configuration will work correctly?''' @@ -147, +146 @@ }}} - + <> <>'''How can I send higher characters in my HTTP headers?''' You have to encode them in some way before you insert them into a header. Using url-encoding (`%` + high byte number + low byte number) would be a good idea. - === Troubleshooting === - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "Tomcat/UTF-8" by KonstantinKol inko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/UTF-8" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The up-to-date version of all this is in FAQ/CharacterEncoding.. http://wiki.apache.org/tomcat/Tomcat/UTF-8?action=diff&rev1=13&rev2=14 -- + This page is obsolete. See [[FAQ/CharacterEncoding|FAQ/CharacterEncoding]] for the up-to-date version. - 1. - JSP pages must include the header: + + CategoryObsolete - {{{ <%@ page - contentType="text/html; charset=UTF-8" - %> }}} - 2. - For translation of inputs coming back from the browser there must be a - method that translates from the browser's ISO-8859-1 to UTF-8. ISO-8859-1 - is the default character encoding for servers and browsers according to the - [[http://www.ietf.org/rfc/rfc2616.txt|HTTP specification]] section 3.4.1. - - {{{ /** - * Convert ISO-8859-1 format string (which is the default sent by IE - * to the UTF-8 format that the database is in. - */ - public String toUTF8(String isoString) - { - String utf8String = null; - if (null != isoString && !isoString.equals("")) - { -try -{ - byte[] stringBytesISO = isoString.getBytes("ISO-8859-1"); - utf8String = new String(stringBytesISO, "UTF-8"); -} -catch(UnsupportedEncodingException e) -{ - throw new RuntimeException(e); -} - } - else - { -utf8String = isoString; - } - return utf8String; - } }}} - I have found that these three steps are all that is necessary to make your - site accept any language that UTF-8 can work with. I extend my thanks to - those of you on the Tomcat users list who helped me find these little gems. - - (from the tomcat-user mailing list) - - '''Note''' This method is not useful because it doesn't work with non-ASCII character. "stringBytesISO" is an ISO-8859-1 byte stream. We can't use it as an UTF-8 byte stream if it contains non-ASCII character. - - '''Alternative solution''' - - The solution suggested above works, but from the architecture perspective the correct way is to add a filter to the Tomcat that will do necessary correction for the application deployed without any additional changes to the rest of the code. - - 1. Make sure JSP header is set as suggested: - {{{ - <%@ page contentType="text/html; charset=UTF-8"%> - }}} - - 2. Example of filter: - - {{{import java.io.*; - import java.util.*; - import javax.servlet.*; - import javax.servlet.http.*; - - public class CharsetFilter implements Filter - { - private String encoding; - - public void init(FilterConfig config) throws ServletException - { - encoding = config.getInitParameter("requestEncoding"); - - if( encoding==null ) encoding="UTF-8"; - } - - public void doFilter(ServletRequest request, ServletResponse response, FilterChain next) - throws IOException, ServletException - { - // Respect the client-specified character encoding - // (see HTTP specification section 3.4.1) - if(null == request.getCharacterEncoding()) - request.setCharacterEncoding(encoding); - - next.doFilter(request, response); - } - - public void destroy(){} - } - }}} - - Corresponding portion of web.xml configuration will look like: - - {{{ - - - Charset Filter - CharsetFilter - - requestEncoding - UTF-8 - - - - - Charset Filter - /* - - - }}} - - The suggested solution originates from [[http://people.comita.spb.ru/users/sergeya/java/ruschars.html|Sergey Astakhov (all texts are in russian)]] (serg...@comita.spb.ru) - - '''Important note''': Note that this filter should be as far towards the front of your filter chain as possible. If some other code calls request.getParameter (or a similar method) before this filter is invoked, then the encoding will not be set properly, and your parameters will still be decoded improperly. - - '''- TIP -''' - - Update the file $CATALINA_HOME/conf/server.xml for UTF-8 support by connectors. - Example: - - {{{}}} - - or - - {{{}}} - - * ''URIEncoding'' specifies the character encoding used to decode the URI. - * ''useBodyEncodingForURI'' indicates whether to use the encoding specified in contentType (or explicitly set using Request.setCharacterEncoding() method) to decode the URI query parameters. The default value is set to "false". - - '''Note''' that this changes the behavior of reading GET parameters from the request URI and will not affect POST parameters at all. - - == See Also == - * http://wiki.apache.org/tomcat/Tomcat/UTF-8 - * http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/ - - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Async one thing left
On 03/28/2010 02:14 AM, Mark Thomas wrote: On 27/03/2010 19:43, Filip Hanik - Dev Lists wrote: AJP and NIO connectors are good. What state is APR in? (I'm on my laptop at the moment and it isn't set up to run the tests) not yet started. BIO connector has one use case where the request/response don't get recycled properly. If I disable the cache it works fine, so I need to track that one down, and then we will be good to go Sounds great. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "CategoryObsolete" by Konstanti nKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "CategoryObsolete" page has been changed by KonstantinKolinko. The comment on this change is: Created CategoryObsolete page. http://wiki.apache.org/tomcat/CategoryObsolete -- New page: #format wiki #language en This category links pages that are obsolete and are superseded by some other pages elsewhere. Note, that the wiki engine preserves history of the pages. To view the previous version of a page: 1. Click on the ''Info'' link above the page content. It will display the history of the page. 1. There, click on the ''view'' link that is to the right of a previous version of the page. It will display that version. To add a page to this category, add a link to this page on the last line of the page. You can add multiple categories to a page. See also: OrphanedPages. '''List of pages in this category:''' <> CategoryCategory - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Performance_and_Monitori ng" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Performance_and_Monitoring" page has been changed by KonstantinKolinko. The comment on this change is: Added a link to Mladen's article (moving it from an obsolete TomcatFAQ page).. http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring?action=diff&rev1=6&rev2=7 -- 1. [[#Q1|Is Tomcat faster than serving static HTML pages than Apache httpd?]] 1. [[#Q2|Is there an application-specific comparison between Tomcat and Resin or other containers?]] 1. [[#Q3|Is there a comprehensive, up-to-date, detailed benchmark comparing various servlet containers, including Tomcat?]] + 1. [[#Q4|How do I configure apache tomcat connectors for a heavy load site?]] == Answers == <>'''Is Tomcat faster than serving static HTML pages than Apache httpd?''' Yes depending on how you tune it. And NO depending on how you tune it. Anything less starts a religious war. We recommend performing your own benchmarks and [[http://marc.theaimsgroup.com/?l=tomcat-user&m=106036177509367&w=2|see for yourself]]. + + <> + <>'''Is there an application-specific comparison between Tomcat and Resin or other containers?''' [[http://raibledesigns.com/page/rd?anchor=resin_slower_than_tomcat_fails|Here's]] one comparing recent versions of Resin and Tomcat running [[http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuse|AppFuse]]. + + + <> <>'''Is there a comprehensive, up-to-date, detailed benchmark comparing various servlet containers, including Tomcat?''' Yes. Here's the most comprehensive and objective one we've found to date: [[http://www.webperformanceinc.com/library/reports/ServletReport/|Web Performance, Inc.'s comparison]]. + + <> + + <>'''How do I configure apache tomcat connectors for a heavy load site?''' + + The following '''excellent''' article was written by Mladen Turk. He is a Developer and Consultant for JBoss Inc in Europe, where he is responsible for native integration. He is a long time commiter for Jakarta Tomcat Connectors, Apache Httpd and Apache Portable Runtime projects. + + ''Fronting Tomcat with Apache or IIS - Best Practices'' + * http://people.apache.org/~mturk/docs/article/ftwai.html + [[CategoryFAQ|CategoryFAQ]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Connectors" by KonstantinK olinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Connectors" page has been changed by KonstantinKolinko. The comment on this change is: Added a link. http://wiki.apache.org/tomcat/FAQ/Connectors?action=diff&rev1=11&rev2=12 -- 1. [[#Q6|How do I bind to a specific ip address?]] 1. [[#Q7|Where can I download a binary distribution of my connector?]] 1. [[#Q8|I'm having strange UTF-8 issues with my request parameters.]] + 1. [[#Q9|How do I configure apache tomcat connectors for a heavy load site?]] == Answers == <>'''What is JK (or AJP)?''' AJP is a wire protocol. It an optimized version of the HTTP protocol to allow a standalone web server such as [[http://httpd.apache.org/|Apache]] to talk to Tomcat. Historically, Apache has been much faster than Tomcat at serving static content. The idea is to let Apache serve the static content when possible, but proxy the request to Tomcat for Tomcat related content. + + + <> <>'''Which connector: mod_jserv, JK, JK2, mod_webapp or mod_proxy?''' @@ -30, +34 @@ * '''mod_jk is great and should be used for production'''. It is still under active development and also works for the apache 2.X series for cases where you do not want to use mod_proxy_ajp. * mod_proxy. A cheap way to proxy without the hassles of configuring JK. This solution lacks sticky session load balancing. If you don't need some of the features of jk - this is a very simple alternative. * mod_proxy_ajp. With apache 2.2, mod_proxy was rewritten to support load balancing as well as a new transport called mod_proxy_ajp. This module is distributed with the Apache http server, not the Tomcat server. + + + <> <>'''Why should I integrate Apache with Tomcat? (or not)''' @@ -43, +50 @@ * Speed. Apache is faster at serving static content than Tomcat. But unless you have a high traffic site, this point is useless. But in some scenarios, tomcat can be faster than Apache httpd. So benchmark YOUR site. '''Tomcat can perform at httpd speeds when using the proper connector (APR with sendFile enabled). Speed should not be considered a factor when choosing between Apache httpd and Tomcat''' * Socket handling/system stability. Apache has better socket handling with respect to error conditions than Tomcat. The main reason is Tomcat must perform all its socket handling via the JVM which needs to be cross platform. The problem is socket optimization is a platform specific ordeal. Most of the time the java code is fine, but when you are also bombarded with dropped connections, invalid packets, invalid requests from invalid IP's, Apache does a better job at dropping these error conditions than JVM based program. (YMMV) + + <> + <>'''At boot, is order of start up (Apache vs Tomcat) important?''' No. This way - either apache or tomcat can be restarted at any time independent of one another. + + + <> <>'''Is there any way to control the content of automatically generated mod_jk.conf-auto? I need my own specific commands added to it.''' There really is no need to. Just copy the automatically generated mod_jk.conf-auto and edit it manually to your preference. None of production tomcat installations really use mod_jk.conf-auto as it is. + + <> + <>'''How do I bind to a specific ip address?''' - Each Connector element allows an `address` property. See the [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the see the [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector docs]]. + Each Connector element allows an `address` property. See the [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector docs]]. + + + <> <>'''Where can I download a binary distribution of my connector?''' You cannot: you need to download the source and compile it for your platform. The source distributions are available from the [[http://tomcat.apache.org/download-connectors.cgi|standard location]]. Note that JPackage.org has RPM distributions for the connectors as well as tomcat itself: [[http://www.jpackage.org/|JPackage.org]] + + <> + <>'''I'm having strange UTF-8 issues with my request parameters.''' - See [[FAQ/CharacterEncoding|Character Encoding]] + See [[../CharacterEncoding|Character Encoding]] + + + <> + + <>'''How do I configure apache tomcat connectors for a heavy load site?''' + + See [[../Performance_and_Monitoring|Performance and Monitoring]] [[CategoryFAQ|CategoryFAQ]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Miscellaneous" by Konstant inKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Miscellaneous" page has been changed by KonstantinKolinko. The comment on this change is: Added a link to the tag pooling section, moved tag pooling FAQ items to be together. Added space between answers.. http://wiki.apache.org/tomcat/FAQ/Miscellaneous?action=diff&rev1=18&rev2=19 -- 1. [[#Q6|How do I get a customized error page?]] 1. [[#Q7|Should I use the LE version?]] 1. [[#Q8|How do I configure Tomcat to NOT to store the sessions during shutdown?]] - 1. [[#Q9|How do I disable tag pooling?]] 1. [[#Q10|Is there a DTD for server.xml?]] 1. [[#Q11|How do I change the welcome file? ( I want to show index.jsp instead of index.html)]] 1. [[#Q12|How do I enable/disable directory listings?]] 1. [[#Q13|How do I use symbolic links with jars?]] 1. [[#Q14|How do I change the name of the file in the download Save-As dialog from a servlet? (or jsp)]] 1. [[#Q15|Is tag pooling broken? It doesn't call release!]] + 1. [[#Q9|How do I disable tag pooling?]] 1. [[#Q16|Why do I get java.lang.IllegalStateException ?]] 1. [[#Q17|How do I make a scheduled event on Tomcat?]] 1. [[#Q18|What is Element "web-app" does not allow "servlet" here?]] @@ -34, +34 @@ 1. [[#Q28|What's the different between a Valve and Filter?]] == Answers == + <>'''I am unable to compile my JSP!''' Are you seeing this? @@ -60, +61 @@ In the case of the Environment issues, it is typical that on Windows, the startup scripts work fine and the service does not. The service uses registry values to look for java and other "stuff". To save yourself some trouble, see if the [[http://web.bvu.edu/staff/david/tcservcfg/|NT Service Config Utility]] is helpful. + + <> + <>'''I can't get servlets to work under /servlet/*!''' Using /servlet/ to map servlets is evil, absolutely evil. Even more evil than [[http://www.eviloverlord.com/lists/overlord.html|this]] . That being said, here are some threads that may answer this: @@ -67, +71 @@ * [[http://marc.theaimsgroup.com/?l=tomcat-user&m=103417249925541&w=2|(SECURITY) Apache Tomcat 4.x JSP source disclosure]] vulnerability * [[http://marc.theaimsgroup.com/?t=10394533713&r=1&w=2|Cannot Run Servlets, only JSP's, Part II]] * [[http://marc.theaimsgroup.com/?t=10432685411&r=1&w=2|Tomcat configuration problem: JSPs work, servlets don]] + + + <> <>'''Why is the invoker evil?''' @@ -84, +91 @@ For another explanation of the invoker servlet, why it's evil, and what to do about it, see [[http://test.javaranch.com/wiki/view?InvokerServlet|JavaRanch FAQ]]. + + <> + <>'''How to I get Tomcat's version number?''' {{{javax.servlet.ServletContext.getServerInfo();}}} Starting with tomcat 5.0.28 - there is now a version.sh (or version.bat) program in the bin directory. It will print the version number of tomcat to Standard output. + + + <> <>'''Tomcat eats 100% of the CPU!''' @@ -104, +117 @@ Example (UNIX): {{{export JAVA_OPTS='-DpropName=propValue' }}} Windows service users - use [[http://web.bvu.edu/staff/david/tcservcfg/|this]] + + + <> <>'''How do I get a customized error page?''' @@ -119, +135 @@ You may also catch error 500's as well as other specific exceptions or exceptions which extend Throwable. For more information, see the Servlet Specification for all the gory details of how you can play with this. + + <> + <>'''Should I use the LE version?''' No. It was an experiment, it failed. (YMMV) The original purpose of LE "light" edition of Tomcat 4.0, 4.1 was because jdk1.4 provides a LOT of standard functionality that Tomcat uses that was not in jdk1.3. So to save some space two distributions were made to save some bandwidth. Since then, it has been an exercise in confusion. (Flame me if you disagree) [[http://marc.theaimsgroup.com/?l=tomcat-user&m=105341005928071&w=2|More info]] + + <> + <>'''How do I configure Tomcat to NOT to store the sessions during shutdown?''' [[http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html|Look at the Session manager component and tweak accordingly. One way is to tell tomcat to persist sessions to a path which does not exist. (So tomcat will not store, or be able to load the sessions)]] - <>'''How do I disable tag pooling?''' + <> - To disable tag pooling: See $TOMCAT_HOME/conf/web.xml --> enablePooling=false for the jsp servlet declaration. - - 'Note'':''' This option, as well as most other configuration options of [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|JspServlet]], affects code generation and compilation of JSP pages. It will not alter the behavior of JSPs that have already been compiled. <>'''Is there a DTD for server.xml?''' No! Nor can one accurately exist. [[http://marc.th
[Tomcat Wiki] Update of "TomcatFAQ" by KonstantinKolink o
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "TomcatFAQ" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The up-to-date version of all this is /FAQ. All valuable content was moved to the relevant FAQ pages.. http://wiki.apache.org/tomcat/TomcatFAQ?action=diff&rev1=17&rev2=18 -- + This page is obsolete. See [[FAQ|FAQ]] for the up-to-date version. - {{http://jakarta.apache.org/tomcat/images/tomcat.gif}} - - http://jakarta.apache.org/tomcat/faq/ + CategoryObsolete - * '''Q: How to solve problems involving Custom``Tags and Tag``Pooling?''' - * A: various apache links: -* http://issues.apache.org/bugzilla/show_bug.cgi?id=16001 - bug report discussing the problem -* http://jakarta.apache.org/taglibs/guidelines.html - nice description of the life cycle - - * '''Q: How can I increase the max memory usage of Tomcat running as a Windows Service?''' - * A: One helpful link: http://forum.java.sun.com/thread.jsp?thread=290568&forum=33&message=1211179 - - * '''Q: Where can I download mod_jk? I go to download page but I can't find anything.''' - * A: You can't. Currently the only option open to you is to download the source and compile it. - - * '''Q: How do I configure apache tomcat connectors for a heavy load site?''' - * A: The following '''excellent''' article was written by Mladen Turk. He is a Developer and Consultant for JBoss Inc in Europe, where he is responsible for native integration. He is a long time commiter for Jakarta Tomcat Connectors, Apache Httpd and Apache Portable Runtime projects. - - ''Fronting Tomcat with Apache or IIS - Best Practices'' - * http://people.apache.org/~mturk/docs/article/ftwai.html - - * '''Q: Can you use mulipart encoding HTML forms with Perl/CGI on Tomcat?''' - * '''Q: Where can I find information about Tomcat-i18n issues.''' - * '''Q: How do I configure Tomcat to serve UTF-8 files as UTF-8?''' - * A: see [[Tomcat/UTF-8]] - - If you need more help, you may want to see the Tomcat User mailing list at: http://jakarta.apache.org/tomcat/faq/tomcatuser.html - - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ" page has been changed by KonstantinKolinko. The comment on this change is: Added download links for the JSP and Servlet specs. Those are a bit hard to find on the Sun site. Links to JSRs might be better here.. http://wiki.apache.org/tomcat/FAQ?action=diff&rev1=27&rev2=28 -- Welcome to the Tomcat FAQ. In conjunction with this FAQ we strongly emphasis doing the following: * Read the docs. Most answers are already documented. - * Know the [[http://java.sun.com/products/servlet/|Servlet]] and [[http://java.sun.com/products/jsp/|JSP]] specification. Many answers are not documented by the Tomcat team since they are generic and already defined by the specs. Know the specs, they let you ensure your webapps are portable across different servlet containers. + * Know the [[http://java.sun.com/products/servlet/|Servlet]] and [[http://java.sun.com/products/jsp/|JSP]] specification. Many answers are not documented by the Tomcat team since they are generic and already defined by the specs. Know the specs, they let you ensure your webapps are portable across different servlet containers. You can download them here: [[http://java.sun.com/products/servlet/download.html#specs|Servlet]], [[http://java.sun.com/products/jsp/reference/api/index.html#specs|JSP]]. * Please do some research. Use a search engine. It is frustrating to see questions which can be answered with a simple Google search (or your favorite search engine). * Browse or search our [[http://tomcat.apache.org/lists.html|mailing lists]]. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "Tomcat/Jk2RemoteJmx" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/Jk2RemoteJmx" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The jk2 connector is obsolete and should not be used. If anyone is interested, they can see the old version of the page in the history.. http://wiki.apache.org/tomcat/Tomcat/Jk2RemoteJmx?action=diff&rev1=2&rev2=3 -- + This page is obsolete. All content was removed. See the [[http://tomcat.apache.org/connectors-doc/|Connectors documentation]] on the Tomcat site. - The jk2 connector has a status page and some experimental support for remote JMX. - That means the internal components in the C code are visible in the JMX console, - and you can also perform some limited control. - To experiment: + + CategoryObsolete - * insert in jk2.properties: - {{{ modjk.webServerPort=APACHE_PORT }}} - * make sure /jkstatus is enabled - - The code is generic and is beeing merged with commons-modeler, which will provide - typed attributes - right now everything is treated as a string, descriptions and - more. - - If you play with the setters - it is very important to make sure that workers2.properties - is writtable by the apache user. To deal with the multi-process servers we need to save the - file so all processes are synchronized. Also keep in mind that all changes made via - JMX on mod_jk are persisted automatically ( unlike the changes in /admin, which need an - explicit save ). - - - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "Tomcat/Jk2Connector" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/Jk2Connector" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The jk2 connector is obsolete and should not be used. If anyone is interested, they can see the old version of the page in the history.. http://wiki.apache.org/tomcat/Tomcat/Jk2Connector?action=diff&rev1=8&rev2=9 -- + This page is obsolete. All content was removed. See the [[http://tomcat.apache.org/connectors-doc/|Connectors documentation]] on the Tomcat site. - == Using the JK2 Connector == - - {X} JK2 is deprecated! - - This is the start of a tutorial on using the JK2 Connector. See also the [[TomcatFAQ/ModJK2OnRedHat]] Tomcat FAQ on building `mod_jk2` for Red Hat Linux. - - See also HowToRedhat8JK2 for configuring Red Hat's Apache with a mod_jk2 binary and Tomcat 4.1 - - === Quick Start for Linux === - - ''This is just a quick start for people currently struggling with mod_jk2 and multiple hosts. It is a working configuration. My real content for this page will come in another week or so. But please feel free to collaborate on this page now! :-) '' - - This is working on Red Hat Linux. I use Unix Domain sockets because they eliminate the need to manage the list of IP ports. [''One remaining task is to eliminate the need for the shutdown port. The shutdown command can be sent via AJP13, but the code from {{{StopTomcat}}} (in Tomcat v3.3) needs to be ported to use the connector classes.''] - - Layout - - See the file in the Tomcat distribution called `RUNNING.txt` for instructions on how to use `CATALINA_BASE` and `CATALINA_HOME`. - - For each virtual host that will have its own JVM (shared JVM will be discussed later), setup a layout like: - - {{{ -site/${CATALINA_BASE} - conf/ - logs/ - ${Host.appBase}/ROOT/ - ${Host.appBase}/ROOT/web-inf/classes/ - ${Host.appBase}/ROOT/web-inf/lib/ - temp/ - work/ - }}} - - This is just a basic description for this example. There are other options for placement of the site content. - - Starting and Stopping Tomcat - - Starting: - {{{ - su --login ''user'' --command="export CATALINA_BASE=''path''; export JAVA_HOME=/usr/local/java; export JAVA_OPT=-server; /usr/local/tomcat-4/bin/startup.sh" - }}} - Stopping: - {{{ - su --login ''user'' --command="export CATALINA_BASE=''path''; export JAVA_HOME=/usr/local/java; export JAVA_OPT=-server; /usr/local/tomcat-4/bin/shutdown.sh" - }}} - - I use a {{{Sys``VI``nit}}} script that manages this cleanly for many sites. The ''user'' should be in the same group as the apache web server process. - - Connector - - {{{ - }}} - - - Note that the port is set to zero. We're using UNIX domain sockets in this example, and we don't want the connector to open a port. - - jk2.properties - - {{{ handler.list=apr,channelUnix,request - apr.NativeSo=/etc/httpd/modules/jkjni.so - channelUnix.file=${jkHome}/work/jk2.socket }}} - - conf/worker.properties - - {{{ - ["logger"] - level=DEBUG - - [config:] - file=${serverRoot}/conf/workers2.properties - debug=0 - debugEnv=0 - - [shm:] - info=Scoreboard. Required for reconfiguration and status with multiprocess servers - file=${serverRoot}/logs/jk2.shm - size=100 - debug=0 - disabled=0 - - [workerEnv:] - info=Global server options - timing=1 - debug=0 - - [channel.un:''workerName''] - info=AF_UNIX socket connecting to "host" - file=/''catalina_base''/work/jk2.socket - debug=0 }}} - - ''... repeat the above for each worker ...'' - - '''NOTE:''' You must make sure that the group owning the `work/` directory is the same as the ''Group'' directive in `httpd.conf`. Run the following: - - {{{ - chgrp group work - chmod g+s work - }}} - - If you have already tried Tomcat before doing this, then also execute the following: - - {{{ - chgrp group jk2.socket - }}} - - - conf.d/jk2.conf - - {{{ - LoadModule jk2_module modules/mod_jk2.so - }}} - - httpd.conf - - {{{ - # This sends all resource requests to tomcat - - ServerName ''vhost'' - DirectoryIndex index.jsp index.html - JkSet uri:''vhost''/*.group ajp13:'' workerName '' - - # Alternative mapping mechanisms - # 1. Place this in workers2.properties - # [uri:''vhost''/] - # group=ajp13:''workerName'' - # - # 2. This is the same as above, but in httpd.conf - # JkSet uri:''vhost''/*.group ajp13:''workerName'' - # - # 3. This does the same
[Tomcat Wiki] Trivial Update of "UsingPhp" by Konstanti nKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "UsingPhp" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/UsingPhp?action=diff&rev1=19&rev2=20 -- If everything is working as it should, you will see an informational status page produced by PHP. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "WhatIsComet" by Konsta ntinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "WhatIsComet" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/WhatIsComet?action=diff&rev1=6&rev2=7 -- === Display === xxx + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "Tomcat/WebDav" by Kons tantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/WebDav" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/Tomcat/WebDav?action=diff&rev1=5&rev2=6 -- * [[Tomcat/WebDav_MsWebfoldersInfo]] MS webfolder Information + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "Tomcat/WebDav" by Kons tantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/WebDav" page has been changed by KonstantinKolinko. The comment on this change is: Corrected the links.. http://wiki.apache.org/tomcat/Tomcat/WebDav?action=diff&rev1=6&rev2=7 -- == Webdav information and solutions == - * [[Tomcat/WebDav_MsWebfolders]] MS webfolder issues and solutions + * [[../WebDav%MsWebfolders|Tomcat/WebDav%MsWebfolders]] MS webfolder issues and solutions - * [[Tomcat/WebDav_MsWebfoldersInfo]] MS webfolder Information + * [[../WebDav%MsWebfoldersInfo|Tomcat/WebDav%MsWebfoldersInfo]] MS webfolder Information [[CategoryFAQ|CategoryFAQ]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ" page has been changed by KonstantinKolinko. The comment on this change is: Added link to the webdav page. http://wiki.apache.org/tomcat/FAQ?action=diff&rev1=28&rev2=29 -- * [[/Security|Security]] - Common security issues. * [[TomcatVersions|Version]] - About the different tomcat versions. * [[/Tomcat_User|Tomcat User]] - More information about the tomcat-user list. + * [[../Tomcat/WebDav|WebDav]] - Questions on using Tomcat Webdav servlet. * [[/Windows|Windows]] - Common Windows questions. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "Tomcat" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat" page has been changed by KonstantinKolinko. The comment on this change is: Remove most of the contents. All links are moved either to the FrontPage or to the FAQ.. http://wiki.apache.org/tomcat/Tomcat?action=diff&rev1=13&rev2=14 -- The Tomcat home page is at http://tomcat.apache.org/ + For other links -- see [[FrontPage|front page of the wiki site]]. - * [[Tomcat/Books]]: Books on Tomcat - * [[Tomcat/Howto]]: Howtos (or links to them) - * [[Tomcat/Jk2Connector]]: Using the JK2 Connector {X} JK2 is deprecated! - * [[Tomcat/Jk2RemoteJmx]]: The JMX proxy for mod_jk - * [[Tomcat/Links]]: Useful Links - * [[UsingPhp]]: Using PHP with Tomcat - * [[Tomcat/WebDav]]: Webdav info & solutions - * [[PoweredBy]] : Powered By Tomcat Sites and References - See Also: [[TomcatFAQ]]. - - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "Tomcat/Howto" by KonstantinKol inko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Tomcat/Howto" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The up-to-date version of all this is /HowTo.. http://wiki.apache.org/tomcat/Tomcat/Howto?action=diff&rev1=22&rev2=23 -- + This page is obsolete. See [[HowTo|HowTo]] for the up-to-date version. - This seems like an old page... Should it be a DeleteMe page? - - [For more details on running Tomcat on Mac OS X, see: http://wiki.apache.org/tomcat/TomcatOnMacOS?highlight=%28mac%29 ] - - Here are some notes on getting Java and Tomcat to run on a Max with OSX (10.3.5 as at this writing). - - These notes are the result of several weeks playing with different things and asking a LOT of questions on several mailing lists. - - The following assumes you have Java already installed - it is installed by default on every Mac OSX or later - but I thought I'd issue a caveat. - - I hope these notes are of use to someone out there. + CategoryObsolete - THE SITUATION - I wanted to learn about JSP on my Mac with OSX. I installed it first time on a WinXP Pro PC but my development machine is a Mac. - - - THE SOLUTION - NB - Because I had already installed and played with a separate install of Tomcat (the one installed by Apple's XCode was out of date as was the one I downloaded from another site), I was ready to give up! - - In my case I wanted to get rid of all the other installations and start from scratch. - - - - #1 - Download Jakarta Tomcat - use the Binaries line - I d/loaded jakarta-tomcat-5.0.27.tar.gz - - Extract the files (unless your browser automatically extracts them). - - Navigate (using the Finder) to Macintosh HD > Library. - - If there is not already a folder in Macintosh HD > Library called Tomcat then create one. - - If there is already a Tomcat folder (my situation) but the Tomcat installed is out of date then delete all the files already in that folder. - - #2 - Copy all the unstuffed files from the "jakarta-tomcat-5.0.27.tar.gz" download and put all the files into the Tomcat folder. - - I just named it Tomcat as it saves some typing in the Terminal :) - - So the directory structure becomes: - - Macintosh HD > Library > Tomcat > - - #3 - We then need to set the JAVA_HOME environment variable - this is almost the same as setting the WinXP Environment Variable. - - Download the preference pane "RCEnvironment" - (http://www.rubicode.com/Software/RCEnvironment/) - - Copy the Pref Pane to Macintosh HD > Library > Preference``Panes - - Go to System Preferences and click the Pane for "Environment Variables" - - JAVA_HOME is defined as /Library/Java/Home. - - In the left hand column enter "JAVA_HOME" and in the left hand column enter "/Library/Java/Home". Click Apply. - - - #4 - Open the /Library/Tomcat/conf/tomcat-users.xml file with a plain text editor. As a default Mac``OSX installation Tomcat only has basic roles and users set up. - - What is configured as default is: - - - - - - - - - - - - An example of what it *SHOULD* look like follows: - - - - - - - - - - - - - - In this case a role, a user and password have been set up with the name "tomcat". You can change this later. - - - #5 - Reboot. - - - #6 - To start Tomcat go to Terminal. - - The path to Tomcat via the Finder is Macintosh HD > Library > Tomcat. - - But to get to that directory using the Terminal, type in: - - cd /Library/Tomcat/bin - - Do an "ls" - you should see a file called "startup.sh" - - Any shell (".sh") file can be executed in the terminal by putting period and a slash before the file name (eg: startup.sh) executes the shell script. - - ./startup.sh - - Terminal should display 4 lines looking like this: - - Using CATALINA_BASE: /library/tomcat - Using CATALINA_HOME: /library/tomcat - Using CATALINA_TMPDIR: /library/tomcat/temp - Using JAVA_HOME: /Library/Java/Home - Users-Computer:/library/tomcat/bin user$ - - Wait about 30 seconds. - - (There are some notes and a couple of Preference Panes for automating the starting and stopping of Tomcat. - After trying them all on 5 different computers - this is the simplest!) - - - #7 - Open a browser window - enter "127.0.0.1:8080" - the default Tomcat page should open. - - If you click the Tomcat Administrator or Tomcat Manager links in the upper left hand of the default Tomcat page you will be asked for a user name and password. - - As mentioned above, use "tomcat" and "tomcat". - - - - Misc Notes (not finished): - - The directory structure: - - Tomcat > webapps > jsp-examples - Tomcat > webapps > servlets-examples - - The pages on the Tomcat default page are: - - http://127.0.0.1:8080/jsp-examples/ - http://127.0.0.1:8080/servlets-examples/ - - Inte
Interested in GSOC ideas
Hello all, I'm interested about JSR 196 implementation idea. I have some questions. is there anyone to mentor this project? do we need to contact mentors before application period starts? is it needed to submit detailed designs for projects? how will the applications evaluated? do all the ideas have same priority during selection or are there some ideas with high priorities? how many students do you take for tomcat ideas? Thanks in advance. Mahesh
[Tomcat Wiki] Update of "TomcatFAQ/ModJK2OnRedHat" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "TomcatFAQ/ModJK2OnRedHat" page has been changed by KonstantinKolinko. The comment on this change is: Removed all content of the page. The jk2 connector is obsolete and should not be used. If anyone is interested, they can see the old version of the page in the history.. http://wiki.apache.org/tomcat/TomcatFAQ/ModJK2OnRedHat?action=diff&rev1=4&rev2=5 -- + This page is obsolete. All content was removed. See the [[http://tomcat.apache.org/connectors-doc/|Connectors documentation]] on the Tomcat site. - This document is intended to explain how to get the JK2 connector to work with Apache2 and Tomcat 4.1.18+. This document provides a step by step process for doing so. - - {X} JK2 is deprecated! - - = Building = - - 1. Download the jakarta-tomcat-connectors package - 1. install httpd-devel and httpd RPMs - 1. Ensure you have libtool, gcc and the various build tools - 1. go into the jakarta-tomcat-connectors/jk/ directory -1. edit build.properties. Set "apache2.home" to /usr and "apache2.include" to /usr/include/httpd. -1. if you have apache13 installed in a separate dir - set apache13.home=DIR, otherwise set it to "none" -1. if you are on gentoo - apache2.include will be /usr/include/apache2 -1. if you built your own apache - it must be APACHE/include -1. On Red Hat 8, make a symlink between /usr/lib/libapr.so to /usr/lib/libapr-0.so ( the "right" name ) - - If you are building using configure/make: - - 1. See note (below) regarding some changes you may need to make to a Makefile - 1. go into the jk/native2 directory - 1. type ./buildconf.sh - 1. type ./configure --with-apxs=(location of your apxs installed by apache-devel) -1. an actual sample configure:{{{./configure --with-apxs2=/usr/sbin/apxs --with-apache2-lib=/usr/lib --with-tomcat41=/usr/local/tomcat-4 --with-apr-lib=/usr/lib --with-jni}}} - 1. type make -1. mod_jk2.so and libjkjni.so will be in jk/build/jk2/apache2/ -1. instructions on using libtool to finish are emitted at the end of the make process - - If you are building using ant: - - 1. do "ant jkant" ( in j-t-c/jk ). This will build the ant tasks - 1. cd native2 - 1. "ant" - 1. mod_jk2.so will be in jk/build/jk2/apache2, - 1. libjkjni.so will be in jk/builld/jk2/jni - - After you compile: - - 1. copy mod_jk2.so to APACHE/modules - 1. copy libjkjni.so to JAVA_HOME/jre/lib/i386 ( you can also modify java.library.path - but this is simpler ) + CategoryObsolete - '''Note:''' depending upon version and configuration, you may need to modify the Makefile. Those changes are needed - if the sources are older than JTC_M1 ( Apr 10, 2003 ? ) - In native2/server/apache/Makefile.in, find the line: - - {{{ - JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 @PCRE_LIBS@ - }}} - - In order to compile and run on my Red Hat 8.0 installation the following changes are required: - - {{{ - JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 '''-laprutil -lgdbm -lexpat -ldb''' @PCRE_LIBS@ - }}} - - - The changes are in '''bold'''. The changes are only necessary if you actually intend to use jkini.so, e.g., for UNIX domain sockets. - - NOTE: this was to build with the '''RH 8 binary distribution of Apache''', which provides libapr. Notice the difference between what RH 8 distributes, and an official Apache distribution of 2.0.44: - - {{{ - 1356728 Feb 16 23:45 httpd-2.0.44/srclib/apr/.libs/libapr-0.so.0.9.2 - 772970 Feb 16 23:46 httpd-2.0.44/srclib/apr-util/.libs/libaprutil-0.so.0.9.2 - }}} - {{{ - 205700 Oct 9 08:04 /usr/lib/libapr.so.0.0.0 - 102532 Oct 9 08:04 /usr/lib/libaprutil.so.0.0.0 - }}} - - You should also replace {{{jkjni}}} with {{{libjkjni}}}. - - - - = Configuration = - - See [[Tomcat/Jk2Connector]] (Using the JK2 Connector) - - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko. The comment on this change is: Removed obsolete link from the top of the page. http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=86&rev2=87 -- + <> - '''Originally taken from: http://wiki.apache.org/jakarta-tomcat/Tomcat/Howto ''' - - - '''Contents''' <> - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "CategoryGSOC" by KonstantinKol inko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "CategoryGSOC" page has been changed by KonstantinKolinko. The comment on this change is: Created CategoryGSOC category, to mark the pages of Tomcat GSOC projects.. http://wiki.apache.org/tomcat/CategoryGSOC -- New page: #format wiki #language en Category that connects the pages related to the [[http://code.google.com/soc/|Google Summer of Code]] projects at Apache Tomcat. To add a page to this category, add a link to this page on the last line of the page. You can add multiple categories to a page. Please note, that because of how this page name is capitalized, you have to use the `[[` `|` `]]` syntax to create a link here. See the source of this page. '''List of pages in this category:''' <> [[CategoryGSOC|CategoryGSOC]] CategoryCategory - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "ServletProxy" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "ServletProxy" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/ServletProxy?action=diff&rev1=3&rev2=4 -- [3] http://edwardstx.net/wiki/Wiki.jsp?page=HttpProxyServlet, “ Http proxy Servlet – main page”. + + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "GSOC" by KonstantinKol inko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "GSOC" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/GSOC?action=diff&rev1=3&rev2=4 -- * [[SummerOfCode2009]] - 2009 * [[SummerOfCode2010]] - 2010 + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "SummerOfCode2005" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "SummerOfCode2005" page has been changed by KonstantinKolinko. The comment on this change is: Updated links and added category link. http://wiki.apache.org/tomcat/SummerOfCode2005?action=diff&rev1=4&rev2=5 -- - [[http://apache.org/images/asf_logo_wide.gif]] + {{http://apache.org/images/asf_logo_wide.gif}} - The Tomcat team was glad to participate in the [[http://code.google.com/summerofcode.html|Google 2005 Summer of Code]] project. We proposed three projects, and there was more than enough interest in all three of them. Two projects were pursused: the project descriptions are on the [[http://wiki.apache.org/general/SummerOfCode2005|main Apache Summer of Code]] wiki page. + The Tomcat team was glad to participate in the [[http://code.google.com/soc/2005/|Google 2005 Summer of Code]] project. We proposed three projects, and there was more than enough interest in all three of them. Two projects were pursused: the project descriptions are on the [[http://wiki.apache.org/general/SummerOfCode2005|main Apache Summer of Code]] wiki page. We look forward to participating again next year ;) - Back to the [[http://wiki.apache.org/jakarta-tomcat/FrontPage|Tomcat wiki front page]], or to the [[http://jakarta.apache.org/tomcat|Tomcat main page]]. + Back to the [[http://wiki.apache.org/tomcat/FrontPage|Tomcat wiki front page]], or to the [[http://tomcat.apache.org/|Tomcat main page]]. + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "SummerOfCode2009" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "SummerOfCode2009" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/SummerOfCode2009?action=diff&rev1=14&rev2=15 -- 9. I've made a seperate wiki page for the configuration location of those newly added filters. Here is the link: http://wiki.apache.org/tomcat/SummerOfCode2009/LoadingFilterConfiguration + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "SummerOfCode2009/Loading FilterConfiguration" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "SummerOfCode2009/LoadingFilterConfiguration" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/SummerOfCode2009/LoadingFilterConfiguration?action=diff&rev1=5&rev2=6 -- (Mark prefer option 4. And he hopes to start on the web fragment code shortly. ) + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "SummerOfCode2010" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "SummerOfCode2010" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/SummerOfCode2010?action=diff&rev1=4&rev2=5 -- ||JSR196 ||markt ||[[https://issues.apache.org/jira/browse/COMDEV-23|COMDEV-25]]||Provide a [[http://jcp.org/en/jsr/detail?id=196|JSR196]] implementation || ||SPDY ||jfclere ||[[https://issues.apache.org/jira/browse/COMDEV-23|COMDEV-26]]||Create Connector that supports the SPDY protocol (See http://dev.chromium.org/spdy/spdy-whitepaper) || + + [[CategoryGSOC|CategoryGSOC]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "CategoryCategory" by K onstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "CategoryCategory" page has been changed by KonstantinKolinko. The comment on this change is: Updated the macro syntax. http://wiki.apache.org/tomcat/CategoryCategory?action=diff&rev1=2&rev2=3 -- A category is a WikiName that exploits [[Wiki:WikiWiki|WikiWiki]]'s reverse linking. If you click on the title of a category page, you'll get a list of pages belonging to that category. To get a list of all categories, click above on the Category''Category title. Here is a list of all categories known to this wiki: - <> + <> Here is a list of all pages containing the CategoryCategory wiki tag: - <> + <> To be consistent with the C2 category scheme, all categories start with the word "Category". For more information, see Wiki:AboutCategoriesAndTopics''. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FrontPage" by KonstantinKolink o
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FrontPage" page has been changed by KonstantinKolinko. The comment on this change is: Added link to the CategoryCategory page. Added link to the help section of moinmo.in site. Removed link to obsolete wiki pages.. http://wiki.apache.org/tomcat/FrontPage?action=diff&rev1=51&rev2=52 -- * '''[[GSOC]]''' - Google Summer of Code - The old Tomcat Wiki content can be found at TomcatProjectPages. - = Special Wiki pages = * '''[[TitleIndex]]''' - A list of all pages on this wiki. - * '''[[HelpContents]]''' - A basic guide to the MoinMoin wiki (including information about wiki syntax). + * '''[[CategoryCategory]]''' - A list of page categories on this wiki. + * '''[[HelpContents]]''' - A basic guide to the MoinMoin wiki (including information about wiki syntax). See also [[http://moinmo.in/HelpForUsers|HelpForUsers]] on the [[http://moinmo.in/|moinmo.in]] site. * '''[[WordIndex]]''' - A list of all the words that appear in the titles of the pages on this wiki, with links to pages that include that word. * '''[[FindPage]]''' - A full-text search of the wiki. * '''[[WantedPages]]''' - All the "broken links" -- a list of all the pages on this wiki that are linked to, but do not exist. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "JNDI_HowTo" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "JNDI_HowTo" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/JNDI_HowTo?action=diff&rev1=2&rev2=3 -- The port number (3268) connects to the global catalog. This is important because 389 might throw errors when getting referrals. (It sends a referral to ldap://company.com:389.) With this setting we don't have to change anything in /etc/hosts. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "Logging_Tutorial" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "Logging_Tutorial" page has been changed by KonstantinKolinko. The comment on this change is: Added category link. http://wiki.apache.org/tomcat/Logging_Tutorial?action=diff&rev1=4&rev2=5 -- ServletContext.log("...") statements made within the /manager application will end up in manager.dd.mm.yyy.log. + + [[CategoryFAQ|CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Interested in GSOC ideas
On 28/03/2010 17:16, Mahesh Fernando wrote: > Hello all, > > I'm interested about JSR 196 implementation idea. I have some questions. > is there anyone to mentor this project? [1] > do we need to contact mentors before application period starts? [2] > is it needed to submit detailed designs for projects? [2] > how will the applications evaluated? [3] > do all the ideas have same priority during selection or are there some ideas > with high priorities? [3] > how many students do you take for tomcat ideas? [2],[3] [1] http://wiki.apache.org/tomcat/SummerOfCode2010 [2] http://socghop.appspot.com/document/show/gsoc_program/google/gsoc2010/faqs [3] http://community.apache.org/gsoc.html - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 48997] enhance ssl-howto documentation
https://issues.apache.org/bugzilla/show_bug.cgi?id=48997 Mark Thomas changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Mark Thomas 2010-03-28 18:28:36 UTC --- Patches welcome -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928482 - /tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java
Author: markt Date: Sun Mar 28 19:34:12 2010 New Revision: 928482 URL: http://svn.apache.org/viewvc?rev=928482&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48717 When a node joins a cluster and it receives all the current sessions, ensure the sessionCreated event is fired if the Manager is configured to replicate session events Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java Modified: tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java?rev=928482&r1=928481&r2=928482&view=diff == --- tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java (original) +++ tomcat/trunk/java/org/apache/catalina/ha/session/DeltaManager.java Sun Mar 28 19:34:12 2010 @@ -686,6 +686,9 @@ public class DeltaManager extends Cluste if (log.isWarnEnabled()) log.warn(sm.getString("deltaManager.loading.existing.session",session.getIdInternal())); } add(session); +if (notifySessionListenersOnReplication) { +session.tellNew(); +} } } catch (ClassNotFoundException e) { log.error(sm.getString("deltaManager.loading.cnfe", e), e); - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928483 - /tomcat/tc6.0.x/trunk/STATUS.txt
Author: markt Date: Sun Mar 28 19:40:16 2010 New Revision: 928483 URL: http://svn.apache.org/viewvc?rev=928483&view=rev Log: Proposal Modified: tomcat/tc6.0.x/trunk/STATUS.txt Modified: tomcat/tc6.0.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=928483&r1=928482&r2=928483&view=diff == --- tomcat/tc6.0.x/trunk/STATUS.txt (original) +++ tomcat/tc6.0.x/trunk/STATUS.txt Sun Mar 28 19:40:16 2010 @@ -244,3 +244,12 @@ PATCHES PROPOSED TO BACKPORT: http://svn.apache.org/viewvc?rev=927621&view=rev +1: markt, kkolinko -1: + +* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48717 + When a node joins a cluster and it receives all the current sessions, ensure + the sessionCreated event is fired if the Manager is configured to replicate + session events + http://svn.apache.org/viewvc?rev=928482&view=rev + +1: markt + -1: + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928484 - /tomcat/tc5.5.x/trunk/STATUS.txt
Author: markt Date: Sun Mar 28 19:42:21 2010 New Revision: 928484 URL: http://svn.apache.org/viewvc?rev=928484&view=rev Log: Proposal Modified: tomcat/tc5.5.x/trunk/STATUS.txt Modified: tomcat/tc5.5.x/trunk/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/STATUS.txt?rev=928484&r1=928483&r2=928484&view=diff == --- tomcat/tc5.5.x/trunk/STATUS.txt (original) +++ tomcat/tc5.5.x/trunk/STATUS.txt Sun Mar 28 19:42:21 2010 @@ -137,3 +137,11 @@ PATCHES PROPOSED TO BACKPORT: I see no reason why one of the files was copied to ${tomcat.dist}, as that target updates ${tomcat.build} only. +* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48717 + When a node joins a cluster and it receives all the current sessions, ensure + the sessionCreated event is fired if the Manager is configured to replicate + session events + http://svn.apache.org/viewvc?rev=928482&view=rev + (apply to both cluster implementations) + +1: markt + -1: - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 48717] Session listeners not called on cluster node start
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717 --- Comment #1 from Mark Thomas 2010-03-28 19:42:34 UTC --- Confirmed and fixed in trunk for 7.0.x I have proposed the same fix for 6.0.x and 5.5.x -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 48105] Transfering PNG using getResponse().getOutputStream()
https://issues.apache.org/bugzilla/show_bug.cgi?id=48105 Mark Thomas changed: What|Removed |Added Status|NEEDINFO|RESOLVED Resolution||INVALID --- Comment #10 from Mark Thomas 2010-03-28 19:45:51 UTC --- Analysis received off-list from Jonathan Leech: The issue is in the following block: else { //Read/Write out in one block byte[] bytes = new byte[(int) length]; in.read(bytes); out.write(bytes); } read() returns the actual number of bytes read, which can be less than the length of the byte array. The content length is set to the full length, and there aren't as many bytes as that in the actual response. The actual error produced is downstream, caused by the above invalid condition. Jonathan's analysis looks good to me. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 48810] error handler chain doesn't show errors on tag files compilation
https://issues.apache.org/bugzilla/show_bug.cgi?id=48810 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Comment #1 from Mark Thomas 2010-03-28 20:16:33 UTC --- This works for me with the latest trunk and 6.0.x. I don't see any relevant changes so I wonder if you have hit a different code path to the one my test case is using. If you still see this error with the latest 6.0.x release (6.0.26 at the time of writing this comment) please re-open this bug report and attach the source for the simplest tag file and JSP that demonstrates the issue. Please also include any relevant information regarding the steps to reproduce. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "MemoryLeakProtection" by Sylva inLaurent
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "MemoryLeakProtection" page has been changed by SylvainLaurent. http://wiki.apache.org/tomcat/MemoryLeakProtection?action=diff&rev1=9&rev2=10 -- ||[[#webappClassInstanceAsThreadLocalValue|Webapp class instance as ThreadLocal value]]||>=6.0.24||>=6.0.24|| [[#48837|Detect child classloaders]], [[#48895|improve thread safety]] || ||[[#webappClassInstanceAsThreadLocalIndirectValue|Webapp class instance indirectly held through a ThreadLocal value]]||no||no||Renew threads in the worker pool|| ||[[#threadLocalPseudoLeak|ThreadLocal pseudo-leak]]||>=6.0.24||>=6.0.24||[[#48895|improve thread safety]]|| - ||[[#cclThreadSpawnedByWebApp|ContextClassLoader / Threads spawned by webapps]]||>=6.0.24||{{{TimerThread}}} are stopped. Other threads may be stopped if {{{clearReferencesStopThreads}}} is set to true on the Context ||[[#48837|Detect child classloaders]], don't stop {{{TimerThread}}} by default|| + ||[[#cclThreadSpawnedByWebApp|ContextClassLoader / Threads spawned by webapps]]||>=6.0.24||{{{TimerThread}}} are stopped. Other threads may be stopped if {{{clearReferencesStopThreads}}} is set to true on the Context ||[[#48837|Detect child classloaders]], [[#48971|don't stop TimerThread by default]]|| - ||[[#cclThreadSpawnedByCommonClassLoader|ContextClassLoader / Threads spawned by classes loaded by the common classloader]]||>=6.0.24||{{{TimerThread}}} are stopped. Other threads may be stopped if {{{clearReferencesStopThreads}}} is set to true on the Context ||[[#48837|Detect child classloaders]], don't stop {{{TimerThread}}} by default|| + ||[[#cclThreadSpawnedByCommonClassLoader|ContextClassLoader / Threads spawned by classes loaded by the common classloader]]||>=6.0.24||{{{TimerThread}}} are stopped. Other threads may be stopped if {{{clearReferencesStopThreads}}} is set to true on the Context ||[[#48837|Detect child classloaders]], [[#48971|don't stop TimerThread by default]]|| ||[[#cclThreadSpawnedByJRE|ContextClassLoader / Threads spawned by JRE classes]]|| no || >=6.0.24 pre-spawns some known offenders || || ||[[#staticClassVariables|static class variables]]|| no ||> 6.0.? || || ||[[#LogFactory|LogFactory]]|| ||> 6.0.? || || @@ -352, +352 @@ SEVERE: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. }}} - So the leak is fixed, but unfortunately there's a side effect : it broke webapp B eviction timer. + So the leak is fixed, but unfortunately there's a side effect : [[#48971|it broke webapp B eviction timer]]. - - (TODO: file a bug report to make the clearReferencesStopTimerThread optional and disabled by default) Note: as of 6.0.24, by default tomcat stops threads of class {{{java.util.TimerThread}}} whose context classloader is the {{{WebAppClassLoader}}} of the app being stopped. It does not stop other threads, it only warns about them. It can try to stop them if the {{{clearReferencesStopThreads}}} option of the standard context is set to true. @@ -407, +405 @@ Related issues * <>[[https://issues.apache.org/bugzilla/show_bug.cgi?id=48837|48837]] - Memory leaks protection does not cure leaks triggered by JSP pages code * <>[[https://issues.apache.org/bugzilla/show_bug.cgi?id=48895|48895]] - !WebAppClassLoader.clearThreadLocalMap() concurrency issues - * + * <>[[https://issues.apache.org/bugzilla/show_bug.cgi?id=48971|48971]] - memory leak protection : stopping !TimerThreads should be optional and disabled by default - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 48971] memory leak protection : stopping TimeThreads should be optional and disabled by default
https://issues.apache.org/bugzilla/show_bug.cgi?id=48971 --- Comment #5 from Konstantin Kolinko 2010-03-28 21:30:07 UTC --- Created an attachment (id=25203) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25203) bug48971_DBCP_reproducer.zip - IllegalStateException caused by stopped timer Any DBCP pool that has timeBetweenEvictionRunsMillis attribute set to a positive value will suffer from this issue. The class that creates the timer is org.apache.commons.pool.impl.EvictionTimer and is (after being renamed) in tomcat-dbcp.jar, which is in the Common class loader. It looks that the TimerThread created by the Timer will belong to the first web application that happens to access the pool. Forcibly stopping the timer creates an invalid state in the DBCP and the next web applications may fail to start. I am attaching configuration that reproduces this issue. To reproduce: 1. Unpack the zip archive, and place the provided files on top of the default configuration of Tomcat 6.0.26. It contains: 1) /data - Two sample HSQLDB databases (http://hsqldb.org/), "database" and "database2". These are identical and contain a single table with two rows of data - see the *.script files. 2) /lib - HSQLDB 1.8.1.2 jar. 3) /conf - server.xml that defines a database pool in GlobalResources. - tomcat-users.xml that contains a username and password for the manager application 4) /webapps - Two web applications, test1 and test2. These are nearly identical, with the following only difference between them (see META-INF/context.xml): - test1 uses connection pool defined in server.xml - test2 uses its own connection pool 5) /logs - Logs from my test run. 2. Copy jstl.jar and standard.jar from /webapps/examples/WEB-INF/lib/ of Tomcat into the /lib folder of Tomcat. 3. Start Tomcat 4. Go to http://localhost:8080/test1/ A test page should load and print two database rows. 5. Go to http://localhost:8080/manager/html/ and stop the test1 application. Note, that Tomcat stops TimerThread created by DBCP. 6. Go to http://localhost:8080/test2/ Expected result: The same output as for test1 before. Actual result: The page fails to load, displaying DataSource invalid: "java.lang.IllegalStateException: Timer already cancelled." It is not seen from the stack trace, but my understanding here is that that occurs because in Commons Pools, when a new pool is initialized, the GenericObjectPool#startEvictor(..) method creates a new Evictor and calls Timer.schedule(..) to schedule it, but the timer is already canceled. Other issues: 1) I suspect that when the pool defined in server.xml is initialized, the TCCL occurs to be equal to the classloader of the web application. I have not yet confirmed that, but that will be a separate bug (causing its own leaks) if it is the case. 2) HSQLDB creates its own "HSQLDB Timer" thread. That is not important, because DBCP issue I am talking about is independent of what database is used. If anyone is curious: that thread is created by the org.hsqldb.lib.HsqlTimer class. Regarding the feature of stopping TimerThreads: 1) I agree with Sylvain that it looks like that it would be better to have it disabled by default, but I would like to have a separate option to control enabling this feature. 2) I think that another strategy is possible here: to call Thread.setContextClassLoader(null) on the affected threads. That can have its consequences, but might be better than stopping the threads. Workaround: Do not set "timeBetweenEvictionRunsMillis" attribute on a pool. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Other ideas for memory leak protection
Hello all, I wrote a wiki page to try and explain all the causes of webapp classloader leaks one might encounter : http://wiki.apache.org/tomcat/MemoryLeakProtection I'd be glad to have your feedback on it ! While creating the page, I thought about 2 things to improve the protection : 1) to fix leaks like "Webapp class instance indirectly held through a ThreadLocal value" ( http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue ), I think that the only efficient way would be to renew all the threads in the worker pool after an application is stopped. Unfortunately I don't see any way of doing this with the ThreadPoolExecutor that is now used by tomcat 7. We could create a new ThreadPoolExecutor instance, and stop all threads of the old one, but this would have a big performance impact for other running applications... Alternatively, we could clean all ThreadLocals in org.apache.tomcat.util.threads.ThreadPoolExecutor.afterExecute(Runnable, Throwable) . But I don't know the performance impacts that it would have on usual applications. 2) to fix leaks like "Threads spawned by classes loaded by the common classloader" ( http://wiki.apache.org/tomcat/MemoryLeakProtection#cclThreadSpawnedByCommonClassLoader ) while avoiding the side effects of stopping threads (see https://issues.apache.org/bugzilla/show_bug.cgi?id=48971 ), the "expendable classloader" can help. But before trying to provide a patch, I tried to simply nullify the CCL and inheritedAccessControlContext of the "leaking thread" : thread.setContextClassLoader(null); Field field = Thread.class.getDeclaredField("inheritedAccessControlContext"); field.setAccessible(true); field.set(thread, null); I tested it, it works and is much simpler than the "expendable classloader" trick, but I really don't know how safe it is, especially if running with a security manager... What do you think ? Sylvain - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Taglibs [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |27717|New|Maj|2004-03-16| very slow in JSTL 1.1 | |33934|New|Cri|2005-03-09|[standard] memory leak in jstl c:set tag | |38193|Ass|Enh|2006-01-09|[RDC] BuiltIn Grammar support for Field | |38600|Ass|Enh|2006-02-10|[RDC] Enable RDCs to be used in X+V markup (X+RDC)| |42413|New|Nor|2007-05-14|[PATCH] Log Taglib enhancements | |43640|New|Nor|2007-10-16|Move the tests package to JUnit | |45197|Ass|Nor|2008-06-12|Need to support the JSTL 1.2 specification| |46052|New|Nor|2008-10-21|SetLocaleSupport is slow to initialize when many l| |48333|New|Nor|2009-12-02|TLD generator | |48773|New|Nor|2010-02-19|DataSourceWrapper and DriverManager problems | +-+---+---+--+--+ | Total 10 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat 5 [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |27122|Opn|Enh|2004-02-20|IE plugins cannot access components through Tomcat| |28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn | |29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi| |33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis| |33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps| |33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na| |34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a| |34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern| |34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that| |35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc| |36133|Inf|Enh|2005-08-10|Support JSS SSL implementation| |36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi| |36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's | |36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re| |36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing | |37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token| |37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis| |37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user | |37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre| |38216|Inf|Enh|2006-01-10|Extend Jmxproxy to allow call of MBean Operations | |38268|Inf|Enh|2006-01-13|User friendly: Need submit button on adding/deleti| |38360|Inf|Enh|2006-01-24|Domain for session cookies| |38546|Inf|Enh|2006-02-07|Google bot sends invalid If-Modifed-Since Header, | |38577|Inf|Enh|2006-02-08|Enhance logging of security failures | |38743|New|Min|2006-02-21|when using APR, JKS options are silently ignored | |38916|Inf|Enh|2006-03-10|HttpServletRequest cannot handle multipart request| |39053|Inf|Enh|2006-03-21|include Tomcat embedded sample| |39740|New|Enh|2006-06-07|semi-colon ; isn't allowed as a query argument sep| |39862|Inf|Enh|2006-06-22|provide support for protocol-independent GenericSe| |40211|Inf|Enh|2006-08-08|Compiled JSP don't indent HTML code | |40222|Inf|Enh|2006-08-09|Default Tomcat configuration alows easy session hi| |40402|New|Enh|2006-09-03|Manager should display Exceptions | |40510|New|Enh|2006-09-14|installer does not create shortcuts for all users | |40712|New|Enh|2006-10-10|Realm admin error.| |40728|Inf|Enh|2006-10-11|Catalina MBeans use non-serializable classes | |40766|New|Enh|2006-10-16|Using an unsecure jsessionid with mod_proxy_ajp ov| |40881|Opn|Enh|2006-11-02|Unable to receive message through TCP channel -> | |41007|Opn|Enh|2006-11-20|Can't define customized 503 error page| |41179|New|Enh|2006-12-15|400 Bad Request response during auto re-deployment| |41227|Opn|Enh|2006-12-21|When the jasper compiler fails to compile a JSP, i| |41337|Opn|Enh|2007-01-10|Display an error page if no cert is available on C| |41496|New|Enh|2007-01-30|set a security provider for jsse in a connector co| |41498|New|Enh|2007-01-30|allRolesMode Realm configuration option not docume| |41539|Inf|Enh|2007-02-05|NullPointerException during Embedded tomcat restar| |41673|New|Enh|2007-02-21|Jasper output the message of compiling error using| |41697|Ver|Enh|2007-02-25|make visible in debug output if charset from brows| |41709|Inf|Enh|2007-02-26|When calling the API that relates to the buffer af| |41718|New|Enh|2007-02-27|Status 302 response to GET request has no body whe| |42390|New|Maj|2007-05-11|JSP compilation error with nested tagfile tags wit| |42416|New|Enh|2007-05-14|Tomcat startup hangs and AJP13 connector port 8009| |43423|New|Enh|2007-09-18|catalina.sh -force too fast | |43538|
Bug report for Tomcat Connectors [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |34526|Opn|Nor|2005-04-19|Truncated content in decompressed requests from mo| |35959|Opn|Enh|2005-08-01|mod_jk not independant of UseCanonicalName| |36155|Opn|Nor|2005-08-12|tomcat chooses wrong host if using mod_jk | |39967|Inf|Nor|2006-07-05|mod_jk gives segmentation fault when apache is sta| |40208|Inf|Nor|2006-08-08|Request-Dump when ErrorDocument in httpd.conf is a| |41170|Inf|Nor|2006-12-13|single crlf in header termination crashes app.| |41923|Opn|Nor|2007-03-21|Tomcat doesnt recognized client abort | |42366|Inf|Nor|2007-05-09|Memory leak in newer mod_jk version when connectio| |42554|Opn|Nor|2007-05-31|mod_ssl + mod_jk with status_worker does not work | |43303|New|Enh|2007-09-04|Versioning under Windows not reported by many conn| |43968|New|Enh|2007-11-26|[patch] support ipv6 with mod_jk | |44290|New|Nor|2008-01-24|mod_jk/1.2.26: retry is not useful for an importan| |44349|New|Maj|2008-02-04|mod_jk/1.2.26 module does not read worker.status.s| |44379|New|Enh|2008-02-07|convert the output of strftime into UTF-8 | |44454|New|Nor|2008-02-19|busy count reported in mod_jk inflated, causes inc| |44571|New|Enh|2008-03-10|Limits busy per worker to a threshold | |45063|New|Nor|2008-05-22|JK-1.2.26 IIS ISAPI filter issue when running diff| |45313|New|Nor|2008-06-30|mod_jk 1.2.26 & apache 2.2.9 static compiled on so| |45395|New|Min|2008-07-14|MsgAjp dump method does not dump packet when being| |46337|New|Nor|2008-12-04|real worker name is wrong | |46406|New|Enh|2008-12-16|Supporting relative paths in isapi_redirect.proper| |46676|New|Enh|2009-02-09|Configurable test request for Watchdog thread | |46767|New|Enh|2009-02-25|mod_jk to send DECLINED in case no fail-over tomca| |47038|New|Enh|2009-04-15|USE_FLOCK_LK redefined compiler warning when using| |47327|New|Enh|2009-06-07|remote_user not logged in apache logfile | |47617|New|Enh|2009-07-31|include time spent doing ajp_get_endpoint() in err| |47678|New|Nor|2009-08-11|Unable to allocate shared memory when using isapi_| |47679|New|Nor|2009-08-11|Not all headers get passed to Tomcat server from i| |47692|New|Reg|2009-08-12|Can not compile mod_jk with apache2.0.63 and tomca| |47714|New|Cri|2009-08-20|Reponse mixed between users | |47750|New|Maj|2009-08-27|Loss of worker settings when changing via jkstatus| |47795|New|Maj|2009-09-07|service sticky_session not being set correctly wit| |47840|New|Min|2009-09-14|A broken worker name is written in the log file. | |48191|New|Maj|2009-11-13|Problem with mod_jk 1.2.28 - Can not render up the| |48490|New|Nor|2010-01-05|Changing a node to stopped in uriworkermap.propert| |48501|New|Enh|2010-01-07|Log rotation for ISAPI Redirector | |48513|New|Enh|2010-01-09|IIS Quick setup instructions | |48564|New|Nor|2010-01-18|Unable to turn off retries for LB worker | |48830|New|Nor|2010-03-01|IIS shutdown blocked in endpoint service when serv| |48882|New|Maj|2010-03-10|win32 binary for mod_jk 1.2.30 and Apache 2.0.x | |48925|New|Maj|2010-03-16|((ServletRequest) request).getLocalAddr() returns | |48940|New|Maj|2010-03-18|IIS to Tomcat occasionally fails on POST with T-E | +-+---+---+--+--+ | Total 42 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat 7 [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |48222|New|Enh|2009-11-18|Source JARs empty in maven central| |48240|New|Nor|2009-11-19|Tomcat-Lite missing @Override markers | |48268|New|Nor|2009-11-23|Patch to fix generics in tomcat-lite | |48297|New|Nor|2009-11-28|webservices.ServiceRefFactory.initHandlerChain add| |48358|New|Enh|2009-12-09|JSP-unloading reloaded| |48550|New|Enh|2010-01-14|Update examples and default server.xml to use UTF-| |48644|New|Nor|2010-01-30|Code should never ignore throwable| |48648|New|Nor|2010-01-31|Blank page (dropped connection) when running TC7 w| |48689|New|Enh|2010-02-05|Jar abstraction for Jasper| |48692|New|Enh|2010-02-07|Provide option to parse application/x-www-form-url| |48817|New|Nor|2010-02-25|Skip validation query and use JDBC API for validat| |48837|New|Enh|2010-03-01|Memory leaks protection does not cure leaks trigge| |48861|New|Nor|2010-03-04|Files without AL headers | |48870|New|Enh|2010-03-08|avoid parallel arrays of base types | |48891|New|Enh|2010-03-11|Missing EOL-style settings in tomcat/jk/trunk | |48892|New|Nor|2010-03-11|Use URIEncoding from server.xml for decoding post | |48914|New|Nor|2010-03-15|EL MethodExpression behavior incorrect| |48983|New|Nor|2010-03-24|Enhance RemoteIpValve and RemoteIpFilter logging | |48998|New|Enh|2010-03-26|Proposal : port mod_expires in java as ExpiresFilt| |49000|New|Nor|2010-03-26|Cookie parsing bug when an empty value has an equa| +-+---+---+--+--+ | Total 20 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat 6 [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |39661|Opn|Enh|2006-05-25|Please document JULI FileHandler configuration pro| |41128|Inf|Enh|2006-12-07|Reference to java Thread name from RequestProcesso| |41679|New|Enh|2007-02-22|SemaphoreValve should be able to filter on url pat| |41791|New|Enh|2007-03-07|Tomcat behaves inconsistently concerning flush-pac| |41883|Ass|Enh|2007-03-18|use abstract wrapper instead of plain X509Certific| |41944|New|Enh|2007-03-25|Start running the RAT tool to see where we're miss| |41992|New|Enh|2007-03-30|Need ability to set OS process title | |42463|New|Enh|2007-05-20|"crossContext" and classloader issues - pls amend | |43001|New|Enh|2007-07-30|JspC lacks setMappedFile and setDie for use in Ant| |43003|New|Enh|2007-07-30|Separate dependent component download and build ta| |43400|New|Enh|2007-09-14|enum support for tag libs | |43497|New|Enh|2007-09-26|Add ability to escape rendered output of JSP expre| |43548|Opn|Enh|2007-10-04|xml schema for tomcat-users.xml | |43642|New|Enh|2007-10-17|Add prestartminSpareThreads attribute for Executor| |43682|New|Enh|2007-10-23|JULI: web-inf/classes/logging.properties to suppor| |43742|New|Enh|2007-10-30|.tag compiles performed one at a time -- extremel| |43790|Ass|Enh|2007-11-03|concurrent access issue on TagHandlerPool | |43979|New|Enh|2007-11-27|Add abstraction for Java and Classfile output | |44047|New|Enh|2007-12-10|Provide a way for Tomcat to serve up error pages w| |44106|New|Enh|2007-12-19|autodeploy configures directories which do not con| |44199|New|Enh|2008-01-10|expose current backlog queue size | |44225|New|Enh|2008-01-14|SSL connector tries to load the private keystore f| |44264|New|Enh|2008-01-18|Clustering - Support for disabling multicasting an| |44284|New|Enh|2008-01-23|Support java.lang.Iterable in c:forEach tag | |44294|New|Enh|2008-01-25|Support for EL functions with varargs | |44299|New|Enh|2008-01-26|Provider manager app with a log out button| |44312|New|Enh|2008-01-28|Warn when overwritting docBase of the default Host| |44598|New|Enh|2008-03-13|JAASRealm is suppressing Exceptions | |44645|New|Enh|2008-03-20|[Patch] JNDIRealm - Doesn't support JNDI "java.nam| |44787|New|Enh|2008-04-09|provide more error context on "java.lang.IllegalSt| |44818|New|Enh|2008-04-13|tomcat hangs with GET when content-length is defin| |45014|New|Enh|2008-05-15|Request and Response classes should have wrappers | |45015|Opn|Nor|2008-05-16|Quoting in attributes | |45282|New|Enh|2008-06-25|NioReceiver doesn't close cleanly, leaving sockets| |45283|Opn|Enh|2008-06-25|Allow multiple authenticators to be added to pipel| |45428|New|Enh|2008-07-18|warn if the tomcat stop doesn't complete | |45654|New|Enh|2008-08-19|use static methods and attributes in a direct way!| |45731|New|Enh|2008-09-02|Enhancement request : pluggable httpsession cache | |45832|New|Enh|2008-09-18|add DIGEST authentication support to Ant tasks| |45871|New|Enh|2008-09-23|Support for salted and digested patches in DataSou| |45878|New|Enh|2008-09-24|Generated jars do not contain proper manifests or | |45879|Opn|Enh|2008-09-24|Windows installer fails to install NOTICE and RELE| |45931|Opn|Enh|2008-10-01|trimSpaces incorrectly modifies output| |45995|New|Enh|2008-10-13|RFE - MIME type extension not case sensitive | |46173|New|Enh|2008-11-09|Small patch for manager app: Setting an optional c| |46263|New|Enh|2008-11-21|Tomcat reloading of context does not update contex| |46264|New|Enh|2008-11-21|Shutting down tomcat with large number of contexts| |46284|New|Enh|2008-11-24|Add flag to DeltaManager that blocks processing cl| |46350|New|Enh|2008-12-05|Maven repository should contain source bundles| |46451|New|Enh|2008-12-30|Configure svn:bugtraq properties | |46461|New|Enh|2009-01-01|fail graceful on dns changes for connectors/hosts | |46497|
Bug report for Tomcat Native [2010/03/28]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |38372|Inf|Cri|2006-01-25|tcnative-1.dll response overflow corruption, parti| |41361|New|Nor|2007-01-14|Content lost when read by a slow client. | |42090|New|Cri|2007-04-11|tcnative badly handles some OpenSSL disconnections| |45392|New|Nor|2008-07-14|No OCSP support for client SSL verification | |46041|New|Cri|2008-10-20|Tomcat service is terminated unexpectedly (tcnativ| |46179|New|Maj|2008-11-10|apr ssl client authentication | |46571|New|Nor|2009-01-21|tcnative blocks in APR poll on Solaris| |47319|New|Nor|2009-06-05|With APR, getRemoteHost() returns NULL for unknown| |47851|New|Nor|2009-09-16|thread-safety issues in the TC native Java code | |48253|New|Min|2009-11-20|Tomcat Native patch - adding dynamic locking callb| |48584|New|Min|2010-01-20|Error or ACCESS_VIOLATION on shutdown | |48655|New|Nor|2010-02-02|Active multipart downloads prevent tomcat shutdown| +-+---+---+--+--+ | Total 12 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 49014] New: Add RemoteIpFilter test case
https://issues.apache.org/bugzilla/show_bug.cgi?id=49014 Summary: Add RemoteIpFilter test case Product: Tomcat 7 Version: trunk Platform: PC OS/Version: Mac OS X 10.4 Status: NEW Severity: normal Priority: P2 Component: Catalina AssignedTo: dev@tomcat.apache.org ReportedBy: clecl...@apache.org Created an attachment (id=25204) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25204) TestRemoteIpFilter.java I didn't attach test cases to the RemoteIpFilter when I proposed it because I didn't know how to use the embedded Tomcat. I learned how to use it so here are the test cases. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928599 - /tomcat/trunk/res/side_left.bmp
Author: mturk Date: Mon Mar 29 05:46:57 2010 New Revision: 928599 URL: http://svn.apache.org/viewvc?rev=928599&view=rev Log: New installer side graphics. Artwork provided by Adela Turk Modified: tomcat/trunk/res/side_left.bmp Modified: tomcat/trunk/res/side_left.bmp URL: http://svn.apache.org/viewvc/tomcat/trunk/res/side_left.bmp?rev=928599&r1=928598&r2=928599&view=diff == Binary files - no diff available. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org