Bug report for Tomcat 3 [2006/08/20]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt| | 2478|Opn|Cri|2001-07-06|Passing Session variables between JSP's and Servle| | 4551|Opn|Nor|2001-10-31|Ctx( /tt01 ): IOException in: R( /tt01 + /com/abc/| | 4980|New|Min|2001-11-20|Startup message indicates incorrect log file | | 4994|New|Nor|2001-11-21|Tomcat needs a mechanism for clean and certain shu| | 5064|New|Cri|2001-11-25|Socket write error when include files is more than| | 5108|New|Maj|2001-11-26|Docs for Tomcat 3.2.x appear to be for Tomcat 3.3 | | 5137|New|Nor|2001-11-27|Null pointer in class loader after attempting to r| | 5160|Unc|Maj|2001-11-28|'IllegalStateException' | | 5331|New|Nor|2001-12-09|getPathInfo vs URL normalization | | 5510|New|Blk|2001-12-19|How to call ejb deployed in JBoss from Tomcat serv| | 5756|New|Nor|2002-01-08|jspc.bat exits with wrong ERRORLEVEL | | 5797|New|Nor|2002-01-10|UnCatched ? StringIndexOutOfBoundsException: Strin| | 6027|New|Maj|2002-01-25|Tomcat Automatically shuts down as service | | 6168|New|Blk|2002-02-01|IllegalStateException | | 6451|New|Cri|2002-02-14|Stackoverflow | | 6478|New|Enh|2002-02-14|Default Tomcat Encoding | | 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c| | 6648|New|Nor|2002-02-25|jakarta-servletapi build with java 1.4 javadoc err| | 6989|New|Maj|2002-03-08|Unable to read tld file during parallel JSP compil| | 7013|New|Cri|2002-03-10|Entering a servlet path with non-ISO8859-1 charact| | 7227|New|Nor|2002-03-19|error-code directive don't work | | 7626|New|Nor|2002-03-29|classloader not working properly | | 7652|New|Cri|2002-04-01|Tomcat stalls periodically| | 7785|New|Blk|2002-04-06|tomcat bug in context reloading | | 7863|New|Maj|2002-04-09|I have a problem when running Tomcat with IIS | | 8187|New|Cri|2002-04-17|Errors when Tomcat used with MS Access database | | 8239|New|Cri|2002-04-18|Resource temporary unavailable| | 8263|New|Cri|2002-04-18|url-pattern easy to circumvent| | 9250|New|Maj|2002-05-20|outOfMemoryError | | 9367|New|Maj|2002-05-23|HttpSessionBindingEvent not thrown for HttpSession| | 9390|New|Nor|2002-05-24|jasper compilation error in tomcat| | 9480|New|Nor|2002-05-29|Data connection pooling | | 9607|New|Maj|2002-06-04|precompile JSP| | 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p| |10047|New|Cri|2002-06-20|IllegalStateException | |10202|New|Maj|2002-06-25|Tomcat is not responding in time | |10357|Unc|Blk|2002-06-30|java.lang.IllegalArgumentException: Short Read| |10406|New|Cri|2002-07-02|IllegalStateException | |11087|New|Blk|2002-07-23|IllegalStateException | |11286|New|Maj|2002-07-30|Tomcat threads not respond if increase JVM size | |11466|New|Nor|2002-08-05|ContextManager: SocketException reading request | |12156|New|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem | |12194|New|Maj|2002-08-30|Tomcat does not send WWW-Authenticate header | |12852|New|Nor|2002-09-20|May be error in _jspService() - out.flushBuffers(| |14386|New|Maj|2002-11-08|Date headers corrupted using setDateHeader| |15632|New|Nor|2002-12-23|Problem with the Tomcat Sessions Parameter on URL | |16363|New|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2| |17915|New|Maj|2003-03-12|Jasper ignores manifest classpath | |19114|New|Nor|2003-04-17|RequestDispatcherImpl does not set root cause exce| |19143|New|Nor|2003-04-18|if TOMCAT_INSTALL differs from TOMCAT_HOME -sequri|
Bug report for Tomcat 4 [2006/08/20]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 3839|Opn|Enh|2001-09-26|Problem bookmarking login page| | 4227|Opn|Enh|2001-10-17|Invalid CGI path | | 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished| | 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob| | 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi| | 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio| | 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI| | 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam| | 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty| | 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store | | 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output| | 7676|New|Enh|2002-04-02|Allow name property to use match experssions in h| | 7723|New|Enh|2002-04-03|[patch] additional factory for org.apache.naming.f| | 8026|New|Enh|2002-04-12|Exceptions in StandardHostDeployer.addChild are lo| | 8323|New|Enh|2002-04-20|No support for running the 64 bit JVM | | 8343|New|Enh|2002-04-21|adding a absorber logger class to org.apache.ca| | 8441|New|Enh|2002-04-23|Command line files for NetWare| | 8705|New|Enh|2002-05-01|SessionListener should extend EventListener | | 8744|New|Enh|2002-05-02|No way to configure/extend runtime classloaders. | | 8776|New|Enh|2002-05-03|The session url encoding under somce circumstances| | 9227|New|Enh|2002-05-19|Allow an empty value of a pathname in the Standard| | 9456|New|Enh|2002-05-28|Problem saving server.xml file: invalid XML markup| | 9511|New|Enh|2002-05-30|Object instantiation optimization in StandardSessi| | 9629|New|Enh|2002-06-05|Fix ServletContext.getResourcePaths to match spec | | 9745|New|Enh|2002-06-10|extern cache mgt bug for conditionally dynamic pag| | 9852|New|Enh|2002-06-13|Odd Digest and Realm Behaviour| |10021|New|Enh|2002-06-19|Include upgrade option in installer | |10060|New|Enh|2002-06-20|Make the common and shared class loaders look in c| |10120|New|Enh|2002-06-21|Custom realm and shared instalation. | |10225|New|Enh|2002-06-25|ANT Tasks Error Situation | |10335|New|Enh|2002-06-28|[RFE,patch] Make JAASRealm more flexible | |10457|New|Enh|2002-07-03|Patch submission for DefaultServlet/WebdavServlet | |10526|New|Enh|2002-07-06|Authenticators do not always cache the Principal | |10565|Opn|Enh|2002-07-08|shutdown hook problem: java.lang.NoClassDefFoundE| |10691|Ass|Enh|2002-07-11|staring tomcat gives indication that tomcat is sta| |10699|New|Enh|2002-07-11|Apache SOAP 2.3 will not operate properly | |10972|New|Enh|2002-07-19|Realm without className in server.xml produces N| |11069|Opn|Enh|2002-07-23|Tomcat not flag error if tld is outside of /WEB-IN| |11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques| |11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header| |11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w| |12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ| |12658|New|Enh|2002-09-15|a proxy host and port at the Host element level | |12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers| |13309|Opn|Enh|2002-10-04|Catalina calls System.exit() | |13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co| |13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari| |13731|New|Enh|2002-10-17|Final request, response, session and other variabl| |13941|New|Enh|2002-10-24|reload is VERY slow | |13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix | |14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic|
Bug report for Watchdog [2006/08/20]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 278|Unc|Nor|2000-12-04|Bug in GetParameterValuesTestServlet.java file Bug| | 279|Unc|Nor|2000-12-04|Logical Error in GetParameterValuesTestServlet Bug| | 469|Unc|Nor|2001-01-17|in example-taglib.tld urn should be uri BugRat| | 470|Unc|Nor|2001-01-17|FAIL positiveForward.jsp and positiveInclude.jsp B| | 9634|New|Enh|2002-06-05|No tests exist for ServletContext.getResourcePaths| |10703|New|Enh|2002-07-11|Need to test getRequestURI after RequestDispatcher| |11336|New|Enh|2002-07-31|Test wrapped path methods with RD.foward()| |11663|New|Maj|2002-08-13|JSP precompile tests rely on Jasper specific behav| |11664|New|Maj|2002-08-13|A sweep is needed of all Watchdog 4.0 tag librarie| |11665|New|Maj|2002-08-13|ServletToJSPErrorPageTest and ServletToServletErro| |11666|New|Maj|2002-08-13|SetBufferSize_1TestServlet is invalid.| |14004|New|Maj|2002-10-28|Incorrent behaviour of all attribute-related lifec| |15504|New|Nor|2002-12-18|JSP positiveGetValues test relies on order preserv| |24649|New|Nor|2003-11-12|getRemoteHost fails when agent has uppercase chara| |29398|New|Nor|2004-06-04|Update site and note current status | +-+---+---+--+--+ | Total 15 bugs | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug report for Tomcat 5 [2006/08/20]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |20268|Inf|Min|2003-05-27|Tomcat 5.0.2 takes 100% CPU | |22679|Ver|Enh|2003-08-24|how to access ssl session ID out of tomcat to prev| |28039|New|Enh|2004-03-30|Cluster Support for SingleSignOn | |28634|Ass|Enh|2004-04-27|Extend StandardManager/StandardSession for DeltaMa| |29091|Opn|Nor|2004-05-19|Non-ascii characters are not handled correctly... | |29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js| |29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi| |30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c| |30489|Opn|Cri|2004-08-05|removeAttribute: Session already invalidated | |30762|Opn|Nor|2004-08-19|destroy method in servlet called before contextDes| |31339|Inf|Maj|2004-09-21|admin app throwing struts exceptions | |32180|New|Nor|2004-11-11|EL functions are executed in privileged context | |32569|Ass|Nor|2004-12-07|ServletContextListener will not die | |32593|Inf|Maj|2004-12-09|Server (Apache 2.0.48) reached MaxClients setting | |32754|Inf|Nor|2004-12-17|Can't modify thread configuration attributes of AJ| |33262|Inf|Nor|2005-01-27|Service Manager autostart should check for adminis| |33356|Inf|Maj|2005-02-02|Incorrect parsing of tag attributes | |33407|Inf|Nor|2005-02-05|\$ is quoted even with el-ignored=true| |33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps| |33650|Inf|Enh|2005-02-19|Jasper performance for multiple files processing | |33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na| |33806|Opn|Min|2005-03-02|Session tracking using URL rewriting fails, if cli| |34076|Inf|Nor|2005-03-18|overriding content.xml docBase with manager webapp| |34319|New|Nor|2005-04-06|StoreBase.processExpires() is very inefficient| |34396|Inf| |2005-04-11|security exception using datasource in servlet-in| |34399|Opn|Nor|2005-04-11|Undeploying fails when context defined in server.x| |34509|New|Nor|2005-04-19|tag names that are xml:Name but not java identifie| |34560|Inf|Maj|2005-04-22|AuthenticatorBase tests and applies disableProxyCa| |34643|New|Enh|2005-04-27|document how to use certificate-based clientAuth| |34769|Inf|Nor|2005-05-05|ArrayIndexOutOfBoundsException occurs when reading| |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| |34856|Inf|Nor|2005-05-11|MacOSX 10.4 and Java 5 jnilibs causes ZipException| |34868|New|Enh|2005-05-11|allow to register a trust store for a session that| |34952|New|Nor|2005-05-18|Installer modifies windows service when it shouldn| |34956|Inf|Nor|2005-05-18|Tomcat should enforce the requirements from servle| |35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc| |35079|Inf|Enh|2005-05-26|Should be able to specify DNS lookup timeout | |35229|Opn|Enh|2005-06-05|alert user about expired certificates in client ce| |35252|Opn|Nor|2005-06-07|jasper2 produced malformed expanded XML view | |35552|Inf|Cri|2005-06-29|JMS destination under Context | |35635|New|Nor|2005-07-06|Tomcat service does not log startup error messages| |35746|Inf|Nor|2005-07-14|session manager should be immune to system clock t| |35765|New|Enh|2005-07-16|make the SSL cipher config in server.xml fail safe| |35827|Inf|Blk|2005-07-22|Problem with POST forms with jk connector/IIS/Wind| |35835|Inf|Nor|2005-07-23|Submitting changes through admin app corrupts the | |35869|New|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B| |35914|Unc|Nor|2005-07-28|Problem to create and delete Access Log Valve many| |35943|New|Maj|2005-07-30|request.getRemoteUser() is not getting populated o| |35968|New|Nor|2005-08-02|Please make Environment Entry Properties Value in| |36121|Inf|Maj|2005-08-10|Including JSP's changes working directory |
Re: possible mod_jk feature
Jim Jagielski wrote: On Aug 18, 2006, at 9:58 AM, Jean-frederic Clere wrote: Jim Jagielski wrote: I and other have run into issues where the socket between Apache and Tomcat (due to a in-between firewall) isn't closed as it should be... Yep, I have heared about things like that, on the Tomcat side the socket seems opened but it closed on the httpd side. The problem is that httpd will detect it and close the closed socket but nothing reaches the TC... Until a timeout occurs on the TC side (OS socket timeout). New requests cause new connections to be opened that results in threads increase (x2) in the TC with all the bad you could think of. Exactly. I'm digging further into this as far as why the timeout isn't being honored, but it got me thinking that a no reuse option might be nice. Basically, it prevents reuse from ever being set to TRUE... Well the problem is how to detect that a bad close has happended. Yep. Code-wise it's not trivial (not real tough, not just trivial) but from an Admin standpoint, they now when their setup causes this. So having a don't reuse flag would allow them to bypass this. Right I haven't find the right way to handle this until now. I have developped a JMX interface over the httpd-proxy-scoreboard slotmem that allows TC to mark its worker not useable when the number of threads increases too much. Somehow don't use until I am ready. That would allow the Admin of the TC to handle httpd workers. The other way I see it to force a PING/PONG when starting a new connection, there TC could say don't use until I am ready (with a time value). I am only -0 about the don't reuse ;-) Cheers Jean-Frederic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Release Tomcat 4.1.33 as beta
Hi, +1 for the release. I've added versions 4.1.33, 5.5.18, and 6.0.0 to Bugzilla so that we have one less thing to do when we cut those releases... Yoav On 8/20/06, Mark Thomas [EMAIL PROTECTED] wrote: All, Please vote on releasing Apache Tomcat 4.1.33 as beta. Download from: http://tomcat.apache.org/dev/dist/ MD5s: apache-tomcat-4.1.33-src.tar.gz c4fbeda65a3d7418b129d5ec69fa18de The vote will run for approximately 72 hours. If this VOTE passes, a stability vote will be held a suitable period (at least 2 weeks) after the beta release. For those keeping score, 4.1.32 had a couple of regressions that: - broke the AJP connector - prevented any webapp that shipped commons-logging from loading Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [VOTE] Release Tomcat 4.1.33 as beta
Yoav Shapira wrote: Hi, +1 for the release. I've added versions 4.1.33, 5.5.18, and 6.0.0 to Bugzilla so that we have one less thing to do when we cut those releases... Thanks. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: possible mod_jk feature
I agree that the solution is not pretty, so in many ways I look at the feature as similar to the flush_packets feature: a help to those admin's who are stuck. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=37793. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37793 [EMAIL PROTECTED] changed: What|Removed |Added Status|CLOSED |REOPENED Resolution|WONTFIX | -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r433260 [5/5] - in /tomcat/sandbox/tomcat-lite: ./ java/org/apache/coyote/ java/org/apache/tomcat/lite/ java/org/apache/tomcat/lite/ctxmap/ java/org/apache/tomcat/lite/http/ java/org/apach
Added: tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/SessionManagerServlet.java URL: http://svn.apache.org/viewvc/tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/SessionManagerServlet.java?rev=433260view=auto == --- tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/SessionManagerServlet.java (added) +++ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/SessionManagerServlet.java Mon Aug 21 08:20:40 2006 @@ -0,0 +1,575 @@ +/* + * Copyright 1999,2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +package org.apache.tomcat.servlets.session; + + +import java.io.IOException; +import java.util.Date; +import java.util.EventListener; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; + +import javax.servlet.ServletContext; +import javax.servlet.http.Cookie; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; + +import org.apache.catalina.Globals; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.tomcat.servlets.util.RandomGenerator; + +// TODO: move 'expiring objects' to a separate utility class +// TODO: hook the background thread + +// Must be implemented as load-on-startup + + +/** + * Minimal implementation of the bManager/b interface that supports + * no session persistence or distributable capabilities. This class may + * be subclassed to create more sophisticated Manager implementations. + * + * @author Costin Manolache + * @author Craig R. McClanahan + */ +public class SessionManagerServlet extends HttpServlet { +protected static Log log = LogFactory.getLog(SessionManagerServlet.class); + +protected RandomGenerator randomG = new RandomGenerator(); + +protected ServletContext context; + +static class ExpiringMap { + + +} + + +/** + * The distributable flag for Sessions created by this Manager. If this + * flag is set to codetrue/code, any user attributes added to a + * session controlled by this Manager must be Serializable. + * + * This is for compliance with the spec - tomcat-lite is not intended for + * session replication ( use a full version for that ) + */ +protected boolean distributable; + +/** + * The default maximum inactive interval for Sessions created by + * this Manager. + */ +protected int maxInactiveInterval = 60; + +/** + * The longest time (in seconds) that an expired session had been alive. + */ +protected int sessionMaxAliveTime; + + +/** + * Average time (in seconds) that expired sessions had been alive. + */ +protected int sessionAverageAliveTime; + + +/** + * Number of sessions that have expired. + */ +protected int expiredSessions = 0; + +static class SessionLRU extends LinkedHashMap { +protected boolean removeEldestEntry(Map.Entry eldest) { +HttpSessionImpl s = (HttpSessionImpl)eldest.getValue(); +int size = this.size(); + +// TODO: check if eldest is expired or if we're above the limit. +// if eldest is expired, turn a flag to check for more. + +// Note: this doesn't work well for sessions that set shorter +// expiry time, or longer expiry times. +return false; +} + +} + +/** + * The set of currently active Sessions for this Manager, keyed by + * session identifier. + */ +protected LinkedHashMap sessions = new SessionLRU(); + +// Number of sessions created by this manager +protected int sessionCounter=0; + +protected int maxActive=0; + +// number of duplicated session ids - anything 0 means we have problems +protected int duplicates=0; + +protected boolean initialized=false; + +/** + * Processing time during session expiration. + */ +protected long processingTime = 0; + +/** + * Iteration count for background processing. + */ +private int count = 0; + + +/** + * Frequency of the session expiration, and related manager operations. + * Manager operations will be done once for the specified amount of + *
svn commit: r433260 [1/5] - in /tomcat/sandbox/tomcat-lite: ./ java/org/apache/coyote/ java/org/apache/tomcat/lite/ java/org/apache/tomcat/lite/ctxmap/ java/org/apache/tomcat/lite/http/ java/org/apach
Author: costin Date: Mon Aug 21 08:20:40 2006 New Revision: 433260 URL: http://svn.apache.org/viewvc?rev=433260view=rev Log: More refactoring - lite directory cleaned up of most functionality that could go to a module, all modules transformed into filter/servlets or listeners. Finally implemented a new web.xml reader, and support saving the processed result in .ser. Starting to make the old valves/etc general purpose filters with no dep on lite, user-space possible Added: tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/TomcatLite.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/ctxmap/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/ctxmap/WebappContextMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/http/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/http/CoyoteAdapter.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/webmap/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/webmap/WebappFilterMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/webmap/WebappServletMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/EnvEntryData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/FilterData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/FilterMappingData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/SecurityConstraintData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/ServletData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/WebAppData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/config/WebResourceCollectionData.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/deploy/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/deploy/InitServlet.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/deploy/ReloadServlet.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/deploy/WebAnnotation.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/deploy/WebXml.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/HttpSessionImpl.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/session/SessionManagerServlet.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/servlets/util/RandomGenerator.java tomcat/sandbox/tomcat-lite/resources/tomcat-lite.MF (with props) tomcat/sandbox/tomcat-lite/webapps/ROOT/ tomcat/sandbox/tomcat-lite/webapps/ROOT/WEB-INF/ tomcat/sandbox/tomcat-lite/webapps/ROOT/WEB-INF/classes (with props) tomcat/sandbox/tomcat-lite/webapps/ROOT/WEB-INF/lib/ tomcat/sandbox/tomcat-lite/webapps/ROOT/WEB-INF/lib/moneydance.jar (with props) tomcat/sandbox/tomcat-lite/webapps/ROOT/dav/ tomcat/sandbox/tomcat-lite/webapps/ROOT/index.html tomcat/sandbox/tomcat-lite/webapps/__x_deploy/ tomcat/sandbox/tomcat-lite/webapps/__x_deploy/WEB-INF/ tomcat/sandbox/tomcat-lite/webapps/__x_deploy/WEB-INF/web.xml tomcat/sandbox/tomcat-lite/webapps/__x_engine/ tomcat/sandbox/tomcat-lite/webapps/__x_engine/WEB-INF/ tomcat/sandbox/tomcat-lite/webapps/__x_engine/WEB-INF/web.xml tomcat/sandbox/tomcat-lite/webapps/__x_protocol/ tomcat/sandbox/tomcat-lite/webapps/__x_protocol/WEB-INF/ tomcat/sandbox/tomcat-lite/webapps/__x_protocol/WEB-INF/web.xml Removed: tomcat/sandbox/tomcat-lite/java/org/apache/coyote/ tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/CoyoteAdapter.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/Host.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/HttpSessionImpl.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/Main.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/ServletFacade.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/WebappContextMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/WebappFilterMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/WebappServletMapper.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/WebappSessionManager.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/servlets/ReloadServlet.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/webxml/ tomcat/sandbox/tomcat-lite/resources/coyote-servlet.MF Modified: tomcat/sandbox/tomcat-lite/build.xml tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/FilterChainImpl.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/FilterConfigImpl.java tomcat/sandbox/tomcat-lite/java/org/apache/tomcat/lite/RequestDispatcherImpl.java
DO NOT REPLY [Bug 40272] - classloader definition in server.xml is not properly parsed
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=40272. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=40272 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2006-08-22 01:44 --- Although the error messages differ, this is in fact a duplicate. The problem is that the parent clasloader is not set so any classes that should be loaded from the shared classloader or higher fail. *** This bug has been marked as a duplicate of 39704 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39704] - context with privileged=true do not setup properly inner loaders
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39704. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39704 --- Additional Comments From [EMAIL PROTECTED] 2006-08-22 01:44 --- *** Bug 40272 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36852] - Custom Webapp loaders don't correctly honor context's privileged=true attribute
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36852. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36852 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2006-08-22 02:02 --- *** This bug has been marked as a duplicate of 39704 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39704] - context with privileged=true do not setup properly inner loaders
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39704. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39704 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2006-08-22 02:02 --- *** Bug 36852 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39704] - context with privileged=true do not setup properly inner loaders
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39704. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39704 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEEDINFO|NEW --- Additional Comments From [EMAIL PROTECTED] 2006-08-22 02:04 --- Problem is due to the way custom loaders are handled on start-up. I can re-produce it and am working on a fix. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: parameters in URL path segments
On Aug 21, 2006, at 6:26 PM, James Berry wrote: Guys, Sorry to open up this subject again. I've just read the mails in this thread: http://marc.theaimsgroup.com/?l=tomcat-devm=115344110306194w=2 http://marc.theaimsgroup.com/?l=tomcat-devm=115346837428224w=2 Though I can't say I paid particular attention to the jkmount situation (and so I can't testify as to how treatment of such parameters might affect that), I can say that I'd like to be able to use ;parameter=value in my path segments in a tomcat environment: http://example.com/this;biz=bar;foo/that;v=1.1/whatever To me, this looks completely valid per rfc 2396, 2616, and 3986, and it's a surprise to me that tomcat strips any path following the first such parameter. I would like to see tomcat essentially ignore the fact that ';' exists in a path segment, and pass it on into the servlet unmodified to do with as it pleases. In fact, I don't see any motivation for any special handling of semicolon vs any other of the other sub-delims characters, none of which tomcat does anything special with. Comma and Plus are allowed in path segments, for instance; why is semicolon treated differently? The more recent RFCs say that there is nothing special that the server/container should do with such a character when it appears in a path segment. Obviously, of course, there would be places where it would be plain wrong to place such a parameter/character (if it didn't map to a servlet, or to a file, or...) but there are other places (in extra path segments in pathInfo, for instance) where the interpretation of such characters should NOT BE made by the server, but by the ultimate consumer of those bits. Therefore, the server should simply not place any special meaning on such characters in any path segment. James I'm inspired by the following paragraph in G.4 of rfc 2396: Extensive testing of current client applications demonstrated that the majority of deployed systems do not use the ; character to indicate trailing parameter information, and that the presence of a semicolon in a path segment does not affect the relative parsing of that segment. Therefore, parameters have been removed as a separate component and may now appear in any path segment. Their influence has been removed from the algorithm for resolving a relative URI reference. The resolution examples in Appendix C have been modified to reflect this change. And also by the following from rfc 3986: Aside from dot-segments in hierarchical paths, a path segment is considered opaque by the generic syntax. URI producing applications often use the reserved characters allowed in a segment to delimit scheme-specific or dereference-handler-specific subcomponents. For example, the semicolon (;) and equals (=) reserved characters are often used to delimit parameters and parameter values applicable to that segment. The comma (,) reserved character is often used for similar purposes. For example, one URI producer might use a segment such as name;v=1.1 to indicate a reference to version 1.1 of name, whereas another might use a segment such as name,1.1 to indicate the same. Parameter types may be defined by scheme- specific semantics, but in most cases the syntax of a parameter is specific to the implementation of the URI's dereferencing algorithm. Note that the segment syntax in rfc 3986 explicitly allows sub- delims (through pchar), of which ';' is but one. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]