DO NOT REPLY [Bug 5181] - HttpConnector [8080] No processor available, rejecting this connection
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5181. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5181 HttpConnector [8080] No processor available, rejecting this connection [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED OS/Version|All |Windows NT/2K Platform|All |PC Resolution|WORKSFORME | --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 08:23 --- I can reproduce this bug every time with the following: Tomcat 4.0.3 JRE 1.4 (final release) Turbine TDK 2.1 - Sample App http://jakarta.apache.org/builds/jakarta-turbine/release/2.1/ Using IE 5.0 goto the URL: http://localhost:8080/newapp/servlet/newapp and hold down the F5 key for a bit. Using JRE 1.3 it does not reproduce. After walking through the code, it appears (to someone not familiar with the source) that this exception prevents the recycle of the HttpProcessor. The net effect is that once maxProcessors is exceeded the server can never accept requests again. Stack Trace: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEnc oder.java:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529) at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.ja va:356) at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:413) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222) at java.io.PrintWriter.close(PrintWriter.java:137) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBas e.java:482) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRes ponseBase.java:236) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(Ht tpResponseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1039) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1107) at java.lang.Thread.run(Thread.java:536) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [VOTE] Final release of Tomcat 3.3.1
De: Larry Isaacs [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 20 de marzo de 2002 22:21 +1, i have very little time, but i'll help if i can.. Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6617] - Iterating over session attribute name enumeration fails with a ConcurrentModificationException on org.apache.catalina.util.Enumerator.nextElement(Enumerator.java:166);
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6617. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6617 Iterating over session attribute name enumeration fails with a ConcurrentModificationException on org.apache.catalina.util.Enumerator.nextElement(Enumerator.java:166); [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 12:41 --- That's because you're changing the set whilst iterating over it with an enumerator. If you clone the list of attribute names and use this to get your iterator/enumerator, you will be okay.. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 7319] New: - codeBase in catalina.policy broken with jars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319 codeBase in catalina.policy broken with jars Summary: codeBase in catalina.policy broken with jars Product: Tomcat 4 Version: 4.0.3 Final Platform: PC OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I'm struggling with this for weeks now: with pre-4.0.3 releases, I was unable to grant permissions to my webapp using codeBase. Just specifiying grant {} worked fine, however. After upgrading to 4.0.3, the following happens if I start Tomcat with -security and using the default catalina.policy: Exception initializing TldLocationsCache: XML parsing error on file /WEB- INF/web.xml: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found This just appears in the logfile (no AccessControlException is thrown) and prevents my webapp from working as the web.xml is obviously not parsed and therefore no init-params are available to my servlets. I'm not too familiar with the Tomcat source but after playing around for a while I'm convinced that it has something to do with the codeBase applied to jar files: everything works fine if I unpack ALL jars (from my webapp, my libs as well as the jars that come with tomcat) or if I simply omit codeBase in catalina.policy (which is obviously just like running Tomcat without SecurityManager). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0.3 + mod_jk
yes, I know. But when I come in without a session the function get_most_suitable_worker in jk_lb_worker.c will find a worker by using the lb-factor and do weighted round robin. And at this position I would like to switch off the load-balancing and select the worker which is connected to tomcat on the same node. Because we have a loadbalancer in front of our cluster but it can't handle the sessions. So we need the routing of mod_jk for sticky sessions, but the loadbalancing would indefer with our loadbalancer. With mod_jserv we did it with a little trick. The routing config and the nodeset for loadbalancing were separated. For routing we told mod_jserv all the nodes in the cluster, but for loadbalancing we build a nodeset with only the local node in it. A little perl script build the conffiles suitable for the nodes. But mod_jserv can only work with ajp12 and we would like to use the advanced features of ajp13. For mod_jk of tomcat 3.2.x I build an additional worker which did only the routing. And I added a new config command for declaring the local connected worker. But it is a little bit laborious to add this every time when the connectors change. Id would be nice if this feature was contained in mod_jk. I could do it and send the additional worker to the list/project. Thanks Bernd GOMEZ Henri wrote: in mod_jk, when a session is created the following requests will allways go to the same tomcat. IBM call it Session Affinity ;) Hi, is it possible to use only the session routing of mod_jk without load balancing? Because we have a standalone loadbalancer in front of our cluster. In the past we used mod_jserv with ApacheJServ. But now we want to switch to tomcat. On every node should run an apache and tomcat, connected to each other with mod_jk. We need the routing between the nodes for established sessions, but a request without a session should be routed by mod_jk to the tomcat on the same node. I hope I could reach someone of the mod_jk developers. Sending this question to the user list wasn't successful. Thanks Bernd [...] -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/webapp INSTALL.txt README.txt
pier02/03/21 05:49:44 Modified:webapp INSTALL.txt README.txt Log: Way too many lusers hitting my inbox lately. Why don't people get a clue and remove that OS from this planet? Revision ChangesPath 1.7 +11 -0 jakarta-tomcat-connectors/webapp/INSTALL.txt Index: INSTALL.txt === RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/INSTALL.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- INSTALL.txt 19 Nov 2001 18:46:32 - 1.6 +++ INSTALL.txt 21 Mar 2002 13:49:44 - 1.7 @@ -1,6 +1,17 @@ Installing mod_webapp and using it with Apache 1.3 -- +Notice +-- + +NO, IT DOES NOT RUN WITH WINDOWS (your images don't appear and the +whole thing hangs?) AND SINCE I DON'T USE NEITHER POSSESS A MICROSOFT +WINDOWS BASED MACHINE, THERE ARE NO CURRENT PLANS ON MAKING IT WORK +OVER THERE (from my side). + +Installing +-- + Once you have successfully built the mod_webapp DSO as described in the README.txt file coming with the sources, installing the module is pretty easy. 1.18 +22 -0 jakarta-tomcat-connectors/webapp/README.txt Index: README.txt === RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/README.txt,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- README.txt11 Mar 2002 21:54:22 - 1.17 +++ README.txt21 Mar 2002 13:49:44 - 1.18 @@ -1,6 +1,28 @@ README for WebApp Library and Related Modules - +Notice +-- + +NO, IT DOES NOT RUN WITH WINDOWS (your images don't appear and the +whole thing hangs?) AND SINCE I DON'T USE NEITHER POSSESS A MICROSOFT +WINDOWS BASED MACHINE, THERE ARE NO CURRENT PLANS ON MAKING IT WORK +OVER THERE (from my side). + +If you want to do it (port it to Windows), those are few hints: +- Apache 1.3 on Windows is MultiThreaded +- Therefore the error coming out is a multi-threading issue +- The WARP socket is unique in WebApp +- You need to change that and build up a socket pool +- And add some locking mechanism to prevent race conditions + +If you don't know what the above means, simply forget it (and I suggest +you doing a format c: and install Solaris 8 - my favorite preference +or throw out your x86 hardware out of in the dumpster and get an +Apple PowerMac with MacOS/X installed). If you are willing to do the +job, you're more than welcome to write to me or to the mailing list +with some patches. + How to obtain the WebApp and Apache Portable Runtime sources: - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Manager application working again in 4.0.4-B1. Please evaluate patch
Hi all, Apparently the new piece of in StandardContext that releases the DirContext breaks the ManagerServlet since it's messes with docBase ( when it tries to start again, docBase in just relative not absolute ). The following patch moves super.stop() before the release of DirContext and add a setResources(DirContext) of what was left of DirContext ( I'm not sure f this part ) *** StandardContext.java.oldThu Mar 21 11:29:06 2002 --- StandardContext.javaThu Mar 21 11:43:53 2002 *** *** 3455,3458 --- 3455,3463 } + // Normal container shutdown processing + if (debug = 1) + log(Processing standard container shutdown); + super.stop(); + // Release our resources DirContext DirContext dirContext = getResources(); *** *** 3471,3479 } } ! ! // Normal container shutdown processing ! if (debug = 1) ! log(Processing standard container shutdown); ! super.stop(); // Unbinding thread --- 3476,3480 } } ! setResources(dirContext); // Unbinding thread Thanks Renato - Brazil - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards®
Re: tomcat 4.0.3 + mod_jk
This also solves another problem - Apache2.0+JNI worker. It's exactly the same, it acts similary with a load balancer ( multiple processes listening on the same port ), and we want the jni worker to take the load if no session. Wouldn't be simpler if you just patch worker_lb ? Say if a worker has a very high factor ( or special flag ) use it allways. My thinking for jk2 was that the session stickiness should go in front of everything, and be enabled by default, independent of lb. Send the patch please ( if you can just make a smaller change in lb it would be better IMHO ) Costin On Thu, 21 Mar 2002, Bernd Koecke wrote: yes, I know. But when I come in without a session the function get_most_suitable_worker in jk_lb_worker.c will find a worker by using the lb-factor and do weighted round robin. And at this position I would like to switch off the load-balancing and select the worker which is connected to tomcat on the same node. Because we have a loadbalancer in front of our cluster but it can't handle the sessions. So we need the routing of mod_jk for sticky sessions, but the loadbalancing would indefer with our loadbalancer. With mod_jserv we did it with a little trick. The routing config and the nodeset for loadbalancing were separated. For routing we told mod_jserv all the nodes in the cluster, but for loadbalancing we build a nodeset with only the local node in it. A little perl script build the conffiles suitable for the nodes. But mod_jserv can only work with ajp12 and we would like to use the advanced features of ajp13. For mod_jk of tomcat 3.2.x I build an additional worker which did only the routing. And I added a new config command for declaring the local connected worker. But it is a little bit laborious to add this every time when the connectors change. Id would be nice if this feature was contained in mod_jk. I could do it and send the additional worker to the list/project. Thanks Bernd GOMEZ Henri wrote: in mod_jk, when a session is created the following requests will allways go to the same tomcat. IBM call it Session Affinity ;) Hi, is it possible to use only the session routing of mod_jk without load balancing? Because we have a standalone loadbalancer in front of our cluster. In the past we used mod_jserv with ApacheJServ. But now we want to switch to tomcat. On every node should run an apache and tomcat, connected to each other with mod_jk. We need the routing between the nodes for established sessions, but a request without a session should be routed by mod_jk to the tomcat on the same node. I hope I could reach someone of the mod_jk developers. Sending this question to the user list wasn't successful. Thanks Bernd [...] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6983] - SSL + Mac + IE5 = no session cookies
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6983 SSL + Mac + IE5 = no session cookies --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 15:12 --- In: org.apache.catalina.util.CookieTools.java a flag Secure is added to JSESSIONIDs for SSL sessions. This is incompatible with Mac IE 5.0. RFC-compliant though What is the *future* way to handle this? We of course patched our TC. Open Source is just GREAT! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0.3 + mod_jk
ok, I will patch worker_lb. But it will take a few days. To mutch work and to less time :). Bernd [EMAIL PROTECTED] wrote: This also solves another problem - Apache2.0+JNI worker. It's exactly the same, it acts similary with a load balancer ( multiple processes listening on the same port ), and we want the jni worker to take the load if no session. Wouldn't be simpler if you just patch worker_lb ? Say if a worker has a very high factor ( or special flag ) use it allways. My thinking for jk2 was that the session stickiness should go in front of everything, and be enabled by default, independent of lb. Send the patch please ( if you can just make a smaller change in lb it would be better IMHO ) Costin On Thu, 21 Mar 2002, Bernd Koecke wrote: yes, I know. But when I come in without a session the function get_most_suitable_worker in jk_lb_worker.c will find a worker by using the lb-factor and do weighted round robin. And at this position I would like to switch off the load-balancing and select the worker which is connected to tomcat on the same node. Because we have a loadbalancer in front of our cluster but it can't handle the sessions. So we need the routing of mod_jk for sticky sessions, but the loadbalancing would indefer with our loadbalancer. With mod_jserv we did it with a little trick. The routing config and the nodeset for loadbalancing were separated. For routing we told mod_jserv all the nodes in the cluster, but for loadbalancing we build a nodeset with only the local node in it. A little perl script build the conffiles suitable for the nodes. But mod_jserv can only work with ajp12 and we would like to use the advanced features of ajp13. For mod_jk of tomcat 3.2.x I build an additional worker which did only the routing. And I added a new config command for declaring the local connected worker. But it is a little bit laborious to add this every time when the connectors change. Id would be nice if this feature was contained in mod_jk. I could do it and send the additional worker to the list/project. Thanks Bernd GOMEZ Henri wrote: in mod_jk, when a session is created the following requests will allways go to the same tomcat. IBM call it Session Affinity ;) Hi, is it possible to use only the session routing of mod_jk without load balancing? Because we have a standalone loadbalancer in front of our cluster. In the past we used mod_jserv with ApacheJServ. But now we want to switch to tomcat. On every node should run an apache and tomcat, connected to each other with mod_jk. We need the routing between the nodes for established sessions, but a request without a session should be routed by mod_jk to the tomcat on the same node. I hope I could reach someone of the mod_jk developers. Sending this question to the user list wasn't successful. Thanks Bernd [...] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 5181] - HttpConnector [8080] No processor available, rejecting this connection
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5181. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5181 HttpConnector [8080] No processor available, rejecting this connection [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 16:13 --- This is a bug with JDK 1.4. The processor not being recycled in that particular case has been fixed in 4.0.4-b1. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 5647] - AJP13 connector will not pass authentication requests
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5647. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5647 AJP13 connector will not pass authentication requests [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Manager application working again in 4.0.4-B1. Please evaluatepatch
Renato wrote: Hi all, Apparently the new piece of in StandardContext that releases the DirContext breaks the ManagerServlet since it's messes with docBase ( when it tries to start again, docBase in just relative not absolute ). The following patch moves super.stop() before the release of DirContext and add a setResources(DirContext) of what was left of DirContext ( I'm not sure f this part ) *** StandardContext.java.oldThu Mar 21 11:29:06 2002 --- StandardContext.javaThu Mar 21 11:43:53 2002 *** *** 3455,3458 --- 3455,3463 } + // Normal container shutdown processing + if (debug = 1) + log(Processing standard container shutdown); + super.stop(); + // Release our resources DirContext DirContext dirContext = getResources(); *** *** 3471,3479 } } ! ! // Normal container shutdown processing ! if (debug = 1) ! log(Processing standard container shutdown); ! super.stop(); // Unbinding thread --- 3476,3480 } } ! setResources(dirContext); // Unbinding thread Thanks Renato - Brazil - Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards(r) It helps to fix PR7239 or 6982 on 4.0.4-B1 (Remy has already fixed it the HEAD). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger AddLoggerAction.java DeleteLoggerAction.java EditLoggerAction.java LoggerForm.java SaveLoggerAction.java
manveen 02/03/21 09:11:28 Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger DeleteLoggerAction.java EditLoggerAction.java LoggerForm.java SaveLoggerAction.java Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger AddLoggerAction.java Log: Added Add logger implementation. Revision ChangesPath 1.2 +33 -29 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java Index: DeleteLoggerAction.java === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DeleteLoggerAction.java 19 Mar 2002 18:38:00 - 1.1 +++ DeleteLoggerAction.java 21 Mar 2002 17:11:28 - 1.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v 1.1 2002/03/19 18:38:00 manveen Exp $ - * $Revision: 1.1 $ - * $Date: 2002/03/19 18:38:00 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/DeleteLoggerAction.java,v 1.2 2002/03/21 17:11:28 manveen Exp $ + * $Revision: 1.2 $ + * $Date: 2002/03/21 17:11:28 $ * * * @@ -96,7 +96,7 @@ * The codeAction/code that sets up emDelete Loggers/em transactions. * * @author Manveen Kaur - * @version $Revision: 1.1 $ $Date: 2002/03/19 18:38:00 $ + * @version $Revision: 1.2 $ $Date: 2002/03/21 17:11:28 $ */ public class DeleteLoggerAction extends Action { @@ -172,31 +172,7 @@ if (parent != null) { try { -// Form the pattern that gets the logger for this particular -// service, host or context. -StringBuffer sb = new StringBuffer(TomcatTreeBuilder.LOGGER_TYPE); -ObjectName poname = new ObjectName(parent); -String type = poname.getKeyProperty(type); -if (Context.equalsIgnoreCase(type)) { // container is context -sb.append(,path=); -sb.append(poname.getKeyProperty(path)); -sb.append(,host=); -sb.append(poname.getKeyProperty(host)); -sb.append(,service=); -sb.append(poname.getKeyProperty(service)); -} -if (Host.equalsIgnoreCase(type)) {// container is host -sb.append(,host=); -sb.append(poname.getKeyProperty(name)); -sb.append(,service=); -sb.append(poname.getKeyProperty(service)); -} -if (Service.equalsIgnoreCase(type)) { // container is service -sb.append(,service=); -sb.append(poname.getKeyProperty(name)); -} -pattern = sb.toString(); - +pattern = getObjectName(parent); } catch (Exception e) { getServlet().log (resources.getMessage(locale, users.error.select)); @@ -230,4 +206,32 @@ } +public static String getObjectName(String parent) +throws Exception{ + +// Form the pattern that gets the logger for this particular +// service, host or context. +StringBuffer sb = new StringBuffer(TomcatTreeBuilder.LOGGER_TYPE); +ObjectName poname = new ObjectName(parent); +String type = poname.getKeyProperty(type); +if (Context.equalsIgnoreCase(type)) { // container is context +sb.append(,path=); +sb.append(poname.getKeyProperty(path)); +sb.append(,host=); +sb.append(poname.getKeyProperty(host)); +sb.append(,service=); +sb.append(poname.getKeyProperty(service)); +} +if (Host.equalsIgnoreCase(type)) {// container is host +sb.append(,host=); +sb.append(poname.getKeyProperty(name)); +sb.append(,service=); +sb.append(poname.getKeyProperty(service)); +} +if (Service.equalsIgnoreCase(type)) { // container is service +sb.append(,service=); +sb.append(poname.getKeyProperty(name)); +} +return sb.toString(); +} } 1.2 +7 -8 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger/EditLoggerAction.java Index: EditLoggerAction.java
DO NOT REPLY [Bug 7335] New: - broken line in jasper/src/share/org/apache/jasper/resources/messages.properties
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7335. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7335 broken line in jasper/src/share/org/apache/jasper/resources/messages.properties Summary: broken line in jasper/src/share/org/apache/jasper/resources/messages.pr operties Product: Tomcat 4 Version: Nightly Build Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] a value of jsp.warning.largeFile is split into 2 lines without new line escape. Here is a patch, joins 2 lines back into one: Index: jasper/src/share/org/apache/jasper/resources/messages.properties === RCS file: /home/cvspublic/jakarta-tomcat- 4.0/jasper/src/share/org/apache/jasper/resources/messages.properties,v retrieving revision 1.24 diff -u -r1.24 messages.properties --- jasper/src/share/org/apache/jasper/resources/messages.properties3 Jan 2002 08:53:31 - 1.24 +++ jasper/src/share/org/apache/jasper/resources/messages.properties21 Mar 2002 17:48:42 - @@ -1,4 +1,4 @@ -# $Id: messages.properties,v 1.23 2001/12/03 15:47:39 larryi Exp $ +# $Id: messages.properties,v 1.24 2002/01/03 08:53:31 remm Exp $ # # Default localized string information # Localized this the Default Locale as is en_US @@ -111,8 +111,7 @@ jsp.error.setproperty.paramOrValue=setProperty: either param or value can be present jsp.error.setproperty.arrayVal=setProperty: can't set array property {0} through a string constant value jsp.warning.keepgen=Warning: Invalid value for the initParam keepgenerated. Will use the default value of \false\ -jsp.warning.largeFile=Warning: Invalid value for the initParam -largeFile. Will use the default value of \true\ +jsp.warning.largeFile=Warning: Invalid value for the initParam largeFile. Will use the default value of \true\ jsp.warning.mappedFile=Warning: Invalid value for the initParam mappedFile. Will use the default value of \false\ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 7332] - Error unable to create jar cache in /tmp directory is found numerous times in catalina.out
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7332. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7332 Error unable to create jar cache in /tmp directory is found numerous times in catalina.out [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 18:16 --- This has been fixed already. *** This bug has been marked as a duplicate of 6400 *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6400] - Tag Libraries not deploying in 4.0.2 final
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6400. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6400 Tag Libraries not deploying in 4.0.2 final [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 18:16 --- *** Bug 7332 has been marked as a duplicate of this bug. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/service service.jsp
manveen 02/03/21 11:03:06 Modified:webapps/admin context.jsp webapps/admin/WEB-INF struts-config.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties TomcatTreeBuilder.java webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm JDBCRealmForm.java JNDIRealmForm.java MemoryRealmForm.java webapps/admin/host host.jsp webapps/admin/logger logger.jsp webapps/admin/realm jdbcRealm.jsp jndiRealm.jsp memoryRealm.jsp userDBRealm.jsp webapps/admin/service service.jsp Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm EditRealmAction.java SaveUserDatabaseRealmAction.java UserDatabaseRealmForm.java webapps/admin/realm userDatabaseRealm.jsp Log: Refactored realm. Added EditRealmAction that sets up the relevant realm form based on the type of realm. Revision ChangesPath 1.6 +11 -5 jakarta-tomcat-4.0/webapps/admin/context.jsp Index: context.jsp === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/context.jsp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- context.jsp 9 Mar 2002 00:10:56 - 1.5 +++ context.jsp 21 Mar 2002 19:03:05 - 1.6 @@ -31,11 +31,17 @@ div align=right controls:actions controls:action selected=true bean:message key=actions.available.actions/ /controls:action -controls:action - /controls:action - %-- -controls:action url= bean:message key=actions.logger.create/ /controls:action -controls:action url= bean:message key=actions.logger.delete/ /controls:action -controls:action - /controls:action +controls:action disabled=true - /controls:action +%-- +controls:action url='%= /AddLogger.do?parent= + + URLEncoder.encode(thisObjectName) %' +bean:message key=actions.loggers.create/ +/controls:action +controls:action url='%= /DeleteLogger.do?parent= + + URLEncoder.encode(thisObjectName) %' +bean:message key=actions.loggers.deletes/ +/controls:action +controls:action disabled=true - /controls:action controls:action url= bean:message key=actions.requestfilter.create/ /controls:action controls:action url= bean:message key=actions.requestfilter.delete/ /controls:action controls:action - /controls:action 1.37 +84 -90jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- struts-config.xml 15 Mar 2002 09:44:17 - 1.36 +++ struts-config.xml 21 Mar 2002 19:03:05 - 1.37 @@ -31,23 +31,6 @@ form-bean name=setLocaleForm type=org.apache.webapp.admin.SetLocaleForm/ -!-- JDBC Realm form bean -- -form-bean name=jdbcRealmForm -type=org.apache.webapp.admin.realm.JDBCRealmForm/ - -!-- JNDI Realm form bean -- -form-bean name=jndiRealmForm -type=org.apache.webapp.admin.realm.JNDIRealmForm/ - -!-- Memory Realm form bean -- -form-bean name=memoryRealmForm -type=org.apache.webapp.admin.realm.MemoryRealmForm/ - -!-- UserDB Realm form bean -- -form-bean name=userdbRealmForm -type=org.apache.webapp.admin.realm.UserDBRealmForm/ - - !-- = Service Module = -- form-bean name=serviceForm @@ -72,6 +55,20 @@ form-bean name=loggersForm type=org.apache.webapp.admin.logger.LoggersForm/ +!-- = Realm Module = -- + +form-bean name=jdbcRealmForm +type=org.apache.webapp.admin.realm.JDBCRealmForm/ + +form-bean name=jndiRealmForm +type=org.apache.webapp.admin.realm.JNDIRealmForm/ + +
cvs commit: jakarta-tomcat-4.0/webapps/admin/realm userDBRealm.jsp
manveen 02/03/21 11:07:51 Removed: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm SetUpJDBCRealmAction.java SetUpJNDIRealmAction.java SetUpMemoryRealmAction.java SetUpUserDBRealmAction.java UserDBRealmForm.java webapps/admin/realm userDBRealm.jsp Log: refactoring realm to match host and service -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 7255] - Bug in automatically generated code (servlet code)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7255. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7255 Bug in automatically generated code (servlet code) [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 19:20 --- Don't use an older servlet API JAR with Tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 7319] - codeBase in catalina.policy broken with jars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319 codeBase in catalina.policy broken with jars [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 19:39 --- Since the report doesn't mention any webapp deployed on Tomcat, or the OS used, I tried running a stock TC 4.0.3 on my PC (Win2k / JDK 1.3.1) with the security manager, and it worked. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6784] - may be not a bug , but why is it happenning ?
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6784. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6784 may be not a bug , but why is it happenning ? [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Component|Unknown |Jasper Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 19:55 --- Jasper is using a writer to output the page, but the default servlet (used in the include) will use the output stream if it can. So it doesn't work (it's forbidden by the servlet API). Flushing before the include should fix it. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [VOTE] Final release of Tomcat 3.3.1
- Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 20, 2002 10:20 PM Subject: [VOTE] Final release of Tomcat 3.3.1 I believe it is an appropriate time to release the HEAD of jakarta-tomcat as Tomcat 3.3.1. Also, as part of this release, I play to sync up the jakarta-tomcat-connectors/utils to ensure that there are no regressions in its tomcat-utils.jar with respect to the one in Tomcat 3.3.1. -- Vote to release jakarta-tomcat HEAD as Tomcat 3.3.1 [X] +1 I am in favor of the release, and will help support it [ ] +0 I am in favor of the release, but am unable to help support it. [ ] -0 I not in favor of the release [ ] -1 I am opposed to the release because: -- Cheers, Larry Isaacs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm JDBCRealmAction.java JNDIRealmAction.java MemoryRealmAction.java UserDBRealmAction.java
manveen 02/03/21 12:44:13 Removed: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger SetUpLoggerAction.java webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm JDBCRealmAction.java JNDIRealmAction.java MemoryRealmAction.java UserDBRealmAction.java Log: Files no longer needed after refactoring. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java mbeans-descriptors.xml
amyroh 02/03/21 13:19:10 Modified:catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java mbeans-descriptors.xml Log: Add createUserDatabaseRealm(). Revision ChangesPath 1.17 +46 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java Index: MBeanFactory.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- MBeanFactory.java 19 Mar 2002 21:36:56 - 1.16 +++ MBeanFactory.java 21 Mar 2002 21:19:10 - 1.17 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.16 2002/03/19 21:36:56 amyroh Exp $ - * $Revision: 1.16 $ - * $Date: 2002/03/19 21:36:56 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.17 2002/03/21 21:19:10 amyroh Exp $ + * $Revision: 1.17 $ + * $Date: 2002/03/21 21:19:10 $ * * * @@ -99,6 +99,7 @@ import org.apache.catalina.realm.JDBCRealm; import org.apache.catalina.realm.JNDIRealm; import org.apache.catalina.realm.MemoryRealm; +import org.apache.catalina.realm.UserDatabaseRealm; import org.apache.catalina.session.StandardManager; import org.apache.catalina.valves.AccessLogValve; import org.apache.catalina.valves.RemoteAddrValve; @@ -115,7 +116,7 @@ * codeorg.apache.catalina.core.StandardServer/code component./p * * @author Amy Roh - * @version $Revision: 1.16 $ $Date: 2002/03/19 21:36:56 $ + * @version $Revision: 1.17 $ $Date: 2002/03/21 21:19:10 $ */ public class MBeanFactory extends BaseModelMBean { @@ -894,8 +895,49 @@ MBeanUtils.createObjectName(managed.getDomain(), logger); return (oname.toString()); } + + +/** + * Create a new UserDatabaseRealm. + * + * @param parent MBean Name of the associated parent component + * + * @exception Exception if an MBean cannot be created or registered + */ +public String createUserDatabaseRealm(String parent) +throws Exception { + // Create a new UserDatabaseRealm instance +UserDatabaseRealm realm = new UserDatabaseRealm(); + +// Add the new instance to its parent component +ObjectName pname = new ObjectName(parent); +String type = pname.getKeyProperty(type); +String tname = findObjectName(type); +Server server = ServerFactory.getServer(); +Service service = server.findService(pname.getKeyProperty(service)); +Engine engine = (Engine) service.getContainer(); +if (tname.equals(StandardContext)) { +Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +Context context = +(Context) host.findChild(pname.getKeyProperty(path)); +context.setRealm(realm); +} else if (tname.equals(Engine)) { +engine.setRealm(realm); +} else if (tname.equals(Host)) { +Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +host.setRealm(realm); +} + +// Return the corresponding MBean name +ManagedBean managed = registry.findManagedBean(UserDatabseRealm); +ObjectName oname = +MBeanUtils.createObjectName(managed.getDomain(), realm); +return (oname.toString()); + +} + /** * Create a new Web Application Loader. * 1.43 +10 -1 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml Index: mbeans-descriptors.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml,v retrieving revision 1.42 retrieving revision 1.43 diff -u -r1.42 -r1.43 --- mbeans-descriptors.xml19 Mar 2002 21:36:56 - 1.42 +++ mbeans-descriptors.xml21 Mar 2002 21:19:10 - 1.43 @@ -6,7 +6,7 @@ !-- Descriptions of JMX MBeans for Catalina - $Id: mbeans-descriptors.xml,v 1.42 2002/03/19 21:36:56 amyroh Exp $ + $Id: mbeans-descriptors.xml,v 1.43 2002/03/21 21:19:10 amyroh Exp $ -- mbeans-descriptors @@ -1233,6 +1233,15 @@ operation name=createSystemOutLogger description=Create a new System Output Logger + impact=ACTION + returnType=java.lang.String + parameter name=parent + description=MBean Name of the associated parent
DO NOT REPLY [Bug 7319] - codeBase in catalina.policy broken with jars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319 codeBase in catalina.policy broken with jars --- Additional Comments From [EMAIL PROTECTED] 2002-03-21 21:21 --- Ok, bugzilla quirks :-\ : I tried TC 4.0 / TC 4.0.3 / TC 4.0.3-LE with Sun JDK 1.4 / Sun JDK 1.3.1 / IBM JDK 1.3 on both Linux (RedHat 7.2 / SuSE 7.2) and Win2k. The only webapp deployed is my own, mapped to path=. The webapp is broken into several jars that, along with any 3rd party libs, live in /WEB-INF/lib (except the JSPs, however). - TC 4.0* / Sun 1.3: codeBase-granting to my webapp does not work, everything else runs just fine (except that I get parsing errors for tld files, but that's another issue). - TC 4.0* / IBM 1.3: like above. - TC 4.0.3* / Sun 1.4: codeBase for my webapp does not work PLUS the error with the TldLocationsCache. So is it a JDK 1.4 issue? Is it likely that things get worse with new releases? ;) PLEASE, no one out there having the same trouble? Am I suffering from voodoo? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm DeleteRealmAction.java DeleteRealmForm.java DeleteRealmsAction.java RealmsForm.java
manveen 02/03/21 14:40:49 Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm DeleteRealmAction.java DeleteRealmForm.java DeleteRealmsAction.java RealmsForm.java Log: Forms and corresponding actions that implement delete realm funcationality from the admin tool. Revision ChangesPath 1.1 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java Index: DeleteRealmAction.java === /* * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DeleteRealmAction.java,v 1.1 2002/03/21 22:40:49 manveen Exp $ * $Revision: 1.1 $ * $Date: 2002/03/21 22:40:49 $ * * * * The Apache Software License, Version 1.1 * * Copyright (c) 2001-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in *the documentation and/or other materials provided with the *distribution. * * 3. The end-user documentation included with the redistribution, if *any, must include the following acknowlegement: * This product includes software developed by the *Apache Software Foundation (http://www.apache.org/). *Alternately, this acknowlegement may appear in the software itself, *if and wherever such third-party acknowlegements normally appear. * * 4. The names The Jakarta Project, Tomcat, and Apache Software *Foundation must not be used to endorse or promote products derived *from this software without prior written permission. For written *permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called Apache *nor may Apache appear in their names without prior written *permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * http://www.apache.org/. * */ package org.apache.webapp.admin.realm; import java.io.IOException; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.TreeSet; import java.util.Set; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts.action.Action; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import javax.management.MBeanServer; import javax.management.MBeanServerFactory; import javax.management.QueryExp; import javax.management.Query; import javax.management.ObjectInstance; import javax.management.ObjectName; import javax.management.JMException; import org.apache.struts.util.MessageResources; import org.apache.webapp.admin.ApplicationServlet; import org.apache.webapp.admin.TomcatTreeBuilder; /** * The codeAction/code that sets up emDelete Realms/em transactions. * * @author Manveen Kaur * @version $Revision: 1.1 $ $Date: 2002/03/21 22:40:49 $ */ public class DeleteRealmAction extends Action { /** * The MBeanServer we will
[PATCH] JNDIRealm documentation
I've attached updates for the realm configuration and howto docs to cover recent changes in the JNDIRealm. The patch for the config doc is a bit different from the one I submitted on Sunday, so please ignore the earlier version. The howto changes are quite extensive, but I thought it worth going into some detail to explain how the directory realm works and maybe anticipate questions that are likely to come up. Craig, would you look them over and submit if OK. By the way I don't know whether the plan would be to include the new realm in a 4.0 release or wait until 4.1. It should be entirely backwards compatible, and I've tested it lightly with 4.0.2, but obviously it's adding new features rather than fixing bugs. Thanks, John. At 18:37 15/03/02, [EMAIL PROTECTED] wrote: craigmcc02/03/15 10:37:42 Modified:catalina/src/share/org/apache/catalina/realm JNDIRealm.java webapps/tomcat-docs/config realm.xml Log: Major enhancements to the JNDIRealm implementation. While remaining backwards compatible with the previous implementation, the following new functionality is supported: John, thanks for your patience with me on getting this patch committed! Could you also make sure that I got the facts right on my edits to the configuration docs? (A patch to tomcat-docs/realm-howto.xml to explain the new options would also be cool.) Submitted by: John Holman j.g.holman at qmul.ac.uk Index: realm-howto.xml === RCS file: /home/cvspublic/jakarta-tomcat-4.0/webapps/tomcat-docs/realm-howto.xml,v retrieving revision 1.4 diff -u -r1.4 realm-howto.xml --- realm-howto.xml 3 Jan 2002 13:56:38 - 1.4 +++ realm-howto.xml 21 Mar 2002 22:28:56 - @@ -7,7 +7,8 @@ project; properties -author email=[EMAIL PROTECTED]Craig R. McClanahan/author +author email=[EMAIL PROTECTED]Craig +R. McClanahan/author titleRealm Configuration HOW-TO/title /properties @@ -319,63 +320,175 @@ h3Introduction/h3 pstrongJNDIRealm/strong is an implementation of the Tomcat 4 -codeRealm/code interface that looks up users in a directory server -accessed by a JNDI provider (typically, the standard LDAP provider that -is available with the JNDI API classes). There is substantial configuration -flexibility that lets you adapt to the existing schema inside your directory -server, as long as it conforms to the following requirements:/p -ul -liEach user that can be authenticated is represented by an individual -element in the top level codeDirContext/code that is accessed -via the codeconnectionURL/code attribute./li -liThe emuser/em element must have the following characteristics: -ul -liThe distinguished name (codedn/code) attribute of this element -contains the username that is presented for authentication./li -liThere must be an attribute (identified by the codeuserPassword/code -attribute of our codeRealm/code element) that contains the user's -password, either in clear text or digested (see below for more info). -/li -/ul/li -liEach group of users that has been assigned a particular role is -represented by an individual element in the top level -codeDirContext/code that is accessed via the -codeconnectionURL/code attribute./li -liThe emuser group/em element must have the following characteristics: -ul -liThe set of all possible groups of interest can be selected by an LDAP -search pattern configured by the coderoleSearch/code attribute -of our codeRealm/code element./li -liThe coderoleSearch/code pattern optionally includes pattern -replacements {0} for the distinguished name, and/or {1} for the -username, of the authenticated user for which roles will be -retrieved./li -liThe coderoleBase/code attribute can be set to the element that -is the base of the search for matching roles. If not specified, -the entire directory context will be searched./li -liThe coderoleSubtree/code attribute can be set to codetrue/code -if you wish to search the entire subtree of the directory context. -The default value of codefalse/code requests a search of only the -current level./li -liThe element includes an attribute (whose name is configured by the -coderoleName/code attribute of our codeRealm/code element) -containing the name of the role represented by this element./li -/ul/li -liThere must be an administrator username and password that Tomcat can -use to establish a connection to the directory server, with at least -read-only access to the information described above. A future -version of Tomcat will support an option to use the user's username and -password to attempt this connection./li +codeRealm/code interface that looks up users in an LDAP directory +server
[VOTE] Tomcat 4.0.4 Beta 2 / Coyote 1.0 Beta 4 release
I'd like to propose releasing 4.0.4 beta 2 within a few days (friday at the earliest, next tuesday at the latest). This release will include bugfixes (the list is in the usual release notes document in CVS) as well as the inclusion of the Coyote binaries (conditional to the results of the vote below). The Coyote connector will *not* be enabled by default, but will appear commented out in the default server.xml configuration file. I also plan to make a Coyote 1.0 beta 4 at the same time, to pick up the bugfixes and minor improvements in the Tomcat adaptors. Tomcat 4.0.4 Beta 2 release: ballot +1 [ ] I support the release, and I will help +0 [ ] I support the release -0 [ ] I don't support the release -1 [ ] I'm against the release because: /ballot Inclusion of the Coyote binaries: ballot +1 [ ] Yes -1 [ ] No /ballot My vote is +1 for both. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [VOTE] Tomcat 4.0.4 Beta 2 / Coyote 1.0 Beta 4 release
Tomcat 4.0.4 Beta 2 release: ballot +1 [ ] I support the release, and I will help +0 [ ] I support the release -0 [ ] I don't support the release -1 [ ] I'm against the release because: /ballot +0 Inclusion of the Coyote binaries: ballot +1 [ ] Yes -1 [ ] No /ballot +1 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[PATCH] Fix typo in jtc/jk/native/nt_server/jk_nt_service.c
usage_message() says lphanumeric instead of alphanumeric -David --- jk_nt_service.c.origThu Mar 21 16:52:21 2002 +++ jk_nt_service.c Thu Mar 21 16:52:29 2002 @@ -173,7 +173,7 @@ printf(%s -i service name {optional params} config properties file\n, name); printf(Optional parameters\n); printf(-u user name - In the form DomainName\\UserName (.\\UserName for local)\n); -printf(-n service display name - In quotes if contains non-lphanumeric chars\n); +printf(-n service display name - In quotes if contains +non-alphanumeric chars\n); printf(-p user password\n); printf(-a - Set startup type to automatic\n); printf(-d service dependency - Can be entered multiple times\n\n); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin TreeControl.java
manveen 02/03/21 16:58:17 Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin TreeControl.java Log: Node should also be removed from registry when its deleted. Otherwise this creates problems (name not unique exception ) while deletion and recreation of a node. Revision ChangesPath 1.3 +5 -4 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControl.java Index: TreeControl.java === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TreeControl.java 7 Mar 2002 02:48:54 - 1.2 +++ TreeControl.java 22 Mar 2002 00:58:17 - 1.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControl.java,v 1.2 2002/03/07 02:48:54 craigmcc Exp $ - * $Revision: 1.2 $ - * $Date: 2002/03/07 02:48:54 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TreeControl.java,v 1.3 2002/03/22 00:58:17 manveen Exp $ + * $Revision: 1.3 $ + * $Date: 2002/03/22 00:58:17 $ * * * @@ -75,7 +75,7 @@ * * @author Jazmin Jonson * @author Craig R. McClanahan - * @version $Revision: 1.2 $ $Date: 2002/03/07 02:48:54 $ + * @version $Revision: 1.3 $ $Date: 2002/03/22 00:58:17 $ */ public class TreeControl implements Serializable { @@ -265,6 +265,7 @@ if (node == this.root) { this.root = null; } +registry.remove(node.getName()); } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java
manveen 02/03/21 17:21:56 Modified:catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java Log: Fix for create*Logger's. Revision ChangesPath 1.18 +14 -9 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java Index: MBeanFactory.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- MBeanFactory.java 21 Mar 2002 21:19:10 - 1.17 +++ MBeanFactory.java 22 Mar 2002 01:21:55 - 1.18 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.17 2002/03/21 21:19:10 amyroh Exp $ - * $Revision: 1.17 $ - * $Date: 2002/03/21 21:19:10 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.18 2002/03/22 01:21:55 manveen Exp $ + * $Revision: 1.18 $ + * $Date: 2002/03/22 01:21:55 $ * * * @@ -116,7 +116,7 @@ * codeorg.apache.catalina.core.StandardServer/code component./p * * @author Amy Roh - * @version $Revision: 1.17 $ $Date: 2002/03/21 21:19:10 $ + * @version $Revision: 1.18 $ $Date: 2002/03/22 01:21:55 $ */ public class MBeanFactory extends BaseModelMBean { @@ -273,7 +273,9 @@ // Add the new instance to its parent component ObjectName pname = new ObjectName(parent); String type = pname.getKeyProperty(type); -String tname = findObjectName(type); +// FIX ME +// String tname = findObjectName(type); +String tname = type; Server server = ServerFactory.getServer(); Service service = server.findService(pname.getKeyProperty(service)); Engine engine = (Engine) service.getContainer(); @@ -832,7 +834,8 @@ // Add the new instance to its parent component ObjectName pname = new ObjectName(parent); String type = pname.getKeyProperty(type); -String tname = findObjectName(type); +// String tname = findObjectName(type); +String tname = type; Server server = ServerFactory.getServer(); Service service = server.findService(pname.getKeyProperty(service)); Engine engine = (Engine) service.getContainer(); @@ -844,7 +847,7 @@ } else if (tname.equals(Engine)) { engine.setLogger(logger); } else if (tname.equals(Host)) { -Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +Host host = (Host) engine.findChild(pname.getKeyProperty(name)); host.setLogger(logger); } @@ -873,7 +876,9 @@ // Add the new instance to its parent component ObjectName pname = new ObjectName(parent); String type = pname.getKeyProperty(type); -String tname = findObjectName(type); +// FIX ME +//String tname = findObjectName(type); +String tname = type; Server server = ServerFactory.getServer(); Service service = server.findService(pname.getKeyProperty(service)); Engine engine = (Engine) service.getContainer(); @@ -885,7 +890,7 @@ } else if (tname.equals(Engine)) { engine.setLogger(logger); } else if (tname.equals(Host)) { -Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +Host host = (Host) engine.findChild(pname.getKeyProperty(name)); host.setLogger(logger); } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/service service.jsp
manveen 02/03/21 17:31:25 Modified:webapps/admin context.jsp webapps/admin/WEB-INF struts-config.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties webapps/admin/WEB-INF/classes/org/apache/webapp/admin/logger SaveLoggerAction.java webapps/admin/host host.jsp webapps/admin/realm userDatabaseRealm.jsp webapps/admin/service service.jsp Added: webapps/admin/realm realms.jsp Log: - add and delete loggers operational and enabled from pages. - delete realm operation enabled/complete. Revision ChangesPath 1.7 +8 -5 jakarta-tomcat-4.0/webapps/admin/context.jsp Index: context.jsp === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/context.jsp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- context.jsp 21 Mar 2002 19:03:05 - 1.6 +++ context.jsp 22 Mar 2002 01:31:24 - 1.7 @@ -45,11 +45,14 @@ controls:action url= bean:message key=actions.requestfilter.create/ /controls:action controls:action url= bean:message key=actions.requestfilter.delete/ /controls:action controls:action - /controls:action -controls:action url= bean:message key=actions.userrealm.create/ /controls:action -controls:action url= bean:message key=actions.userrealm.delete/ /controls:action -controls:action - /controls:action -controls:action url= bean:message key=actions.valve.create/ /controls:action -controls:action url= bean:message key=actions.valve.delete/ /controls:action +controls:action url= bean:message key=actions.realms.create/ /controls:action +controls:action url='%= /DeleteRealm.do?parent= + + URLEncoder.encode(thisObjectName) %' +bean:message key=actions.realms.deletes/ +/controls:action +controls:action disabled=true - /controls:action +controls:action url= bean:message key=actions.valves.create/ /controls:action +controls:action url= bean:message key=actions.valves.deletes/ /controls:action controls:action - /controls:action controls:action url= bean:message key=actions.thiscontext.delete/ /controls:action --% 1.38 +7 -0 jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- struts-config.xml 21 Mar 2002 19:03:05 - 1.37 +++ struts-config.xml 22 Mar 2002 01:31:25 - 1.38 @@ -69,6 +69,9 @@ form-bean name=userDatabaseRealmForm type=org.apache.webapp.admin.realm.UserDatabaseRealmForm/ +form-bean name=realmsForm +type=org.apache.webapp.admin.realm.RealmsForm/ + !-- == User Database Module == -- form-bean name=databaseForm @@ -188,6 +191,10 @@ forwardname=UserDatabaseRealm path=/realm/userDatabaseRealm.jsp +redirect=false/ + +forwardname=Realms +path=/realm/realms.jsp redirect=false/ !-- == User Database Module == -- 1.36 +6 -4 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties Index: ApplicationResources_en.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- ApplicationResources_en.properties21 Mar 2002 19:03:05 - 1.35 +++ ApplicationResources_en.properties22 Mar 2002 01:31:25 - 1.36 @@ -84,14 +84,16 @@ actions.loggers.delete=Delete This Logger actions.loggers.deletes=Delete Existing Loggers actions.loggers.edit=Edit Existing Logger +actions.realms.create=Create New User Realm +actions.realms.delete=Delete This User Realm +actions.realms.deletes=Delete User Realms actions.requestfilter.create=Create New Request
patch for org.apache.jasper.CommandLineContext to mangle packagenames
Sometime in the recent past someone noticed that the mapping of a jsp file's name to a class name is not one-to-one -- the filename needs mangling to conform to java identifiers and to make sure that classes aren't named after keywords. Whoever did this missed the fact that the same mangling needs to happen to the intermediate directories that are used to create the package name. I've attached a patch that liberally grabs the mangling code from org.apache.jasper.compiler.CommandLineCompiler and drops it into org.apache.jasper.CommandLineContext to do that work. As a heads-up, there's another problem that may need addressing in the class name mangling -- if a file is named, for instance, com.jsp or org.jsp, the classname shadows any imports from the com or org packages respectively (this is a general problem, these are just examples). I'm not really sure how to get around this -- the simple way would be to prepend each class name with some likely-never-to-be-used character sequence; the intelligent way would require actually parsing the generated .java to make sure that no top-level package name is being shadowed. This requires a little more intelligence than what I was willing to put in for this patch. :) - a. --- org/apache/jasper/CommandLineContext.java.old Thu Mar 21 17:01:27 2002 +++ org/apache/jasper/CommandLineContext.java Thu Mar 21 17:07:48 2002 @@ -77,6 +77,8 @@ import java.net.URLClassLoader; import java.net.MalformedURLException; +import java.util.StringTokenizer; + /** * Holds data used on a per-page compilation context that would otherwise spill * over to other pages being compiled. Things like the taglib classloaders @@ -236,12 +238,72 @@ } else { packageName += pathName.replace('/', '.'); } + + // mangle package if necessary + StringTokenizer st = new StringTokenizer(packageName, .); + StringBuffer mangledPackageName = new StringBuffer(); + while (st.hasMoreTokens()) { + if (mangledPackageName.length() 0) + mangledPackageName.append(.); + String tok = st.nextToken(); + + for (int i = 0; i keywords.length; i++) { + if (tok.equals(keywords[i])) { + tok += %; + }; + }; + + if (Character.isJavaIdentifierStart(tok.charAt(0))) + mangledPackageName.append(tok.charAt(0)); + else + mangledPackageName.append(mangleChar(tok.charAt(0))); + for (int i = 1; i tok.length(); i++) { + if (Character.isJavaIdentifierPart(tok.charAt(i))) + mangledPackageName.append(tok.charAt(i)); + else + mangledPackageName.append(mangleChar(tok.charAt(i))); + } + } + packageName = mangledPackageName.toString(); + //strip off any leading '.' in the package name if (!packageName.equals() packageName.charAt(0) == '.') { packageName = packageName.substring(1); } return packageName; } + +public static String [] keywords = { +abstract, boolean, break, byte, +case, catch, char, class, +const, continue, default, do, +double, else, extends, final, +finally, float, for, goto, +if, implements, import, +instanceof, int, interface, +long, native, new, package, +private, protected, public, +return, short, static, super, +switch, synchronized, this, +throw, throws, transient, +try, void, volatile, while +}; + +private static final String mangleChar(char ch) { + +if(ch == File.separatorChar) { + ch = '/'; + } + String s = Integer.toHexString(ch); + int nzeros = 5 - s.length(); + char[] result = new char[6]; + result[0] = '_'; + for (int i = 1; i = nzeros; i++) + result[i] = '0'; + for (int i = nzeros+1, j = 0; i 6; i++, j++) + result[i] = s.charAt(j); + return new String(result); +} /** * Full path name of the Java file into which the servlet is being -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat-connectors/webapp INSTALL.txtREADME.txt
on 3/21/02 5:49 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: +NO, IT DOES NOT RUN WITH WINDOWS (your images don't appear and the +whole thing hangs?) AND SINCE I DON'T USE NEITHER POSSESS A MICROSOFT +WINDOWS BASED MACHINE, THERE ARE NO CURRENT PLANS ON MAKING IT WORK +OVER THERE (from my side). DON'T USE NEITHER? Bad bad bad english. If you write it in Italian it will be easier to read. :-) -jon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
J-T-C util/.../res/StringManager.java is from jakarta branch
While working on sync'ing the util portion of J-T-C with Tomcat 3.3.1, the version for JTC/util/java/org/apache/tomcat/util/res/StringManager.java was found to be 1.1.1.1. The default branch is somehow set to the jakarta branch. All the other files I have looked at are coming from the HEAD branch. Is this something I should be concerned with? I haven't found anything in WinCvs that would obviously set the default branch back to HEAD for StringManager.java. Recomendations? Cheers, Larry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [VOTE] Tomcat 4.0.4 Beta 2 / Coyote 1.0 Beta 4 release
Tomcat 4.0.4 Beta 2 release: ballot +1 [ ] I support the release, and I will help +0 [X] I support the release -0 [ ] I don't support the release -1 [ ] I'm against the release because: /ballot Inclusion of the Coyote binaries: ballot +1 [X] Yes -1 [ ] No /ballot -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java
manveen 02/03/21 18:42:42 Modified:catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java Log: fix for createUserDatabaseRealm Revision ChangesPath 1.19 +9 -8 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java Index: MBeanFactory.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- MBeanFactory.java 22 Mar 2002 01:21:55 - 1.18 +++ MBeanFactory.java 22 Mar 2002 02:42:42 - 1.19 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.18 2002/03/22 01:21:55 manveen Exp $ - * $Revision: 1.18 $ - * $Date: 2002/03/22 01:21:55 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v 1.19 2002/03/22 02:42:42 manveen Exp $ + * $Revision: 1.19 $ + * $Date: 2002/03/22 02:42:42 $ * * * @@ -116,7 +116,7 @@ * codeorg.apache.catalina.core.StandardServer/code component./p * * @author Amy Roh - * @version $Revision: 1.18 $ $Date: 2002/03/22 01:21:55 $ + * @version $Revision: 1.19 $ $Date: 2002/03/22 02:42:42 $ */ public class MBeanFactory extends BaseModelMBean { @@ -287,7 +287,7 @@ } else if (tname.equals(Engine)) { engine.setLogger(fileLogger); } else if (tname.equals(Host)) { -Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +Host host = (Host) engine.findChild(pname.getKeyProperty(name)); host.setLogger(fileLogger); } @@ -918,7 +918,8 @@ // Add the new instance to its parent component ObjectName pname = new ObjectName(parent); String type = pname.getKeyProperty(type); -String tname = findObjectName(type); +//String tname = findObjectName(type); +String tname = type; Server server = ServerFactory.getServer(); Service service = server.findService(pname.getKeyProperty(service)); Engine engine = (Engine) service.getContainer(); @@ -930,12 +931,12 @@ } else if (tname.equals(Engine)) { engine.setRealm(realm); } else if (tname.equals(Host)) { -Host host = (Host) engine.findChild(pname.getKeyProperty(host)); +Host host = (Host) engine.findChild(pname.getKeyProperty(name)); host.setRealm(realm); } // Return the corresponding MBean name -ManagedBean managed = registry.findManagedBean(UserDatabseRealm); +ManagedBean managed = registry.findManagedBean(UserDatabaseRealm); ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), realm); return (oname.toString()); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade ServletWriterFacade.java ServletOutputStreamFacade.java ServletInputStreamFacade.java ServletContextFacade.java HttpSessionFacade.java HttpServletResponseFacade.java HttpServletRequestFacade.java
larryi 02/03/21 18:54:34 Modified:src/facade22/org/apache/tomcat/facade ServletWriterFacade.java ServletOutputStreamFacade.java ServletInputStreamFacade.java ServletContextFacade.java HttpSessionFacade.java HttpServletResponseFacade.java HttpServletRequestFacade.java Log: Make facade classes public so introspection can call public methods Revision ChangesPath 1.5 +1 -1 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletWriterFacade.java Index: ServletWriterFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletWriterFacade.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ServletWriterFacade.java 27 Feb 2001 02:42:38 - 1.4 +++ ServletWriterFacade.java 22 Mar 2002 02:54:34 - 1.5 @@ -78,7 +78,7 @@ * @author Costin Manolache [[EMAIL PROTECTED]] */ // XXX hack - public will be removed after we add the CharBuffer and we fix the converter -final class ServletWriterFacade extends PrintWriter { +public final class ServletWriterFacade extends PrintWriter { Response resA; OutputBuffer ob; 1.4 +1 -1 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java Index: ServletOutputStreamFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ServletOutputStreamFacade.java23 May 2001 03:22:15 - 1.3 +++ ServletOutputStreamFacade.java22 Mar 2002 02:54:34 - 1.4 @@ -68,7 +68,7 @@ /** * */ -final class ServletOutputStreamFacade extends ServletOutputStream { +public final class ServletOutputStreamFacade extends ServletOutputStream { protected boolean closed = false; Response resA; 1.7 +1 -1 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletInputStreamFacade.java Index: ServletInputStreamFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletInputStreamFacade.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ServletInputStreamFacade.java 2 Oct 2001 05:38:21 - 1.6 +++ ServletInputStreamFacade.java 22 Mar 2002 02:54:34 - 1.7 @@ -73,7 +73,7 @@ * This will also deal with the contentLength limit. * bImportant/b Only the methods in ServletInputStream can be public. */ -final class ServletInputStreamFacade extends ServletInputStream { +public final class ServletInputStreamFacade extends ServletInputStream { private int bytesRead = 0; // Stop after reading ContentLength bytes. private int limit = -1; 1.8 +1 -1 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletContextFacade.java Index: ServletContextFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletContextFacade.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ServletContextFacade.java 13 Oct 2001 04:22:51 - 1.7 +++ ServletContextFacade.java 22 Mar 2002 02:54:34 - 1.8 @@ -80,7 +80,7 @@ * @author James Todd [[EMAIL PROTECTED]] * @author Harish Prabandham */ -final class ServletContextFacade implements ServletContext { +public final class ServletContextFacade implements ServletContext { // Use the strings from core private StringManager sm = StringManager.getManager(org.apache.tomcat.resources); private ContextManager contextM; 1.18 +1 -1 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpSessionFacade.java Index: HttpSessionFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpSessionFacade.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- HttpSessionFacade.java4 Oct 2001 02:20:04 - 1.17 +++ HttpSessionFacade.java22 Mar 2002 02:54:34 - 1.18 @@ -89,7 +89,7 @@ * @author James Todd [[EMAIL PROTECTED]] * @author [EMAIL PROTECTED] */ -final class HttpSessionFacade implements HttpSession { +public final class HttpSessionFacade implements HttpSession { private static StringManager sm =
cvs commit: jakarta-tomcat/src/native/mod_jk/apache1.3 build-unix.sh
larryi 02/03/21 18:57:48 Modified:src/native/mod_jk/apache1.3 build-unix.sh Log: Make script usable on more Unix systems. Submitted by: Ben Laurie Revision ChangesPath 1.2 +2 -2 jakarta-tomcat/src/native/mod_jk/apache1.3/build-unix.sh Index: build-unix.sh === RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/build-unix.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- build-unix.sh 26 Aug 2000 01:21:39 - 1.1 +++ build-unix.sh 22 Mar 2002 02:57:48 - 1.2 @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: build-unix.sh,v 1.1 2000/08/26 01:21:39 alex Exp $ +# $Id: build-unix.sh,v 1.2 2002/03/22 02:57:48 larryi Exp $ # build.sh for mod_jk.so # Usage: build-unix.sh @@ -37,7 +37,7 @@ # Figure out INCLUDE directories # use find to pick the right include directories for current machine -JAVA_INCLUDE=`find ${JAVA_HOME}/include -type d -printf \-I %p \` || echo find failed, edit build-unix.sh source to fix +JAVA_INCLUDE=`find ${JAVA_HOME}/include -type d | sed 's/^/-I /g'` || echo find failed, edit build-unix.sh source to fix # if find fails, use (uncomment) the following instead, substituting your # platform for linux -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6816] - build-unix.sh doesn't work on most standard Unixes
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6816. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6816 build-unix.sh doesn't work on most standard Unixes [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-03-22 02:58 --- The patch has been applied and will appear in Tomcat 3.3.1. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 7344] New: - Tomcat appears to be case-sensitive with regard to the token Basic in Authorization request parameter
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7344. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7344 Tomcat appears to be case-sensitive with regard to the token Basic in Authorization request parameter Summary: Tomcat appears to be case-sensitive with regard to the token Basic in Authorization request parameter Product: Tomcat 4 Version: 4.0 Final Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] While using OpenSTA for developing some automated tests, I noticed that it generates its Authorization string as follows: Authorization: BASIC lkjdflkjfdslkjfsdlkjsfd This seemed to cause problems with Tomcat 4, until we manually forced the string to be: Authorization: Basic lkjfdjkldsjklfdsjkllkjkjl RFC for HTTP says that the token identifying the authorization type should be case-insensitive (http://www-old.ics.uci.edu/pub/ietf/http/rfc1945.html#AA) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/proposals/StreamHandler readme
larryi 02/03/21 19:24:33 Added: proposals/StreamHandler readme Log: Add some simple documentation Revision ChangesPath 1.1 jakarta-tomcat/proposals/StreamHandler/readme Index: readme === $Id: readme,v 1.1 2002/03/22 03:24:32 larryi Exp $ Release Notes for: = StreamHandler 1.0 = 0. TABLE OF CONTENTS: 1. Introduction 2. Installation = 1. INTRODUCTION StreamHandler is an add-on module for Tomcat 3.3(a) and later (i.e Tomcat 3.3.x versions). The purpose of this add-on module is to register a URLStreamHandlerFactory that: 1. Loads defined handlers from the ContextClassLoader. This allows handlers from the web application's classloader to be used by the factory. 2. Returns a SteamHandler that doesn't support connections for protocols that don't have a defined handler. This allows for URL manipulation. = 2. INSTALLATION To install simply place the StreamHandler.war in Tomcat's modules directory. When Tomcat is started, this War file will be expanded and the StreamHandler module defined in the WEB-INF/interceptor.xml file will be added to the server. This allows it to participate in how Tomcat behaves. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/jasper/resources messages.properties
larryi 02/03/21 19:34:30 Modified:src/share/org/apache/jasper/resources messages.properties Log: Fix broken line. Submitted by: Konrad Kolosowski Revision ChangesPath 1.27 +2 -3 jakarta-tomcat/src/share/org/apache/jasper/resources/messages.properties Index: messages.properties === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/resources/messages.properties,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- messages.properties 30 Nov 2001 22:20:07 - 1.26 +++ messages.properties 22 Mar 2002 03:34:30 - 1.27 @@ -1,4 +1,4 @@ -# $Id: messages.properties,v 1.26 2001/11/30 22:20:07 larryi Exp $ +# $Id: messages.properties,v 1.27 2002/03/22 03:34:30 larryi Exp $ # # Default localized string information # Localized this the Default Locale as is en_US @@ -109,8 +109,7 @@ jsp.error.setproperty.paramOrValue=setProperty: either param or value can be present jsp.error.setproperty.arrayVal=setProperty: can't set array property {0} through a string constant value jsp.warning.keepgen=Warning: Invalid value for the initParam keepgenerated. Will use the default value of \false\ -jsp.warning.largeFile=Warning: Invalid value for the initParam -largeFile. Will use the default value of \true\ +jsp.warning.largeFile=Warning: Invalid value for the initParam largeFile. Will use the default value of \true\ jsp.warning.mappedFile=Warning: Invalid value for the initParam mappedFile. Will use the default value of \false\ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources messages.properties
larryi 02/03/21 19:35:27 Modified:jasper/src/share/org/apache/jasper/resources messages.properties Log: Fix broken line. Submitted by: Konrad Kolosowski Revision ChangesPath 1.25 +2 -3 jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources/messages.properties Index: messages.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources/messages.properties,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- messages.properties 3 Jan 2002 08:53:31 - 1.24 +++ messages.properties 22 Mar 2002 03:35:27 - 1.25 @@ -1,4 +1,4 @@ -# $Id: messages.properties,v 1.24 2002/01/03 08:53:31 remm Exp $ +# $Id: messages.properties,v 1.25 2002/03/22 03:35:27 larryi Exp $ # # Default localized string information # Localized this the Default Locale as is en_US @@ -111,8 +111,7 @@ jsp.error.setproperty.paramOrValue=setProperty: either param or value can be present jsp.error.setproperty.arrayVal=setProperty: can't set array property {0} through a string constant value jsp.warning.keepgen=Warning: Invalid value for the initParam keepgenerated. Will use the default value of \false\ -jsp.warning.largeFile=Warning: Invalid value for the initParam -largeFile. Will use the default value of \true\ +jsp.warning.largeFile=Warning: Invalid value for the initParam largeFile. Will use the default value of \true\ jsp.warning.mappedFile=Warning: Invalid value for the initParam mappedFile. Will use the default value of \false\ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources messages.properties
larryi 02/03/21 19:36:15 Modified:jasper/src/share/org/apache/jasper/resources Tag: tomcat_40_branch messages.properties Log: Fix broken line. Submitted by: Konrad Kolosowski Revision ChangesPath No revision No revision 1.20.2.5 +2 -3 jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources/messages.properties Index: messages.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/resources/messages.properties,v retrieving revision 1.20.2.4 retrieving revision 1.20.2.5 diff -u -r1.20.2.4 -r1.20.2.5 --- messages.properties 3 Jan 2002 10:44:57 - 1.20.2.4 +++ messages.properties 22 Mar 2002 03:36:15 - 1.20.2.5 @@ -1,4 +1,4 @@ -# $Id: messages.properties,v 1.20.2.4 2002/01/03 10:44:57 remm Exp $ +# $Id: messages.properties,v 1.20.2.5 2002/03/22 03:36:15 larryi Exp $ # # Default localized string information # Localized this the Default Locale as is en_US @@ -111,8 +111,7 @@ jsp.error.setproperty.paramOrValue=setProperty: either param or value can be present jsp.error.setproperty.arrayVal=setProperty: can't set array property {0} through a string constant value jsp.warning.keepgen=Warning: Invalid value for the initParam keepgenerated. Will use the default value of \false\ -jsp.warning.largeFile=Warning: Invalid value for the initParam -largeFile. Will use the default value of \true\ +jsp.warning.largeFile=Warning: Invalid value for the initParam largeFile. Will use the default value of \true\ jsp.warning.mappedFile=Warning: Invalid value for the initParam mappedFile. Will use the default value of \false\ jsp.warning.sendErrToClient=Warning: Invalid value for the initParam sendErrToClient. Will use the default value of \false\ jsp.warning.classDebugInfo=Warning: Invalid value for the initParam classdebuginfo. Will use the default value of \false\ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/http package.html
larryi 02/03/21 19:41:57 Modified:src/share/org/apache/tomcat/util/buf package.html Added: src/share/org/apache/tomcat/util/collections package.html src/share/org/apache/tomcat/util/http package.html Log: Port some package.html updates from jakarta-tomcat-connectors Revision ChangesPath 1.2 +4 -2 jakarta-tomcat/src/share/org/apache/tomcat/util/buf/package.html Index: package.html === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/buf/package.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- package.html 26 May 2001 17:12:26 - 1.1 +++ package.html 22 Mar 2002 03:41:57 - 1.2 @@ -1,4 +1,5 @@ -H1Buffers and Encodingsh1 +htmlbody +H1Buffers and Encodings/h1 This package contains buffers and utils to perform encoding/decoding of buffers. That includes byte to char conversions, URL encodings, etc. @@ -17,4 +18,5 @@ My benchmarks ( I'm costin :-) show only small differences between C2B, B2C and hand-written codders/decoders, so UTF8Decoder may be disabled. -p \ No newline at end of file +p +/body/html 1.3 +0 -0 jakarta-tomcat/src/share/org/apache/tomcat/util/collections/package.html 1.3 +0 -0 jakarta-tomcat/src/share/org/apache/tomcat/util/http/package.html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java
remm02/03/21 19:54:33 Modified:coyote/src/java/org/apache/coyote/tomcat4 CoyoteRequest.java Log: - Fix bug 8646: dispatcher.forward() is confused when using special servlet mapping URLs. - Will be ported to the various other branches once I test that change more. Revision ChangesPath 1.12 +14 -5 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java Index: CoyoteRequest.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- CoyoteRequest.java19 Mar 2002 20:34:41 - 1.11 +++ CoyoteRequest.java22 Mar 2002 03:54:33 - 1.12 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v 1.11 2002/03/19 20:34:41 remm Exp $ - * $Revision: 1.11 $ - * $Date: 2002/03/19 20:34:41 $ + * $Header: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java,v 1.12 2002/03/22 03:54:33 remm Exp $ + * $Revision: 1.12 $ + * $Date: 2002/03/22 03:54:33 $ * * * @@ -122,7 +122,7 @@ * * @author Remy Maucherat * @author Craig R. McClanahan - * @version $Revision: 1.11 $ $Date: 2002/03/19 20:34:41 $ + * @version $Revision: 1.12 $ $Date: 2002/03/22 03:54:33 $ */ public class CoyoteRequest @@ -1035,7 +1035,16 @@ String servletPath = (String) getAttribute(Globals.SERVLET_PATH_ATTR); if (servletPath == null) servletPath = getServletPath(); -String relative = RequestUtil.normalize(servletPath + /../ + path); + +int pos = servletPath.lastIndexOf('/'); +String relative = null; +if (pos 0) { +relative = RequestUtil.normalize +(servletPath.substring(0, pos + 1) + path); +} else { +relative = RequestUtil.normalize(servletPath + path); +} + return (context.getServletContext().getRequestDispatcher(relative)); } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6846] - dispatcher.forward() is confused when using special servlet mapping URLs
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6846. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6846 dispatcher.forward() is confused when using special servlet mapping URLs [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-03-22 03:58 --- Fixed in nightly for 03/22. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat RELEASE-NOTES-3.3.1.txt
larryi 02/03/21 20:06:23 Modified:.RELEASE-NOTES-3.3.1.txt Log: Document recent changes Revision ChangesPath 1.48 +15 -1 jakarta-tomcat/RELEASE-NOTES-3.3.1.txt Index: RELEASE-NOTES-3.3.1.txt === RCS file: /home/cvs/jakarta-tomcat/RELEASE-NOTES-3.3.1.txt,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- RELEASE-NOTES-3.3.1.txt 15 Mar 2002 14:57:53 - 1.47 +++ RELEASE-NOTES-3.3.1.txt 22 Mar 2002 04:06:23 - 1.48 @@ -3,7 +3,7 @@ Release Notes = -$Id: RELEASE-NOTES-3.3.1.txt,v 1.47 2002/03/15 14:57:53 larryi Exp $ +$Id: RELEASE-NOTES-3.3.1.txt,v 1.48 2002/03/22 04:06:23 larryi Exp $ This document describes the changes that have been made since the @@ -170,6 +170,10 @@ and to be able to perform prompting for context local modules. Added a readme file to document its use. +[F] The facade classes in org.apache.tomcat.facade are now declared + as public classes. This allows their methods to be called + using introspection from a web application. + Server: @@ -225,6 +229,9 @@ add-on to set SSL socket attributes, such as the keystore and certificate passwords. +[F] A couple of off by 1 bugs were fixed in the CharChunk and + ByteChunk utility classes. + 1657 JSPs with tag names that contain '-' or '.' will now compile without [b1] an Invalid expression error @@ -322,6 +329,13 @@ [F] PoolTcpConnector was modified to allow the PasswordPrompter add-on module to successfully set connection attributes for secure connections. + +[F] conf/jk/wrapper.properties was updated to work with a spaces in the + JDK path and a wrapper.jvm.options property was added to make + it easier to add options. + +[F] conf/jk/uriworkermap.properties and conf/jk/obj.conf example files + wer updated to be more current. 4313 Bug in property substitution for server.xml and apps.xml files was [b1] fixed. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log LogHandler.java
larryi 02/03/21 20:12:01 Modified:util/java/org/apache/tomcat/util IntrospectionUtils.java util/java/org/apache/tomcat/util/buf DateTool.java util/java/org/apache/tomcat/util/log LogHandler.java Added: util/java/org/apache/tomcat/util/buf/res LocalStrings_ja.properties Log: Port missing changes from jakarta-tomcat. res/StringManager.java is the only remaining file that still needs updates. Revision ChangesPath 1.2 +28 -7 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java Index: IntrospectionUtils.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/IntrospectionUtils.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- IntrospectionUtils.java 26 Jan 2002 07:29:03 - 1.1 +++ IntrospectionUtils.java 22 Mar 2002 04:12:01 - 1.2 @@ -189,7 +189,10 @@ home=new File(./).getCanonicalPath(); } File f=new File( home ); - File f1=new File ( f, ..); + String parentDir = f.getParent(); + if(parentDir == null) + parentDir = home; // unix style + File f1=new File ( parentDir ); install = f1.getCanonicalPath(); if( installSysProp != null ) System.getProperties().put( installSysProp, install ); @@ -204,7 +207,10 @@ if( new File( fname ).exists()) { try { File f=new File( path ); - File f1=new File ( f, ..); + String parentDir = f.getParent(); + if( parentDir == null ) + parentDir = path; // unix style + File f1=new File ( parentDir ); install = f1.getCanonicalPath(); if( installSysProp != null ) System.getProperties().put( installSysProp, @@ -475,9 +481,24 @@ public static void addToolsJar( Vector v ) { try { - v.addElement( new URL( file, , -System.getProperty( java.home ) + -/../lib/tools.jar)); +// Add tools.jar in any case +File f=new File( System.getProperty( java.home ) + + /../lib/tools.jar); + +if( ! f.exists() ) { +// On some systems java.home gets set to the root of jdk. +// That's a bug, but we can work around and be nice. +f=new File( System.getProperty( java.home ) + + /lib/tools.jar); +if( f.exists() ) { +System.out.println(Detected strange java.home value + + System.getProperty( java.home ) + + , it should point to jre); +} +} +URL url=new URL( file, , f.getAbsolutePath() ); + + v.addElement( url ); } catch ( MalformedURLException ex ) { ex.printStackTrace(); } @@ -571,11 +592,11 @@ { Vector jarsV = new Vector(); if( dir!=null ) { - addToClassPath( jarsV, dir ); - // Add dir/classes, if it exists + // Add dir/classes first, if it exists URL url=getURL( dir, classes); if( url!=null ) jarsV.addElement(url); + addToClassPath( jarsV, dir ); } if( cpath != null ) 1.5 +2 -2 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/DateTool.java Index: DateTool.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/DateTool.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- DateTool.java 31 Dec 2001 18:20:04 - 1.4 +++ DateTool.java 22 Mar 2002 04:12:01 - 1.5 @@ -142,7 +142,7 @@ /** */ public static String format1123( Date d ) { -long dt = d.getTime() % 1000; +long dt = d.getTime() / 1000; if ((rfc1123DS != null) (dt == rfc1123Sec)) return rfc1123DS; rfc1123DS = rfc1123Format.format( d ); @@ -151,7 +151,7 @@ } public static String format1123( Date d,DateFormat df ) { -long dt = d.getTime() % 1000; +long dt = d.getTime() / 1000; if ((rfc1123DS != null) (dt == rfc1123Sec)) return rfc1123DS;
socket error mod_jk Tomcat 4 Apache HP-UX 11
Hi all, Please CC any replies to [EMAIL PROTECTED] as I am not sure that I have successfully signed up to the mailing list. I have been trying to run Apache 1.3 with Tomcat 4 on HP-UX 11, but consistently get a socket error, resulting in a '500 internal server error' at the browser. As far as I can see the problem is in the function 'jk_open_socket' in the file jk_connect.c The code enters a do/while loop at line 114. It attempts to open a socket; ret = connect(sock, (struct sockaddr *)addr, sizeof(struct sockaddr_in)); but the variable 'ret' comes back as -1. the while condition checks that ret == -1 and that EINTR (which is equal to 4) == errno BUT; errno appears only to be set inside an #ifdef WIN32 macro. errno is actually returned as 239 consistently, but I think this might be just a red herring, as it only seems to appear inside #ifdef WIN32 macros, throughout the code. The result is though that loop always drops out. This function is called three times for each request in a loop outside jk_open_socket, but fails each time. ret is always -1. I am not a C programmer, or a Unix programmer, so I got a bit lost at this point. I am searching the web for possible answers, but any help would be appreciated. Is seems unlikely that this bug exists for all non-win32 systems, but perhaps it only fails to connect on HP-UX? Is there some other environmental problem? I've added a few more details below. Thanks in advance, Apache version 1.3.20 Tomcat version 4.0.2 HP-UX B.11.00 U 9000/800 167991567 unlimited-user license mod_jk.so - built on HP-UX B.11.00 A 9000/785 2014322848 two-user license - from Tomcat 3.3a - using gcc 3.0 I set JkLogLevel to 'debug' in my httpd.conf and got the following out put in the JkLogFile; ## [Thu Mar 21 12:04:09 2002] [jk_uri_worker_map.c (159)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Thu Mar 21 12:04:09 2002] [jk_uri_worker_map.c (199)]: Into jk_uri_worker_map_t::uri_worker_map_open [Thu Mar 21 12:04:09 2002] [jk_uri_worker_map.c (217)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0 [Thu Mar 21 12:04:09 2002] [jk_uri_worker_map.c (324)]: jk_uri_worker_map_t::uri_worker_map_open, done [Thu Mar 21 12:04:09 2002] [jk_worker.c (82)]: Into wc_open [Thu Mar 21 12:04:09 2002] [jk_worker.c (207)]: Into build_worker_map, creating 2 workers [Thu Mar 21 12:04:09 2002] [jk_worker.c (213)]: build_worker_map, creating worker admin [Thu Mar 21 12:04:09 2002] [jk_worker.c (138)]: Into wc_create_worker [Thu Mar 21 12:04:09 2002] [jk_worker.c (152)]: wc_create_worker, about to create instance admin of ajp13 [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory [Thu Mar 21 12:04:09 2002] [jk_worker.c (161)]: wc_create_worker, about to validate and init admin [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for worker admin contact is wclopweb:8009 [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (482)]: Into jk_worker_t::init [Thu Mar 21 12:04:09 2002] [jk_worker.c (177)]: wc_create_worker, done [Thu Mar 21 12:04:09 2002] [jk_worker.c (223)]: build_worker_map, removing old admin worker [Thu Mar 21 12:04:09 2002] [jk_worker.c (213)]: build_worker_map, creating worker web [Thu Mar 21 12:04:09 2002] [jk_worker.c (138)]: Into wc_create_worker [Thu Mar 21 12:04:09 2002] [jk_worker.c (152)]: wc_create_worker, about to create instance web of ajp13 [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (922)]: Into ajp13_worker_factory [Thu Mar 21 12:04:09 2002] [jk_worker.c (161)]: wc_create_worker, about to validate and init web [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (443)]: Into jk_worker_t::validate [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (456)]: In jk_worker_t::validate for worker web contact is wclopweb:8008 [Thu Mar 21 12:04:09 2002] [jk_ajp13_worker.c (482)]: Into jk_worker_t::init [Thu Mar 21 12:04:09 2002] [jk_worker.c (177)]: wc_create_worker, done [Thu Mar 21 12:04:09 2002] [jk_worker.c (223)]: build_worker_map, removing old web worker [Thu Mar 21 12:04:09 2002] [jk_worker.c (235)]: build_worker_map, done [Thu Mar 21 12:04:09 2002] [jk_worker.c (102)]: wc_open, done [Thu Mar 21 12:04:14 2002] [jk_uri_worker_map.c (159)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Thu Mar 21 12:04:14 2002] [jk_uri_worker_map.c (199)]: Into jk_uri_worker_map_t::uri_worker_map_open [Thu Mar 21 12:04:14 2002] [jk_uri_worker_map.c (217)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0 [Thu Mar 21 12:04:14 2002] [jk_uri_worker_map.c (324)]: jk_uri_worker_map_t::uri_worker_map_open, done [Thu Mar 21 12:04:14 2002] [jk_worker.c (82)]: Into wc_open [Thu Mar 21 12:04:14 2002]
DO NOT REPLY [Bug 7356] New: - Jasper cannot find setter for Custom JSP Tag attribute 'returns' in Tomcat 4.0.3
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7356. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7356 Jasper cannot find setter for Custom JSP Tag attribute 'returns' in Tomcat 4.0.3 Summary: Jasper cannot find setter for Custom JSP Tag attribute 'returns' in Tomcat 4.0.3 Product: Tomcat 4 Version: 4.0.3 Final Platform: PC URL: http://131.94.143.135:8080/cop4540/editall.jsp OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] For some reason, when trying to use Custom JSP Tag libraries with Tomcat 4.0.3 Jasper throws a CompileException complaining that the setter for the attribute named 'returns' cannot be found. The error does not occur in Tomcat 4.0, it used to compile and work properly on that version. The JSP page calls the tag as follows: PC:SQLForEach returns=true sql=SELECT Name FROM CHARACTERISTICS connection=charconnection //content /PC:SQLForEach The section of the TLD that defines the tag is: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_2.dtd; taglib !-- some stuff -- tag nameSQLForEach/name tag-classjsptags.SQLForEach/tag-class body-contentJSP/body-content description some description here /description attribute namereturns/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute attribute namesql/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute nameconnection/name requiredtrue/required rtexprvaluetrue/rtexprvalue /attribute attribute namemaxCount/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute attribute nameminCount/name requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute /tag !-- some stuff -- /taglib The tag in question, SQLForEach, contains the methods: public void setReturns(boolean b) { //code } public boolean getReturns() { //code } The error has been replicated in Tomcat 4.0.3 on Linux Mandrake 7.0 (Intel Pentium II, 64MB RAM), Win98 (Intel Pentium2 233, 64MB RAM) and Win2K (AMD Duron 600, 128MB RAM). Included is the url of a JSP page that uses the tag. The stack trace is: org.apache.jasper.compiler.CompileException: /editall.jsp(34,0) Unable to find setter method for attribute: returns at org.apache.jasper.compiler.TagBeginGenerator.generateSetters (TagBeginGenerator.java:214) at org.apache.jasper.compiler.TagBeginGenerator.generateServiceMethodStatements (TagBeginGenerator.java:332) at org.apache.jasper.compiler.TagBeginGenerator.generate (TagBeginGenerator.java:394) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate (JspParseEventListener.java:834) at org.apache.jasper.compiler.JspParseEventListener.generateAll (JspParseEventListener.java:241) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing (JspParseEventListener.java:197) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary (JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:243)