Problem using maven jspc plugin with tomcat 7 and jstl

2009-12-13 Thread David Jencks
Jar scanning for tld files seems to have been refactored recently in  
rev 817685 (sept 22 2009) with the introduction of the jasper  
JarScannerFactory.


I'm getting a stack trace:

[INFO] [jspc:compile {execution: default}]
Created dir: /Users/david/projects/geronimo/server/trunk/plugins/ 
activemq/activemq-portlets/target/jsp-source
[INFO] Compiling JSP source files to /Users/david/projects/geronimo/ 
server/trunk/plugins/activemq/activemq-portlets/target/jsp-source
[INFO]  


[ERROR] FATAL ERROR
[INFO]  

[INFO] The absolute uri: http://java.sun.com/jsp/jstl/core cannot be  
resolved in either web.xml or the jar files deployed with this  
application
[INFO]  


[INFO] Trace
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core 
 cannot be resolved in either web.xml or the jar files deployed with  
this application
at  
org 
.apache 
.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java: 
51)
at  
org 
.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java: 
409)
at  
org 
.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java: 
116)
at  
org 
.apache 
.jasper 
.compiler 
.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:322)
at  
org 
.apache 
.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:154)
at  
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:430)
at  
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
at  
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1440)

at org.apache.jasper.compiler.Parser.parse(Parser.java:136)
at  
org 
.apache.jasper.compiler.ParserController.doParse(ParserController.java: 
239)
at  
org 
.apache.jasper.compiler.ParserController.parse(ParserController.java: 
103)
at  
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java: 
333)

at org.apache.jasper.JspC.processFile(JspC.java:1005)
at org.apache.jasper.JspC.execute(JspC.java:1154)
at  
org 
.codehaus 
.mojo 
.jspc.compiler.tomcat6.JspCompilerImpl.compile(JspCompilerImpl.java:111)


(we've configured the jspc plugin to use jasper from tomcat 7)

The jsp generation used to work fine with tomcat 6.0.20.

 It looks to me as if the problem is that no JarScanner is installed  
in the ServletContext used by JspC.  (There definitely isn't one  
installed, and I think that is the cause of the problem).  So, jasper  
cant find the jstl jar which is in the classloader all this is running  
with.


I don't see how it would be possible for a JarScanner to get installed  
so I'm wondering if there is a bug and what a way to fix it or work  
around it might be.


JspC.execute has at line 1115

if( context==null ) {
initServletContext();
}


and proceeds directly to call processFile at line 1154 leading to the  
error.

Going back a bit

protected void initServletContext() {
try {
context =new JspCServletContext
(new PrintWriter(System.out),
 new URL("file:" + uriRoot.replace('\\','/') + '/'));
tldLocationsCache = new TldLocationsCache(context);

sets the context and supplies it to TkdLocationsCache which eventually  
goes fishing for the JarScanner.


I don't see any opportunities for integration code to add a JarScanner  
to the context without subclassing perhaps JspC.


Before proposing any code changes it would be great to have some  
advice on how this is supposed to work and confirmation that my  
theories on what is wrong are reasonable.


thanks
david jencks


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Tomcat Wiki] Update of "PoweredBy" by Björn Hahne feld

2009-12-13 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "PoweredBy" page has been changed by Björn Hahnefeld.
http://wiki.apache.org/tomcat/PoweredBy?action=diff&rev1=213&rev2=214

--

  
  = björn hahnefeld IT TC_Framework =
  {{http://www.hahnefeld.de/images/archive/small.jpg}}
- "björn hahnefeld IT TC_Framework" [[http://www.hahnefeld.de|björn hahnefeld 
IT]] runs on Tomcat. It is a Framework for the ATOSS employee portal with runs 
on Tomcat too. Hosting-Plans for the  "björn hahnefeld IT TC_Framework" can be 
booked under [[http://www.hahnefeld.de/internet-services_server.html|TomCat 
Co-Location and Serverhousing]].
+ "björn hahnefeld IT TC_Framework" [[http://www.hahnefeld.de|björn hahnefeld 
IT]] runs on Tomcat. It is a Framework for the ATOSS employee portal with runs 
on Tomcat too. Hosting-Plans for the  "björn hahnefeld IT TC_Framework" can be 
booked under [[http://www.hahnefeld.de/internet-services_server.html|TomCat 
Co-Location and Serverhousing]]. The "björn hahnefeld IT TC_Framework" for 
project and time control is live in action in two companies at the moment: 
[[http://www.schoen-alarm.at|Gerald Schön Elektro- & Sicherheitstechnik]] and 
[[http://www.konstruktionsbuero-dos.de|Konstruktionsbüro DOS]].
  
  = Duramental Shop =
  {{http://www.duramental.de/images/logo/meria.gif}}

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r890101 - /tomcat/trunk/java/org/apache/tomcat/jdbc/

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 19:41:38 2009
New Revision: 890101

URL: http://svn.apache.org/viewvc?rev=890101&view=rev
Log:
Remove empty dir

Removed:
tomcat/trunk/java/org/apache/tomcat/jdbc/


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Problem using maven jspc plugin with tomcat 7 and jstl

2009-12-13 Thread Mark Thomas
On 13/12/2009 09:50, David Jencks wrote:
>  It looks to me as if the problem is that no JarScanner is installed in
> the ServletContext used by JspC.  (There definitely isn't one installed,
> and I think that is the cause of the problem).  So, jasper cant find the
> jstl jar which is in the classloader all this is running with.

Your analysis looks spot on to me.

> I don't see how it would be possible for a JarScanner to get installed
> so I'm wondering if there is a bug and what a way to fix it or work
> around it might be.

Yep, it's a bug.

> Before proposing any code changes it would be great to have some advice
> on how this is supposed to work and confirmation that my theories on
> what is wrong are reasonable.

The motivation behind the original change was to:
- make TLD handling consistent between Jasper and Tomcat (there are some
edge case anomalies in 6.0.x)
- reduce code duplication (there is still a lot of duplication between
TldLocationCache and o.a.c.startup.TldConfig)

Something to keep in mind is that Jasper should not have any
dependencies on Tomcat. At the moment, there are a few shared interfaces
in o.a.tomcat but no implementation.

The options I can think of off-hand are:
- refactor the DefaultJarScanner to o.a.tomcat (or a sub-package) and
add it to the tomcat-api.jar (maybe rename the jar)
- copy the DefaultJarScanner to the o.a.jasper package

The second option is the simplest but I like the first as it provides a
basis for removing some of the other duplication (eg around TLDs)
between Tomcat core and Jasper.

Mark



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r890139 - in /tomcat/trunk: java/org/apache/el/lang/ELSupport.java test/org/apache/el/lang/TestELSupport.java

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 22:48:20 2009
New Revision: 890139

URL: http://svn.apache.org/viewvc?rev=890139&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43656
Correctly coerce null to zero when Number is the required type.

Modified:
tomcat/trunk/java/org/apache/el/lang/ELSupport.java
tomcat/trunk/test/org/apache/el/lang/TestELSupport.java

Modified: tomcat/trunk/java/org/apache/el/lang/ELSupport.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/ELSupport.java?rev=890139&r1=890138&r2=890139&view=diff
==
--- tomcat/trunk/java/org/apache/el/lang/ELSupport.java (original)
+++ tomcat/trunk/java/org/apache/el/lang/ELSupport.java Sun Dec 13 22:48:20 2009
@@ -284,6 +284,9 @@
 if (Float.TYPE == type || Float.class.equals(type)) {
 return new Float(number.floatValue());
 }
+if (Number.class.equals(type)) {
+return number;
+}
 
 throw new IllegalArgumentException(MessageFactory.get("error.convert",
 number, number.getClass(), type));

Modified: tomcat/trunk/test/org/apache/el/lang/TestELSupport.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/lang/TestELSupport.java?rev=890139&r1=890138&r2=890139&view=diff
==
--- tomcat/trunk/test/org/apache/el/lang/TestELSupport.java (original)
+++ tomcat/trunk/test/org/apache/el/lang/TestELSupport.java Sun Dec 13 22:48:20 
2009
@@ -62,6 +62,11 @@
 assertEquals(input, output);
 }
 
+public void testCoerceNullToNumber() {
+Object output = ELSupport.coerceToType(null, Number.class);
+assertEquals(Long.valueOf(0), output);
+}
+
 private static void testIsSame(Object value) {
 assertEquals(value, ELSupport.coerceToNumber(value, value.getClass()));
 }



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r890140 - /tomcat/tc6.0.x/trunk/STATUS.txt

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 22:51:00 2009
New Revision: 890140

URL: http://svn.apache.org/viewvc?rev=890140&view=rev
Log:
Proposal

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=890140&r1=890139&r2=890140&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Sun Dec 13 22:51:00 2009
@@ -497,3 +497,9 @@
   http://svn.apache.org/viewvc?rev=889716&view=rev
   +1: markt
   -1: 
+
+* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43656
+  Coerce null to zero when target type in Number
+  http://svn.apache.org/viewvc?rev=890139&view=rev
+  +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 43656] ELSupport.coerceToType won't handle null for java.lang.Number

2009-12-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=43656

--- Comment #28 from Mark Thomas  2009-12-13 14:51:18 GMT ---
Thanks for the test case. This has been fixed in trunk and proposed for 6.0.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



svn commit: r890141 - /tomcat/trunk/webapps/docs/config/host.xml

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 23:03:32 2009
New Revision: 890141

URL: http://svn.apache.org/viewvc?rev=890141&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48381
Add a note about case of host name

Modified:
tomcat/trunk/webapps/docs/config/host.xml

Modified: tomcat/trunk/webapps/docs/config/host.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/host.xml?rev=890141&r1=890140&r2=890141&view=diff
==
--- tomcat/trunk/webapps/docs/config/host.xml (original)
+++ tomcat/trunk/webapps/docs/config/host.xml Sun Dec 13 23:03:32 2009
@@ -146,11 +146,12 @@
 
   
 Network name of this virtual host, as registered in your
-Domain Name Service server.  One of the Hosts nested within
-an Engine MUST have a name that matches the
-defaultHost setting for that Engine.  See
-Host Name Aliases for information
-on how to assign more than one network name to the same
+Domain Name Service server. Regardless of the case used to
+specify the hostname, Tomcat will convert it to lower case internally.
+One of the Hosts nested within an Engine MUST
+have a name that matches the defaultHost setting for that
+Engine.  See Host Name Aliases for
+information on how to assign more than one network name to the same
 virtual host.
   
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r890142 - in /tomcat/tc6.0.x/trunk/webapps/docs: changelog.xml config/host.xml

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 23:06:21 2009
New Revision: 890142

URL: http://svn.apache.org/viewvc?rev=890142&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48381
Add a note about case of host name

Modified:
tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml

Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?rev=890142&r1=890141&r2=890142&view=diff
==
--- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Sun Dec 13 23:06:21 2009
@@ -485,6 +485,10 @@
 Do not reuse windows (tabs) for session detail pages in Manager
 application. (kkolinko)
   
+  
+48381: Add information on how Tomcat treats host names to 
the
+host configuration documentation. (markt)
+  
 
   
   

Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml?rev=890142&r1=890141&r2=890142&view=diff
==
--- tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/config/host.xml Sun Dec 13 23:06:21 2009
@@ -127,11 +127,12 @@
 
   
 Network name of this virtual host, as registered in your
-Domain Name Service server.  One of the Hosts nested within
-an Engine MUST have a name that matches the
-defaultHost setting for that Engine.  See
-Host Name Aliases for information
-on how to assign more than one network name to the same
+Domain Name Service server. Regardless of the case used to
+specify the hostname, Tomcat will convert it to lower case internally.
+One of the Hosts nested within an Engine MUST
+have a name that matches the defaultHost setting for that
+Engine.  See Host Name Aliases for
+information on how to assign more than one network name to the same
 virtual host.
   
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r890143 - in /tomcat/tc5.5.x/trunk/container/webapps/docs: changelog.xml config/host.xml

2009-12-13 Thread markt
Author: markt
Date: Sun Dec 13 23:07:16 2009
New Revision: 890143

URL: http://svn.apache.org/viewvc?rev=890143&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48381
Add a note about case of host name

Modified:
tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml
tomcat/tc5.5.x/trunk/container/webapps/docs/config/host.xml

Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml?rev=890143&r1=890142&r2=890143&view=diff
==
--- tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml (original)
+++ tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml Sun Dec 13 
23:07:16 2009
@@ -151,6 +151,10 @@
 47656: Add information to documentation on system property
 replacement in configuration files. (markt)
   
+  
+48381: Add information on how Tomcat treats host names to 
the
+host configuration documentation. (markt)
+  
 
   
 

Modified: tomcat/tc5.5.x/trunk/container/webapps/docs/config/host.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/webapps/docs/config/host.xml?rev=890143&r1=890142&r2=890143&view=diff
==
--- tomcat/tc5.5.x/trunk/container/webapps/docs/config/host.xml (original)
+++ tomcat/tc5.5.x/trunk/container/webapps/docs/config/host.xml Sun Dec 13 
23:07:16 2009
@@ -129,11 +129,12 @@
 
   
 Network name of this virtual host, as registered in your
-Domain Name Service server.  One of the Hosts nested within
-an Engine MUST have a name that matches the
-defaultHost setting for that Engine.  See
-Host Name Aliases for information
-on how to assign more than one network name to the same
+Domain Name Service server. Regardless of the case used to
+specify the hostname, Tomcat will convert it to lower case internally.
+One of the Hosts nested within an Engine MUST
+have a name that matches the defaultHost setting for that
+Engine.  See Host Name Aliases for
+information on how to assign more than one network name to the same
 virtual host.
   
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Bug report for Taglibs [2009/12/13]

2009-12-13 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  |
| |   |   |  |  |
| 8694|Ver|Maj|2002-05-01|Exception when trying to acces the Map.entry compo|
| 8723|Ver|Nor|2002-05-02|use of xsltSystemID does not take effect if xslt a|
| 9257|Ver|Nor|2002-05-20|ELParser doesn't parse non-ascii value|
| 9581|Ver|Min|2002-06-03|update SQL examples to allow for the inputting of |
| 9968|Ver|Maj|2002-06-18|c:url prepends path to page relative URLs |
|10175|Ver|Nor|2002-06-24|Welcome file absent from standard-examples.war in |
|27717|New|Maj|2004-03-16| very slow in JSTL 1.1 |
|33934|New|Cri|2005-03-09|[standard] memory leak in jstl c:set tag  |
|38193|Ass|Enh|2006-01-09|[RDC] BuiltIn Grammar support for Field   |
|38600|Ass|Enh|2006-02-10|[RDC] Enable RDCs to be used in X+V markup (X+RDC)|
|42413|New|Nor|2007-05-14|[PATCH] Log Taglib enhancements   |
|43640|New|Nor|2007-10-16|Move the tests package to JUnit   |
|45197|Ass|Nor|2008-06-12|Need to support the JSTL 1.2 specification|
|46052|New|Nor|2008-10-21|SetLocaleSupport is slow to initialize when many l|
|48333|New|Nor|2009-12-02|TLD generator |
+-+---+---+--+--+
| Total   15 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 [2009/12/13]

2009-12-13 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|
|37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F|
|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|
|39231|New|Nor|2006-04-06|The JAAS contract for LoginModule is broken   |
|39309|Opn|Enh|2006-04-14|tomcat can't compile big jsp, hitting a compiler l|
|39740|New|Enh|2006-06-07|semi-colon ; isn't allowed as a query argument sep|
|39844|New|Nor|2006-06-20|non-HTTP forward will alway result NullPointerExce|
|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   |
|40218|New|Enh|2006-08-08|JNDI realm - recursive group/role matching|
|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|

Bug report for Tomcat 6 [2009/12/13]

2009-12-13 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|
|43656|Opn|Nor|2007-10-18|ELSupport.coerceToType won't handle null for java.|
|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|
|44265|New|Enh|2008-01-18|Improve JspWriterImpl performance with "inline" su|
|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 |
|45255|New|Enh|2008-06-23|support disable jsessionid from url against sessio|
|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 |
|45794|New|Enh|2008-09-12|Patch causes JNDIRealm to bind with user entered c|
|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|
|46323|

Bug report for Tomcat Connectors [2009/12/13]

2009-12-13 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  |
| |   |   |  |  |
|24427|New|Enh|2003-11-05|Tomcat mod_jk - Excludes in Redirection   |
|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 |
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for requests in II|
|38895|Inf|Nor|2006-03-08|Http headers with an underscore "_" change into hy|
|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.|
|41430|New|Reg|2007-01-22|JkOptions +ForwardDirectories with Apache's Direct|
|41695|New|Maj|2007-02-24|mod_jk with httpd 2.0.58 on Solaris-10 11/06 dumpi|
|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|
|43821|New|Enh|2007-11-08|provide client AJP IP address |
|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|
|45182|New|Enh|2008-06-10|Add functionality to automate the jkmanager disabl|
|45313|New|Nor|2008-06-30|mod_jk 1.2.26 & apache 2.2.9 static compiled on so|
|45357|Opn|Enh|2008-07-07|Add property to specify custom maintenance page wh|
|45395|New|Min|2008-07-14|MsgAjp dump method does not dump packet when being|
|45610|New|Nor|2008-08-11|status-worker: Bug in request parameter parsing fo|
|46337|New|Nor|2008-12-04|real worker name is wrong |
|46406|New|Enh|2008-12-16|Supporting relative paths in isapi_redirect.proper|
|46503|New|Nor|2009-01-09|Garbage characters in cluster domain field|
|46632|New|Nor|2009-01-29|mod_jk's sockets close prematurely when the server|
|46676|New|Enh|2009-02-09|Configurable test request for Watchdog thread |
|46763|New|Enh|2009-02-24|Improve treatment of jk_log_lock. |
|46767|New|Enh|2009-02-25|mod_jk to send DECLINED in case no fail-over tomca|
|46862|New|Nor|2009-03-16|Status worker Properties output format (worker.wlb|
|46893|New|Nor|2009-03-23|mod_jk statically compiled always outputs warning |
|47038|New|Enh|2009-04-15|USE_FLOCK_LK redefined compiler warning when using|
|47222|New|Nor|2009-05-19|Changes made to ping_timeout via Status Worker not|
|47224|New|Nor|2009-05-19|Hostname and Port Changes from Status Worker do no|
|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|Blk|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|
|47806|New|Blk|2009-09-08|HTTP 500 internal server error|
|47840|New|Min|2009-09-14|A broken worker name is written in the log file.  |
|47983|New|Nor|2009-10-12|typo in documentation |
|48069|

Bug report for Tomcat 7 [2009/12/13]

2009-12-13 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  |
| |   |   |  |  |
|47823|New|Enh|2009-09-11|Inconsistent naming of boolean getters in Standard|
|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|
|48299|New|Enh|2009-11-29|Add Javadoc target to build file  |
|48358|New|Enh|2009-12-09|JSP-unloading reloaded|
+-+---+---+--+--+
| Total7 bugs   |
+---+

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Bug report for Tomcat Native [2009/12/13]

2009-12-13 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   |
|48129|New|Nor|2009-11-04|[PATCH] Fix build with OpenSSL 1.0.0-beta3|
|48253|New|Min|2009-11-20|Tomcat Native patch - adding dynamic locking callb|
+-+---+---+--+--+
| Total   11 bugs   |
+---+

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48381] Hostnames in the section are converted to lower case

2009-12-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48381

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from Mark Thomas  2009-12-13 15:09:01 GMT ---
Treating host names in a case sensitive manner is likely to break things and is
not consistent with RFC 1035.

I have updated the docs for trunk, 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 48384] New: globalXsltFile parameter for the DefaultServlet

2009-12-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48384

   Summary: globalXsltFile parameter for the DefaultServlet
   Product: Tomcat 6
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: trivial
  Priority: P2
 Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: h3xstrea...@gmail.com


When overriding the DefaultServlet for a given application, the globalXsltFile
path need to be relative to Tomcat root.

for example:

globalXsltFile
webapps/quercus/WEB-INF/listing.xsl


it would be nice if the path could be relative to the application context.

-- 
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 47670] Unlock accept issue

2009-12-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=47670

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #1 from Mark Thomas  2009-12-13 16:32:51 GMT ---
Given that the server is heavily loaded at the time, there is clearly more more
going on here than just the call to unlockAccept(). Changing the shut down code
feels too like addressing the symptom rather than the cause at this point.

Before making any changes I'd like to understand what else is going on at the
point where this delay occurs. Please provide 3 complete stack traces taken
roughly 10s apart during the period where the delay occurs.

It would also be helpful if you could try a newer JVM and Tomcat version to see
if that has any impact on the delay as I have tried various things to reproduce
this and, so far, have been unable to reproduce it.

-- 
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



Re: Problem using maven jspc plugin with tomcat 7 and jstl

2009-12-13 Thread David Jencks


On Dec 13, 2009, at 12:46 PM, Mark Thomas wrote:


On 13/12/2009 09:50, David Jencks wrote:
It looks to me as if the problem is that no JarScanner is installed  
in
the ServletContext used by JspC.  (There definitely isn't one  
installed,
and I think that is the cause of the problem).  So, jasper cant  
find the

jstl jar which is in the classloader all this is running with.


Your analysis looks spot on to me.

I don't see how it would be possible for a JarScanner to get  
installed

so I'm wondering if there is a bug and what a way to fix it or work
around it might be.


Yep, it's a bug.

Before proposing any code changes it would be great to have some  
advice

on how this is supposed to work and confirmation that my theories on
what is wrong are reasonable.


The motivation behind the original change was to:
- make TLD handling consistent between Jasper and Tomcat (there are  
some

edge case anomalies in 6.0.x)
- reduce code duplication (there is still a lot of duplication between
TldLocationCache and o.a.c.startup.TldConfig)

Something to keep in mind is that Jasper should not have any
dependencies on Tomcat. At the moment, there are a few shared  
interfaces

in o.a.tomcat but no implementation.

The options I can think of off-hand are:
- refactor the DefaultJarScanner to o.a.tomcat (or a sub-package) and
add it to the tomcat-api.jar (maybe rename the jar)
- copy the DefaultJarScanner to the o.a.jasper package

The second option is the simplest but I like the first as it  
provides a

basis for removing some of the other duplication (eg around TLDs)
between Tomcat core and Jasper.


I can verify by experiment that the 2nd solution fixes the problem  
with jspC.  I agree that there's a strong case to be made for moving  
DefaultJarScanner to org.apache.tomcat but doing so introduces a lot  
of dependencies from that package to


org.apache.tomcat.util.res.StringManager
org.apache.juli.logging.LogFactory
org.apache.catalina.startup.Constants

I could resolve these but the results would probably not be consistent  
with whatever policy tomcat has on dependencies.  However if this  
would be helpful I'll be happy to supply a patch.


BTW I really appreciate that the classes formerly in org.apache got  
moved to org.apache.tomcat


many thanks
david jencks



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



DO NOT REPLY [Bug 48385] New: Expose RSS feed for tomcat releases

2009-12-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48385

   Summary: Expose RSS feed for tomcat releases
   Product: Tomcat 6
   Version: unspecified
  Platform: All
OS/Version: All
Status: NEW
  Severity: enhancement
  Priority: P2
 Component: Documentation
AssignedTo: dev@tomcat.apache.org
ReportedBy: trent.bart...@flightcentre.com.au


The Tomcat web site does not expose an RSS feed for announcements, such as new
releases. It would be a good idea to do so, since not everyone is willing or
able to subscribe to the various mailing lists.

-- 
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: r890206 [2/2] - in /tomcat/trunk/modules/tomcat-lite: ./ java/org/apache/coyote/lite/ java/org/apache/tomcat/lite/http/ java/org/apache/tomcat/lite/io/ java/org/apache/tomcat/lite/service/

2009-12-13 Thread costin
Modified: 
tomcat/trunk/modules/tomcat-lite/test/org/apache/tomcat/lite/load/LiveHttpThreadedTest.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/modules/tomcat-lite/test/org/apache/tomcat/lite/load/LiveHttpThreadedTest.java?rev=890206&r1=890205&r2=890206&view=diff
==
--- 
tomcat/trunk/modules/tomcat-lite/test/org/apache/tomcat/lite/load/LiveHttpThreadedTest.java
 (original)
+++ 
tomcat/trunk/modules/tomcat-lite/test/org/apache/tomcat/lite/load/LiveHttpThreadedTest.java
 Mon Dec 14 07:35:57 2009
@@ -17,101 +17,201 @@
 package org.apache.tomcat.lite.load;
 
 
+import java.io.File;
 import java.io.IOException;
+import java.lang.management.ManagementFactory;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import javax.management.InstanceNotFoundException;
+import javax.management.MBeanException;
+import javax.management.MBeanServer;
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+import javax.management.ReflectionException;
 
 import junit.framework.TestCase;
 
 import org.apache.tomcat.lite.TestMain;
-import org.apache.tomcat.lite.http.DefaultHttpConnector;
 import org.apache.tomcat.lite.http.HttpChannel;
 import org.apache.tomcat.lite.http.HttpConnector;
 import org.apache.tomcat.lite.http.HttpRequest;
-import org.apache.tomcat.lite.http.HttpChannel.HttpService;
 import org.apache.tomcat.lite.http.HttpChannel.RequestCompleted;
+import org.apache.tomcat.lite.io.BBuffer;
+import org.apache.tomcat.lite.io.IOBuffer;
 
+/*
+  Notes on memory use ( from heap dumps ): 
+- buffers are not yet recycled ( the BBuffers used in channels )
+  
+- each active connection consumes at least 26k - 2 buffers + head buffer
+ ( 8k each )
+ TODO: could 'peak' in the In buffer and move headRecv to HttpChannel
+ 
+ 
+- HttpChannel keeps about 64K ( for the hello world ).
+-- res is 25k
+-- req is 32k, BufferedIOReader 16k,
+
+   TODO:
+- leak in NioThread.active - closed sockets not removed
+- need to rate-limit and queue requests - OOM
+- timeouts
+- seems few responses missing on large async requests (URL works) 
+ */
+
+/**
+ * Long running test - async tests are failing since rate control
+ * is not implemented ( too many outstanding requests - OOM ), 
+ * it seems there is a bug as well.
+ */
 public class LiveHttpThreadedTest extends TestCase {
-  HttpConnector staticMain = TestMain.initTestEnv();
+  HttpConnector clientCon = TestMain.getClientAndInit();
+  ThreadRunner tr;
+  static MBeanServer server;
   
+  AtomicInteger ok = new AtomicInteger();
+  Object lock = new Object();
+  int reqCnt;
+
+  Map active = new HashMap();
   
-  int tCount = 1;
-  Thread[] threads = new Thread[tCount];
-  int[] ok = new int[tCount];
-  private int rCount = 100;
-  
-  public void xtestSimpleRequest() throws Exception {
-long t0 = System.currentTimeMillis();
-for (int i = 0; i < tCount; i++) {
-  final int j = i;
-  threads[i] = new Thread(new Runnable() {
-public void run() {
-  makeRequests(j, true);
-}
-  });
-  threads[i].start();
-}
-
-int res = 0;
-for (int i = 0; i < tCount; i++) {
-  threads[i].join();
-  res += ok[i];
-}
-long t1 = System.currentTimeMillis();
-System.err.println("Time: " + (t1 - t0) + " " + res);
+  public void xtest1000Async() throws Exception {
+  try {
+  asyncRequest(10, 100);
+  } finally {
+  dumpHeap("heapAsync.bin");
+  }
+  
   }
 
-  public void testSimpleRequestNB() throws Exception {
-long t0 = System.currentTimeMillis();
-for (int i = 0; i < tCount; i++) {
-  final int j = i;
-  threads[i] = new Thread(new Runnable() {
-public void run() {
-  makeRequests(j, false);
-}
-  });
-  threads[i].start();
-}
-
-int res = 0;
-for (int i = 0; i < tCount; i++) {
-  threads[i].join();
-  res += ok[i];
-}
-long t1 = System.currentTimeMillis();
-System.err.println("TimeNB: " + (t1 - t0) + " " + res);
+  public void xtest1Async() throws Exception {
+  try {
+  asyncRequest(20, 500);
+  } finally {
+  dumpHeap("heapAsync.bin");
+  }
   }
   
-  void makeRequests(int t, boolean b) {
-for (int i = 0; i < rCount ; i++) {
+  public void asyncRequest(int thr, int perthr) throws Exception {
+  reqCnt = thr * perthr;
+  long t0 = System.currentTimeMillis();
+  tr = new ThreadRunner(thr, perthr) {
+  public void makeRequest(int i) throws Exception {
+  HttpRequest cstate = clientCon.request("localhost", 8802);
+  synchronized (active) {
+  active.put(cstate, cstate);
+  }
+  
+  cstate.requestURI().set