Many users complaining about this on user list.....
I believe not having good messages in error scenarios is a bug, and this may be one of those. Please verify. It looks like it has been around for ages when I search the user list. Search the user list for Error listenerStart and you will see what I mean. I have seen many complaints about this error in the tomcat logs with no other information.. Mar 26, 2006 6:36:25 AM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart I know exactly the problem in my case(and I think it is the same in other users' cases as well). My ServletContextListener.contentInitialized is throwing an Exception, and tomcat does not report the exception in any of it's logs. I also tried adding my own logging.properties file to WEB-INF/classes and it worked for my backing beans, but my ServletContextListener logs did not come out. I can't seem to log them anywhere in any configuration. The logging may just be user error(though I am not sure why my log file seems to control my backing bean logs just fine and not my ServletContextListener file. The main bug I think is only reporting Error listenerStart Can someone respond on the user list please? thanks, dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r388948 - /tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java
Author: remm Date: Sun Mar 26 11:50:47 2006 New Revision: 388948 URL: http://svn.apache.org/viewcvs?rev=388948view=rev Log: - Add a guard to pollTime. Modified: tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java Modified: tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=388948r1=388947r2=388948view=diff == --- tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java (original) +++ tomcat/connectors/trunk/util/java/org/apache/tomcat/util/net/AprEndpoint.java Sun Mar 26 11:50:47 2006 @@ -262,7 +262,7 @@ */ protected int pollTime = 2000; public int getPollTime() { return pollTime; } -public void setPollTime(int pollTime) { this.pollTime = pollTime; } +public void setPollTime(int pollTime) { if (pollTime 0) { this.pollTime = pollTime; } } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r388949 - /tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java
Author: remm Date: Sun Mar 26 11:55:03 2006 New Revision: 388949 URL: http://svn.apache.org/viewcvs?rev=388949view=rev Log: - 39021: Add back support for authentication only. - Submitted by Scott Stark. Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java?rev=388949r1=388948r2=388949view=diff == --- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java (original) +++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/RealmBase.java Sun Mar 26 11:55:03 2006 @@ -152,6 +152,12 @@ */ protected boolean validate = true; + +/** + * The all role mode. + */ +protected AllRolesMode allRolesMode = AllRolesMode.STRICT_MODE; + // - Properties @@ -180,6 +186,25 @@ } /** + * Return the all roles mode. + */ +public String getAllRolesMode() { + +return allRolesMode.toString(); + +} + + +/** + * Set the all roles mode. + */ +public void setAllRolesMode(String allRolesMode) { + +this.allRolesMode = AllRolesMode.toMode(allRolesMode); + +} + +/** * Return the digest algorithm used for storing credentials. */ public String getDigest() { @@ -767,6 +792,38 @@ } } } + +if (allRolesMode != AllRolesMode.STRICT_MODE !status principal != null) { +if (log.isDebugEnabled()) { +log.debug(Checking for all roles mode: + allRolesMode); +} +// Check for an all roles(role-name=*) +for (int i = 0; i constraints.length; i++) { +SecurityConstraint constraint = constraints[i]; +String roles[]; +// If the all roles mode exists, sets +if (constraint.getAllRoles()) { +if (allRolesMode == AllRolesMode.AUTH_ONLY_MODE) { +if (log.isDebugEnabled()) { +log.debug(Granting access for role-name=*, auth-only); +} +status = true; +break; +} + +// For AllRolesMode.STRICT_AUTH_ONLY_MODE there must be zero roles +roles = request.getContext().findSecurityRoles(); +if (roles.length == 0 allRolesMode == AllRolesMode.STRICT_AUTH_ONLY_MODE) { +if (log.isDebugEnabled()) { +log.debug(Granting access for role-name=*, strict auth-only); +} +status = true; +break; +} +} +} +} + // Return a Forbidden message denying access to this resource if(!status) { response.sendError @@ -1310,6 +1367,60 @@ } } +} + + +protected static class AllRolesMode { + +private String name; +/** Use the strict servlet spec interpretation which requires that the user + * have one of the web-app/security-role/role-name + */ +public static final AllRolesMode STRICT_MODE = new AllRolesMode(strict); +/** Allow any authenticated user + */ +public static final AllRolesMode AUTH_ONLY_MODE = new AllRolesMode(authOnly); +/** Allow any authenticated user only if there are no web-app/security-roles + */ +public static final AllRolesMode STRICT_AUTH_ONLY_MODE = new AllRolesMode(strictAuthOnly); + +static AllRolesMode toMode(String name) +{ +AllRolesMode mode; +if( name.equalsIgnoreCase(STRICT_MODE.name) ) +mode = STRICT_MODE; +else if( name.equalsIgnoreCase(AUTH_ONLY_MODE.name) ) +mode = AUTH_ONLY_MODE; +else if( name.equalsIgnoreCase(STRICT_AUTH_ONLY_MODE.name) ) +mode = STRICT_AUTH_ONLY_MODE; +else +throw new IllegalStateException(Unknown mode, must be one of: strict, authOnly, strictAuthOnly); +return mode; +} + +private AllRolesMode(String name) +{ +this.name = name; +} + +public boolean equals(Object o) +{ +boolean equals = false; +if( o instanceof AllRolesMode ) +{ +AllRolesMode mode = (AllRolesMode) o; +equals = name.equals(mode.name); +} +
Bug report for Tomcat 4 [2006/03/26]
+---+ | 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 Tomcat 5 [2006/03/26]
+---+ | 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 | | | | | | | |17310|Ver|Nor|2003-02-22|;jsessionid confuses StandardHostcan't find Co| |19803|Ver|Maj|2003-05-09|manager reload fails and disables app - Incompatib| |19958|Ver|Maj|2003-05-15|Problems reading ServletInputStream | |20268|Opn|Maj|2003-05-27|Tomcat 5.0.2 takes 100% CPU | |21045|Ver|Nor|2003-06-24|Manager app does find resources | |21600|Ver|Nor|2003-07-15|Parameter's lost after manager stop/start or rel| |22679|Ver|Enh|2003-08-24|how to access ssl session ID out of tomcat to prev| |22986|Ver|Nor|2003-09-08|Web apps with context XML file don't start if CATA| |24413|Ver|Nor|2003-11-04|bundled JMX implementation not compliant to specif| |24943|Ver|Nor|2003-11-24|Tomcat 5.0.14 / Windows 2000 Service does not star| |25078|Ver|Nor|2003-11-29|Catalina Ant Serverinfo task always fails | |27338|Ver|Maj|2004-03-01|Wrong mappings for JSP Documents (.jspx) | |28039|New|Enh|2004-03-30|Cluster Support for SingleSignOn | |28633|Ass|Enh|2004-04-27|Add JMX Support to ClusterManager | |28634|Ass|Enh|2004-04-27|Extend StandardManager/StandardSession for DeltaMa| |28709|Ver|Nor|2004-04-30|javax.servlet.http.HttpServletRequest.isRequestedS| |28875|Ver|Nor|2004-05-10|Multi-byte characters in default error page aren't| |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|Opn|Enh|2004-06-10|No way to set PATH when running as a service on Wi| |29497|Unc|Nor|2004-06-10|Connection pool, redeployment | |29521|Ver|Cri|2004-06-11|No destroy methods called on service shutdown | |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 | |30833|Ver|Nor|2004-08-24|request.getServerPort() returns wrong port (WAS: r| |31339|Opn|Maj|2004-09-21|admin app throwing struts exceptions | |32180|New|Nor|2004-11-11|EL functions are executed in privileged context | |32280|Ver|Cri|2004-11-17|Problem clustering tomcat when a failed server is | |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| |32832|Ver|Maj|2004-12-23|request.getSession(false) fails to return null. | |33180|Ver|Nor|2005-01-20|JSTL automatic type conversion gives unexpected re| |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|Maj|2005-03-02|Session tracking using URL rewriting fails, if cli| |33831|Ver|Nor|2005-03-03|RequestDispatcher.forward and resource missing| |34006|Ver|Nor|2005-03-14|Undeploy of webapps with antiResourceLocking in ME| |34016|Ver|Nor|2005-03-15|antiResourceLocking webapp fails to deploy on Tomc| |34033|Ver|Nor|2005-03-16|Cannot delete users using Administration Tool weba| |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|
DO NOT REPLY [Bug 38726] - GlobalRequestProcessor attributes are always 0
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=38726. 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=38726 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2006-03-27 01:25 --- *** Bug 37806 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]
svn commit: r388994 - /tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java
Author: billbarker Date: Sun Mar 26 16:41:39 2006 New Revision: 388994 URL: http://svn.apache.org/viewcvs?rev=388994view=rev Log: Don't attempt to send the END message if we already know the connection is dead Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java?rev=388994r1=388993r2=388994view=diff == --- tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java (original) +++ tomcat/connectors/trunk/jk/java/org/apache/jk/core/MsgContext.java Sun Mar 26 16:41:39 2006 @@ -281,7 +281,7 @@ if( log.isDebugEnabled() ) log.debug(CLOSE ); Response res=(Response)param; -if( getStatus()== JK_STATUS_CLOSED ) { +if( getStatus()== JK_STATUS_CLOSED || getStatus() == JK_STATUS_ERROR) { // Double close - it may happen with forward if( log.isDebugEnabled() ) log.debug(Double CLOSE - forward ? + res.getRequest().requestURI() ); return; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 38489] - Frequent Broken Pipe Error
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=38489. 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=38489 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2006-03-27 01:47 --- This should be 'fixed' in the SVN trunk, and will appear in 5.5.17. The message itself is harmless (except for the disk space it takes up in the log), but it suggests a problem with your mod_jk configuration (so WARNING is an appropriate level). If you continue to have problems, follow up on [EMAIL PROTECTED] for possible ways to resolve this. -- 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 38095] - do not produce java code using unchecked or unsafe operations
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=38095. 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=38095 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WONTFIX --- Additional Comments From [EMAIL PROTECTED] 2006-03-27 02:19 --- It is possible that this may be reviewed for Tomcat 6. However, Tomcat 5 is required to work on a 1.4 JVM as well as a 1.5, so the unchecked calls are necessary for 1.4 compatibility. -- 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 38898] - Tomcat service fails without error message
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=38898. 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=38898 [EMAIL PROTECTED] changed: What|Removed |Added Component|Catalina|Native:Integration --- Additional Comments From [EMAIL PROTECTED] 2006-03-27 02:23 --- Changing component. -- 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]