svn commit: r928370 - /tomcat/trunk/java/org/apache/catalina/util/LifecycleBase.java

2010-03-28 Thread markt
Author: markt
Date: Sun Mar 28 10:07:42 2010
New Revision: 928370

URL: http://svn.apache.org/viewvc?rev=928370view=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=928370r1=928369r2=928370view=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

2010-03-28 Thread Apache Wiki
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=diffrev1=10rev2=11

--

   1. Set the `URIEncoding` attribute on the Connector element in server.xml 
to something specific (e.g. `URIEncoding=UTF-8`).
   1. Set the `useBodyEncodingForURI` attribute on the Connector 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]]
  
  Anchor(Q3)'''How do I change how POST parameters are interpreted?'''
  
@@ -85, +85 @@

  
   1. Set URIEncoding=UTF-8 on your Connector 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

2010-03-28 Thread Apache Wiki
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:'''

FullSearch()


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

2010-03-28 Thread Apache Wiki
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=diffrev1=26rev2=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/Class_Not_Found by KonstantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=10rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=11rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=3rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=10rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=3rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=6rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=9rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=85rev2=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/Linux_Unix by K onstantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=5rev2=6

--

  
  This is a common complaint when using Solaris. Make sure you use {{{nohup}}} 
and see 
[[http://marc.theaimsgroup.com/?l=tomcat-userm=104809785114238w=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/Logging by Konsta ntinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=16rev2=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



DO NOT REPLY [Bug 48662] context.xml expansion on deployment improvements

2010-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48662

Mark Thomas ma...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #2 from Mark Thomas ma...@apache.org 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

2010-03-28 Thread markt
Author: markt
Date: Sun Mar 28 11:57:59 2010
New Revision: 928381

URL: http://svn.apache.org/viewvc?rev=928381view=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=928381r1=928380r2=928381view=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./p
 tr
 td bgcolor=#828DA6
 font color=#ff face=arial,helvetica,sanserif
+a name=Deployment
+strongDeployment/strong
+/a
+/font
+/td
+/tr
+tr
+td
+blockquote
+  
+pXML context descriptors are no longer extracted from deployed WARs and
+directories and copied to the host's codexmlBase/code. The default
+Tomcat 6 behavior can be enabled by setting the codecopyXML/code
+attribute of the host to codetrue/code./p
+
+  /blockquote
+/td
+/tr
+tr
+td
+br/
+/td
+/tr
+/table
+  
+  table border=0 cellspacing=0 cellpadding=2 width=100%
+tr
+td bgcolor=#828DA6
+font color=#ff face=arial,helvetica,sanserif
 a name=Manager application
 strongManager application/strong
 /a

Modified: tomcat/site/trunk/xdocs/migration.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/migration.xml?rev=928381r1=928380r2=928381view=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./p
 
   /subsection
 
+  subsection name=Deployment
+  
+pXML context descriptors are no longer extracted from deployed WARs and
+directories and copied to the host's codexmlBase/code. The default
+Tomcat 6 behavior can be enabled by setting the codecopyXML/code
+attribute of the host to codetrue/code./p
+
+  /subsection
+  
   subsection name=Manager application
   
 pThe 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

2010-03-28 Thread Apache Wiki
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=diffrev1=8rev2=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/Miscellaneous by KonstantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=17rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=5rev2=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 FAQ/Security by Konst antinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=6rev2=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 FAQ/Tomcat_User by KonstantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=3rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=7rev2=8

--

  
  See also the `service.bat` file that comes in the `*-windows-arch.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



[Tomcat Wiki] Update of FAQ/CharacterEncoding by Kons tantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=12rev2=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 @@

  Anchor(Q3)'''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.
  
- Anchor(Q8)'''What can you recommend to just make everything work?'''
+ Anchor(Q8)'''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 Connector 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 Connector 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 {{{jsp:directive.page contentType=text/html; 
charset=UTF-8 /}}} 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.
  
  Anchor(Q9)'''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

2010-03-28 Thread Apache Wiki
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=diffrev1=13rev2=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 ===
+ 
  Anchor(Q1)'''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]]
  
- Anchor(Q2)'''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 Connector element in server.xml 
to something specific (e.g. `URIEncoding=UTF-8`).
-  1. Set the `useBodyEncodingForURI` attribute on the Connector 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]]
- 
- Anchor(Q3)'''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
- }}}
- 
- Anchor(Q4)'''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 %
- !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
- html
-head
-  titleCharacter encoding test page/title
-/head
-body
-  pData posted to this form was:
-  %
-request.setCharacterEncoding(UTF-8);
-out.print(request.getParameter(mydata));
-  %
- 
-  /p
-  form method=POST action=index.jsp
-input type=text name=mydata
-input type=submit value=Submit /
-input type=reset value=Reset /
-  /form
-/body
- /html
- }}}
- 
- Anchor(Q8)'''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.
- 
- Anchor(Q8)'''What can you recommend to just make everything work? -- How 
to use 

[Tomcat Wiki] Trivial Update of FAQ/CharacterEncoding by KonstantinKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=14rev2=15

--

  References: 
[[http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1|HTTP 1.1 
Specification, Section 3.7.1]]
  
  
- 
+ BR
  
  Anchor(Q9)'''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]]
  
  
- 
+ BR
  
  Anchor(Q3)'''How do I change how POST parameters are interpreted?'''
  
@@ -99, +98 @@

  }}}
  
  
- 
+ BR
  
  Anchor(Q8)'''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.
  
  
- 
+ BR
  
  Anchor(Q4)'''How can I test if my configuration will work correctly?'''
  
@@ -147, +146 @@

  }}}
  
  
- 
+ BR
  
  Anchor(Q6)'''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

2010-03-28 Thread Apache Wiki
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=diffrev1=13rev2=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:
- 
- {{{  !--CharsetFilter start--
- 
-   filter
- filter-nameCharset Filter/filter-name
- filter-classCharsetFilter/filter-class
-   init-param
- param-namerequestEncoding/param-name
- param-valueUTF-8/param-value
-   /init-param
-   /filter
- 
-   filter-mapping
- filter-nameCharset Filter/filter-name
- url-pattern/*/url-pattern
-   /filter-mapping
- 
-   !--CharsetFilter end--}}}
- 
- 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:
- 
- {{{Connector port=8080
-URIEncoding=UTF-8/}}}
- 
- or
- 
- {{{Connector port=8080
-useBodyEncodingForURI=true/}}}
- 
-  * ''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 ==
-  * 

Re: Async one thing left

2010-03-28 Thread Filip Hanik - Dev Lists

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

2010-03-28 Thread Apache Wiki
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:'''

FullSearch()


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

2010-03-28 Thread Apache Wiki
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=diffrev1=6rev2=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 ==
  Anchor(Q1)'''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-userm=106036177509367w=2|see for 
yourself]].
  
+ 
+ BR
+ 
  Anchor(Q2)'''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]].
+ 
+ 
+ BR
  
  Anchor(Q3)'''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]].
  
+ 
+ BR
+ 
+ Anchor(Q4)'''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

2010-03-28 Thread Apache Wiki
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=diffrev1=11rev2=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 ==
  
  Anchor(Q1)'''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.
+ 
+ 
+ BR
  
  Anchor(Q2)'''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.
+ 
+ 
+ BR
  
  Anchor(Q3)'''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)
  
+ 
+ BR
+ 
  Anchor(Q4)'''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.
+ 
+ 
+ BR
  
  Anchor(Q5)'''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. 
  
+ 
+ BR
+ 
  Anchor(Q6)'''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]].
+ 
+ 
+ BR
  
  Anchor(Q7)'''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]]
  
+ 
+ BR
+ 
  Anchor(Q8)'''I'm having strange UTF-8 issues with my request 
parameters.'''
  
- See [[FAQ/CharacterEncoding|Character Encoding]]
+ See [[../CharacterEncoding|Character Encoding]]
+ 
+ 
+ BR
+ 
+ Anchor(Q9)'''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: 

[Tomcat Wiki] Update of FAQ/Miscellaneous by Konstant inKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=18rev2=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 ==
+ 
  Anchor(Q1)'''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.
  
+ 
+ BR
+ 
  Anchor(Q2)'''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-userm=103417249925541w=2|(SECURITY) 
Apache Tomcat 4.x JSP source disclosure]] vulnerability
   * [[http://marc.theaimsgroup.com/?t=10394533713r=1w=2|Cannot Run 
Servlets, only JSP's, Part II]]
   * [[http://marc.theaimsgroup.com/?t=10432685411r=1w=2|Tomcat 
configuration problem: JSPs work, servlets don]]
+ 
+ 
+ BR
  
  Anchor(Q3)'''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]].
  
+ 
+ BR
+ 
  Anchor(Q4)'''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.
+ 
+ 
+ BR
  
  Anchor(Q5)'''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]]
+ 
+ 
+ BR
  
  Anchor(Q6)'''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.
  
+ 
+ BR
+ 
  Anchor(Q7)'''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-userm=105341005928071w=2|More info]]
  
+ 
+ BR
+ 
  Anchor(Q8)'''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)]]
  
- Anchor(Q9)'''How do I disable tag pooling?'''
  
+ BR
- 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.
  
  Anchor(Q10)'''Is there a DTD for 

[Tomcat Wiki] Update of TomcatFAQ by KonstantinKolink o

2010-03-28 Thread Apache Wiki
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=diffrev1=17rev2=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=290568forum=33message=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

2010-03-28 Thread Apache Wiki
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=diffrev1=27rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=2rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=8rev2=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 
- 
- {{{ Connector className=org.apache.coyote.tomcat4.CoyoteConnector } } } 
-port='''0''' minProcessors=5 maxProcessors=75 
-enableLookups=true redirectPort=8443 
-acceptCount=10 debug=0 connectionTimeout=0 
-  useURIValidationHack=false 
-
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
- }}}
- 
- 
- 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 
-  VirtualHost ... 
-  ServerName ''vhost'' 
-  

[Tomcat Wiki] Trivial Update of UsingPhp by Konstanti nKolinko

2010-03-28 Thread Apache Wiki
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=diffrev1=19rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=6rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=5rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=6rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=28rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=13rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=22rev2=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  extracted files
- 
- #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:
- 
- ?xml version='1.0' encoding='utf-8'?
- tomcat-users
-role rolename=tomcat/
-role rolename=role1/
-user username=tomcat password=tomcat roles=tomcat/
-user username=both password=tomcat roles=tomcat,role1/
-user username=role1 password=tomcat roles=role1/
- /tomcat-users
- 
- 
- An example of what it *SHOULD* look like follows:
- 
- ?xml version='1.0' encoding='utf-8'?
- tomcat-users
-   role rolename=tomcat/
-   role rolename=role1/
-   role rolename=manager/
-   role rolename=admin/
-   user username=tomcat password=tomcat roles=tomcat,admin,manager/
-   user username=both password=tomcat roles=tomcat,role1/
-   user username=role1 password=tomcat roles=role1/
- /tomcat-users
- 
- 
- 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 - 

Interested in GSOC ideas

2010-03-28 Thread Mahesh Fernando
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

2010-03-28 Thread Apache Wiki
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=diffrev1=4rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=86rev2=87

--

+ TableOfContents
- '''Originally taken from: http://wiki.apache.org/jakarta-tomcat/Tomcat/Howto  
'''
- 
- 
- '''Contents''' TableOfContents
  
  
  

-
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

2010-03-28 Thread Apache Wiki
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=diffrev1=3rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=3rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=4rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=14rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=5rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=4rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=2rev2=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:
- PageList(^Category.*)
+ PageList(regex:^Category.*)
  
  Here is a list of all pages containing the CategoryCategory wiki tag:
- FullSearch
+ FullSearch()
  
  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

2010-03-28 Thread Apache Wiki
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=diffrev1=51rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=2rev2=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

2010-03-28 Thread Apache Wiki
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=diffrev1=4rev2=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



DO NOT REPLY [Bug 48997] enhance ssl-howto documentation

2010-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48997

Mark Thomas ma...@apache.org changed:

   What|Removed |Added

   Severity|normal  |enhancement

--- Comment #1 from Mark Thomas ma...@apache.org 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

2010-03-28 Thread markt
Author: markt
Date: Sun Mar 28 19:34:12 2010
New Revision: 928482

URL: http://svn.apache.org/viewvc?rev=928482view=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=928482r1=928481r2=928482view=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

2010-03-28 Thread markt
Author: markt
Date: Sun Mar 28 19:40:16 2010
New Revision: 928483

URL: http://svn.apache.org/viewvc?rev=928483view=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=928483r1=928482r2=928483view=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=927621view=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=928482view=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

2010-03-28 Thread markt
Author: markt
Date: Sun Mar 28 19:42:21 2010
New Revision: 928484

URL: http://svn.apache.org/viewvc?rev=928484view=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=928484r1=928483r2=928484view=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=928482view=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

2010-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48717

--- Comment #1 from Mark Thomas ma...@apache.org 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 48810] error handler chain doesn't show errors on tag files compilation

2010-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48810

Mark Thomas ma...@apache.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME

--- Comment #1 from Mark Thomas ma...@apache.org 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

2010-03-28 Thread Apache Wiki
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=diffrev1=9rev2=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
   * 
Anchor(48837)[[https://issues.apache.org/bugzilla/show_bug.cgi?id=48837|48837]]
 - Memory leaks protection does not cure leaks triggered by JSP pages code
   * 
Anchor(48895)[[https://issues.apache.org/bugzilla/show_bug.cgi?id=48895|48895]]
 - !WebAppClassLoader.clearThreadLocalMap() concurrency issues
-  * 
+  * 
Anchor(48971)[[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

2010-03-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48971

--- Comment #5 from Konstantin Kolinko knst.koli...@gmail.com 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

2010-03-28 Thread Sylvain Laurent
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]

2010-03-28 Thread bugzilla
+---+
| 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|x:forEach 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]

2010-03-28 Thread bugzilla
+---+
| 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   |

Bug report for Tomcat Connectors [2010/03/28]

2010-03-28 Thread bugzilla
+---+
| 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]

2010-03-28 Thread bugzilla
+---+
| 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]

2010-03-28 Thread bugzilla
+---+
| 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 |

Bug report for Tomcat Native [2010/03/28]

2010-03-28 Thread bugzilla
+---+
| 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

2010-03-28 Thread bugzilla
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

2010-03-28 Thread mturk
Author: mturk
Date: Mon Mar 29 05:46:57 2010
New Revision: 928599

URL: http://svn.apache.org/viewvc?rev=928599view=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=928599r1=928598r2=928599view=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