DO NOT REPLY [Bug 6215] New: - ServletRequest#getRemoteAddr() returns 127.0.0.1 after 2 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=6215. 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=6215 ServletRequest#getRemoteAddr() returns 127.0.0.1 after 2 requests. Summary: ServletRequest#getRemoteAddr() returns 127.0.0.1 after 2 requests. Product: Tomcat 3 Version: 3.3 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Servlet AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi ! I am testing Apache-tomcat 3.3a on Windows 2000 platform. and I find an unexpected result. I started up the tomcat (stand alone) ,and displayed default example URI below several times from another machine (over LAN). (Request Info Example) /examples/servlet/RequestInfoExample It shows correct URI 2times.But It shows 127.0.0.1 after that requests. Does ServletRequest#getRemoteAddr() have some trouble? With Regards Ryo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 5746] - Settting an error page for the status code 500 doesn't display the page.
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=5746. 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=5746 Settting an error page for the status code 500 doesn't display the page. --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 11:17 --- Created an attachment (id=1120) To test status code (/test/errorCode?statusCode=405) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [PATCH] RETRY: Tomcat 4.0 Docs SSL-Howto
If there are any further questions or comments - just hit reply... I like it - If noone complains I will try to commit it - I just ask pedro to send me a plain copy, so let me take at look at ;) PS: Christopher and Eric should take a look also ;) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: cvs commit: jakarta-tomcat RELEASE-PLAN-3.3.1.txt
+5958 Wrong mod_jk.conf for path pattern Easy enough to fix. The only question is if we want to change only ${Server}Config, or do we want to change the mod_jk behavior so that the two statements: JkMount /myApp/foobar/* ajp13 and JkMount /myApp/foobar* ajp13 are the same (i.e. more like servlet-mapping)? Update only Server config since many production sites use the current JkMount /myApp/foobar/* ajp13 way to map their WEBAPP. Just to avoid us to upgrade related bugs reports ;) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6218] New: - Relative links broken for servlets
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=6218. 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=6218 Relative links broken for servlets Summary: Relative links broken for servlets Product: Tomcat 4 Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Installable Packages AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The links on the static pages in the servlets section of the examples webapp are all relative, allowing you to deploy the app anywhere, however the servlets themselves generate absolute links to /examples/. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6218] - Relative links broken for servlets
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=6218. 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=6218 Relative links broken for servlets --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 13:04 --- Created an attachment (id=1123) Fix -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs/config http11.xml
jfclere 02/02/04 05:36:07 Modified:webapps/tomcat-docs/config http11.xml Log: Arrange webapp link. Revision ChangesPath 1.3 +1 -1 jakarta-tomcat-4.0/webapps/tomcat-docs/config/http11.xml Index: http11.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/config/http11.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- http11.xml25 Aug 2001 01:14:13 - 1.2 +++ http11.xml4 Feb 2002 13:36:07 - 1.3 @@ -29,7 +29,7 @@ pIf you wish to configure the strongConnector/strong that is used for connections to web servers using the WARP protocol (such as the codemod_webapp/code connector for Apache 1.3), see - a href=warp.htmlhere/a instead./p + a href=webapp.htmlhere/a instead./p pAt server startup time, this strongConnector/strong will create a number of request processing threads (based on the value configured for -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6223] New: - setContentType changes HTTP headers to type specfied
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=6223. 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=6223 setContentType changes HTTP headers to type specfied Summary: setContentType changes HTTP headers to type specfied Product: Tomcat 4 Version: 4.0.1 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: HTTP/1.1 Connector AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I do a setContentType(text/xml;charset=UnicodeLittle) on the response object and the response headers are returned in UnicodeLittle not ASCII. If I'm not mistaken the RFC2616 says they should be ASCII. I only expected the body of the request to be UnicodeLittle not the headers and status line. To make things more confusing the chunk encoding lines are in ASCII and not UnicodeLittle. If the status line is encoding along the headers I expected the whole response to be encoded. Thanks for any help. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/tomcat-docs/config webapp.xml
jfclere 02/02/04 10:03:13 Modified:webapps/tomcat-docs/config webapp.xml Log: Start replacing the FIXMEs by something a little better. Revision ChangesPath 1.2 +56 -5 jakarta-tomcat-4.0/webapps/tomcat-docs/config/webapp.xml Index: webapp.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/tomcat-docs/config/webapp.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- webapp.xml25 Jan 2002 15:21:34 - 1.1 +++ webapp.xml4 Feb 2002 18:03:12 - 1.2 @@ -96,10 +96,49 @@ It supports the following additional attributes (in addition to the common attributes listed above):/p - attributes/ + attributes - pstrongFIXME/strong - Document any additional configuration attributes - supported by the WARP connector./p +attribute name=acceptCount required=false + pThe maximum queue length for incoming connection requests when + all possible request processing threads are in use. Any requests + received when the queue is full will be refused. The default + value is 10./p +/attribute + +attribute name=debug required=false + pThe debugging detail level of log messages generated by this + component, with higher numbers creating more detailed output. + If not specified, this attribute is set to zero (0)./p +/attribute + +attribute name=maxProcessors required=false + pThe maximum number of request processing threads to be created + by this strongConnector/strong, which therefore determines the + maximum number of simultaneous requests that can be handled. If + not specified, this attribute is set to 20./p +/attribute + +attribute name=minProcessors required=false + pThe number of request processing threads that will be created + when this strongConnector/strong is first started. This + attribute should be set to a value smaller than that set for + codemaxProcessors/code. The default value is 5./p +/attribute + +attribute name=port required=true + pThe TCP port number on which this strongConnector/strong + will create a server socket and await incoming connections. Your + operating system will allow only one server application to listen + to a particular port number on a particular IP address./p +/attribute + +attribute name=appBase required=false + pSet the applications base directory for strongHosts /strong + created via WARP. + The default value is webapps./p +/attribute + + /attributes /subsection @@ -108,8 +147,20 @@ section name=Nested Components - pstrongFIXME/strong - Document any use of a nested codeFactory/code - element for communicating with codemod_webapp/code over SSL./p + subsection name=WarpEngine + + pmod-webapp offers a specific Engine when running the + strongWebapp Connector/strong in its own + a href=service.htmlservice/a. + This Engine allows webapp to create and to map the + a href=host.htmlHosts/a corresponding to the VirtualHost defined in the + httpd.conf file./p + pThe standard implementation of strongWebapp Engine/strong is + strongorg.apache.catalina.connector.warp.WarpEngine/strong. + It supports the standard a href=engine.htmlEngine/a. + attributes. /p + + /subsection /section -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: cvs commit: jakarta-tomcat RELEASE-PLAN-3.3.1.txt
On Mon, 4 Feb 2002, Jonathan Reichhold wrote: /el-niño.jsp should be sent (per the w3c recommendation) as /el-nin%c3%b1o.jsp which is a UTF-8 encoded bytes sequences for any characters which aren't in the ~60 characters allowed from ASCII. The encoding used for the byte conversion is not specified in the official URI spec (RFC 2396), but the w3c in December recommended UTF-8 should be used by all. IE and Mozilla already appear to encode requests this way. The server is technically supposed to attempt to read the bytes as UTF-8 and decode with the platform default as a fallback. If UTF8 is sent - we're all happy, and %c3%b1 will be used in the encoded url ( regardless if the requests came url encoded or with binary UTF8 in it ). That assuming the char encoding is UTF8 for the body as well ( which should be in any browser that supports sending the URL as UTF8). Having the body and the URL in different encoding is very problematic. Regardless of W3C recommendations, the servlet spec requires 8859_1 if no encoding is detected ( which is a huge problem ). The current code can deal with the UTF8 corectly, but it can also deal with old browsers who will send the URL using the same encoding as the body ( if you are on a 8859_2 browser, it's likely that will be used for both, I doubt any browser will send UTF8 ). For the record, /el-niño.jsp is /el-nin%f1.jsp if the bytes are encoded via iso-latin-1. Any character 0x7f isn't safe will be encoded as 2-4 bytes under UTF-8. Certain byte sequences are also reserved. I've spent a long time with this trying to create truly internationalized code. Great to have you on tomcat-dev ! If you look at the Java 1.4 Release Candidate you will see that they now recognize in URLEncode and URLDecode that this is the correct behaviour. URLEncode and URLDecode have deprecated methods that don't pass in the encoding. I think they should default to UTF-8, but the default is the platform default. On java's URLEncode - yes, the default should be utf8 ( but it is the platform default ). On servlets - no, the spec is clear about that, the default is 8859_1, and there's little we can do about it ( except complain, which we did in the last year and so ). I spent a lot of time making sure all URLEncode/URLDecode are done with the right charset, i.e. whatever is detected from the request or session ( since most browsers today are just broken ) You can override the default to UTF8 - but that brakes the servlet spec and we can't ship with this setting on. And I'm sure there are many bugs and cases the code can't handle. The w3c has a good section on this at http://www.w3.org/International/O-URL-and-ident.html Yes, but what's important for now is the reality that most software is not designed with internationalization in mind ( and browsers are the the best example ) :-) Not sending the charset header when a non-standard encoding is used is absolutely stupid and against http1.1 spec - but it's what we have. Costin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6228] New: - res.sendError sends blank page.
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=6228. 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=6228 res.sendError sends blank page. Summary: res.sendError sends blank page. Product: Tomcat 4 Version: 4.0.1 Final Platform: Sun OS/Version: Solaris Status: NEW Severity: Critical Priority: Other Component: Webapp Connector AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have Tomcat 4.0.1 configured as a JSP/Servlet engin for Apache, using Webapp. The http service has been removed from server.xml. A servlet, not created from a JSP, has res.sendError(int, String) calls. When executed, only a blank page appears. Since all else works correctly, this might be a bug. Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6229] New: - Need way to specify where to write 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=6229. 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=6229 Need way to specify where to write catalina.out Summary: Need way to specify where to write catalina.out Product: Tomcat 4 Version: Nightly Build Platform: All OS/Version: Linux Status: NEW Severity: Enhancement Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Catalina's stdout and stderr streams are currently always written to $CATALINA_BASE/logs/catalina.out. This path hardcoding lacks flexibility, and would be better configurable. Attached is a patch which allows setting of the (optional) env var CATALINA_OUT to specify where you want the log file written. If no value is specified for CATALINA_OUT, a default of $CATALINA_BASE/logs/catalina.out (the current path) is used. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6215] - ServletRequest#getRemoteAddr() returns 127.0.0.1 after 2 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=6215. 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=6215 ServletRequest#getRemoteAddr() returns 127.0.0.1 after 2 requests. [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 19:07 --- *** This bug has been marked as a duplicate of 4564 *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 4564] - request.getRemoteAddr() and AccesLog not working
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=4564. 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=4564 request.getRemoteAddr() and AccesLog not working [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 19:07 --- *** Bug 6215 has been marked as a duplicate of this bug. *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
[PATCH] JspC package names
In 4.0.1, JspC commandline tool is not making package names that correspond to subdirectories in my context directory (i.e. I need /help/testhelp.jsp to become help/testhelp.java and be package help;). There is a setOutputInDirs method on the CommandLineContext that seems like it should toggle this feature. I think I'm patching this in the right place... I don't know for sure that setOutputInDirs is the correct attribute to piggy back on, but regardless I think other people may find this capability useful. Thanks a lot Mike Schrag --- JspC.java.orig Mon Feb 4 14:24:29 2002 +++ JspC.java Mon Feb 4 14:51:38 2002 @@ -346,6 +346,30 @@ if (dirset) { clctxt.setOutputInDirs(true); } + +if (dirset) { + String packageName = null; + StringBuffer packageNameStrBuf = new StringBuffer(); + if (targetPackage != null) { +packageNameStrBuf.append(targetPackage); + } + + java.util.StringTokenizer packageTokenizer = new +java.util.StringTokenizer(file.toString(), File.separator); + while (packageTokenizer.hasMoreTokens()) { +String token = packageTokenizer.nextToken(); +if (packageTokenizer.hasMoreElements()) { + if (packageNameStrBuf.length() 0) { +packageNameStrBuf.append(.); + } + packageNameStrBuf.append(token); +} + } + if (packageNameStrBuf.length() 0) { +packageName = packageNameStrBuf.toString(); + } + clctxt.setServletPackageName(packageName); +} + ArrayList urls = new ArrayList(); if (new File(clctxt.getRealPath(/)).exists()) { -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [PATCH] JspC package names
I think this has been fixed with the patch to correct bug 5471. That changes how package names are generated in CommandLineContext. I'm glad to see someone else is using jspc. It's been broken so often, I thought I was the only one. -Original Message- From: Mike Schrag [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: [PATCH] JspC package names In 4.0.1, JspC commandline tool is not making package names that correspond to subdirectories in my context directory (i.e. I need /help/testhelp.jsp to become help/testhelp.java and be package help;). There is a setOutputInDirs method on the CommandLineContext that seems like it should toggle this feature. I think I'm patching this in the right place... I don't know for sure that setOutputInDirs is the correct attribute to piggy back on, but regardless I think other people may find this capability useful. Thanks a lot Mike Schrag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [PATCH] JspC package names
Cool... Looks like I fell victim to the File.separator vs. URI problem that you mention in the bug too :) ... I know what you mean about poor jspc being left hanging -- I've been using a heavily tweaked/patched 3.2 version for the longest time. It seems to be a little better in 4.0 now, at least. Mike - Original Message - From: Steve Downey [EMAIL PROTECTED] To: 'Tomcat Developers List' [EMAIL PROTECTED] Sent: Monday, February 04, 2002 2:50 PM Subject: RE: [PATCH] JspC package names I think this has been fixed with the patch to correct bug 5471. That changes how package names are generated in CommandLineContext. I'm glad to see someone else is using jspc. It's been broken so often, I thought I was the only one. -Original Message- From: Mike Schrag [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: [PATCH] JspC package names In 4.0.1, JspC commandline tool is not making package names that correspond to subdirectories in my context directory (i.e. I need /help/testhelp.jsp to become help/testhelp.java and be package help;). There is a setOutputInDirs method on the CommandLineContext that seems like it should toggle this feature. I think I'm patching this in the right place... I don't know for sure that setOutputInDirs is the correct attribute to piggy back on, but regardless I think other people may find this capability useful. Thanks a lot Mike Schrag -- 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]
DO NOT REPLY [Bug 6160] - HttpServletResponse.flushBuffer() fails to flush data to client
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=6160. 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=6160 HttpServletResponse.flushBuffer() fails to flush data to client --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 20:17 --- Sorry about this, but I provided some incorrect information about this problem. When I attempted to turn the chunking off, I was working on the wrong copy of server.xml. After correcting this, disabling the chunking in the HTTP/1.1 connector solved the problem. I am able to get the flushBuffer() method to work using both 1.3 and 1.4 jvm on the client and server side. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
com.apache.catalina.startup.UserConfig Idea.
Currently, only a single Context (which means a single webapp) can be deployed per user. However, here at Western Washington University, we are developing multiple webapps at a time. To allow this, I wrote some code which is very similar to the com.apache.catalina.startup.UserConfig.java code that Craig wrote. Is there any interest in this by the community? I have an archive with the source code located here: http://brimworks.com/personal/programs/catalina.tar.gz Thanks, -Brian -- Brian MaherCS Major WWU BrimWorks.com Glory to God -- 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 MBeanUtils.java ServerLifecycleListener.java
amyroh 02/02/04 12:28:50 Modified:catalina/src/share/org/apache/catalina/mbeans MBeanUtils.java ServerLifecycleListener.java Log: Add to create MBeanFactory MBean so it's visible to admin application. Revision ChangesPath 1.18 +52 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanUtils.java Index: MBeanUtils.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanUtils.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- MBeanUtils.java 3 Feb 2002 00:56:57 - 1.17 +++ MBeanUtils.java 4 Feb 2002 20:28:49 - 1.18 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanUtils.java,v 1.17 2002/02/03 00:56:57 craigmcc Exp $ - * $Revision: 1.17 $ - * $Date: 2002/02/03 00:56:57 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanUtils.java,v 1.18 2002/02/04 20:28:49 amyroh Exp $ + * $Revision: 1.18 $ + * $Date: 2002/02/04 20:28:49 $ * * * @@ -107,7 +107,7 @@ * * @author Craig R. McClanahan * @author Amy Roh - * @version $Revision: 1.17 $ $Date: 2002/02/03 00:56:57 $ + * @version $Revision: 1.18 $ $Date: 2002/02/04 20:28:49 $ */ public class MBeanUtils { @@ -425,6 +425,34 @@ } + +/** + * Create, register, and return an MBean for this + * codeMBeanFactory/code object. + * + * @param factory The MBeanFactory to be managed + * + * @exception Exception if an MBean cannot be created or registered + */ +public static ModelMBean createMBean(MBeanFactory factory) +throws Exception { + +String mname = createManagedName(factory); +ManagedBean managed = registry.findManagedBean(mname); +if (managed == null) { +return null; +} +String domain = managed.getDomain(); +if (domain == null) +domain = mserver.getDefaultDomain(); +ModelMBean mbean = managed.createMBean(factory); +ObjectName oname = createObjectName(domain, factory); +mserver.registerMBean(mbean, oname); +return (mbean); + +} + + /** * Create, register, and return an MBean for this * codeRealm/code object. @@ -911,6 +939,26 @@ } +/** + * Create an codeObjectName/code for this + * codeMBeanFactory/code object. + * + * @param domain Domain in which this name is to be created + * @param factory The MBeanFactory to be named + * + * @exception MalformedObjectNameException if a name cannot be created + */ +public static ObjectName createObjectName(String domain, + MBeanFactory factory) +throws MalformedObjectNameException { + +ObjectName name = new ObjectName(domain + :type=MBeanFactory); + +return (name); + +} + + /** * Create an codeObjectName/code for this * codeRealm/code object. 1.19 +23 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java Index: ServerLifecycleListener.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- ServerLifecycleListener.java 31 Jan 2002 23:02:41 - 1.18 +++ ServerLifecycleListener.java 4 Feb 2002 20:28:49 - 1.19 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v 1.18 2002/01/31 23:02:41 amyroh Exp $ - * $Revision: 1.18 $ - * $Date: 2002/01/31 23:02:41 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v 1.19 2002/02/04 20:28:49 amyroh Exp $ + * $Revision: 1.19 $ + * $Date: 2002/02/04 20:28:49 $ * * * @@ -105,7 +105,7 @@ * * @author Craig R. McClanahan * @author Amy Roh - * @version $Revision: 1.18 $ $Date: 2002/01/31 23:02:41 $ + * @version $Revision: 1.19 $ $Date: 2002/02/04 20:28:49 $ */ public class ServerLifecycleListener @@ -237,6 +237,8 @@ try { +MBeanFactory factory = new MBeanFactory(); +createMBeans(factory); createMBeans(ServerFactory.getServer());
RE: Issues with Tomcat 4.0.1 and WebAppDeploy
Hello Punky, I tried this and I am unable to get to the manager, I get - HTTP Status 404 - /manager Now what? -Original Message- From: Punky Tse [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 7:50 PM To: Donna Molinari Cc: Tomcat Developers List Subject: Re: Issues with Tomcat 4.0.1 and WebAppDeploy Donna, First, what does access_log and error_log say? Can you see Web-application not yet deployed in error_log? Second, can you reach http://papeete:88/manager/ ? Do you start Tomcat before httpd is started? Try this sequence. If you use webapp-1.0.1 you will encounter such problem. Regards, Punky - Original Message - From: Donna Molinari [EMAIL PROTECTED] To: 'Punky Tse' [EMAIL PROTECTED] Cc: Donna Molinari [EMAIL PROTECTED]; Tomcat Developers List [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 12:34 AM Subject: RE: Issues with Tomcat 4.0.1 and WebAppDeploy Hello Punky, Thank you for your response. I was able to get Tomcat and Apache working without no errors, but this is what happens now. It doesn't see the examples under Tomcat's webapps directory. Is there something I need to add more to the httpd.conf file to point to the webapps directory that examples is the vitural URL? Like the Context directive: /examples/ /web/jakarta-tomcat-4.0.1/webapps/examples Tomcat Connection to Examples: http://papeete:8080/examples/ Apache Connection to Examples, fails with HTTP 404 : http://papeete:88/examples/ Apache Tomcat Connection to web_Info is Successful: http://papeete:88/webapp-info/ # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # WebAppConnection warpConnection warp papeete:8008 VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/jakarta-tomcat-4.0.1/webapps ServerName papeete.remedy.com ErrorLog /web/apache1.3.23/var/log/error_log Transferlog /web/apache1.3.23/var/log/access_log IfModule mod_webapp.c WebAppDeploy manager warpConnection /manager WebAppDeploy examples warpConnection /examples WebAppDeploy ROOT warpConnection / WebAppInfo /webapp-info /IfModule /VirtualHost -Original Message- From: Punky Tse [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 6:53 PM To: Tomcat Developers List Cc: Donna Molinari Subject: Re: Issues with Tomcat 4.0.1 and WebAppDeploy This line is wrong: WebAppDeploy /web/jakarta-tomcat-4.0.1/webapps/examples warpConnection /examples /web/jakarta-tomcat-4.0.1/webapps/examples is not a web application name. It is a file location. Instead, WebAppDeploy examples warpConnection /examples should work. see the description from INSTALL.txt from mod_webapp: === WebAppDeploy [application name] [connection name] [url path] [application name] The application name as present in your webapps directory in Tomcat. For example, if you want to deploy a WAR-based web application, your application name will look something like myApplication.war. === - Punky - Original Message - From: Donna Molinari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Donna Molinari [EMAIL PROTECTED] Sent: Friday, February 01, 2002 5:23 AM Subject: FW: Issues with Tomcat 4.0.1 and WebAppDeploy Hello Apache, I really need someone help on the following problems and bugs found when trying to use WebAppDeploy. The procedures caused syntax errors, once syntax was fixed received the errors shown below. Attached are my configuration files, I would appreciate someone letting me know if you where successful in using the WARP Connector :-) error_log.txt httpd.conf.txt apxs.txt server.xml Subject: Apache 1.3.23 and Tomcat 4.0.1 How do I enter a bug on the following error. I am unable to get the WebAppDeploy working. Attached please see my configuration files - your instructions caused syntax errors and now there errors after I fixed the syntax errors in the httpd.conf file. Apache error_log File [Wed Jan 30 18:09:04 2002] [notice] caught SIGTERM, shutting down [Wed Jan 30 18:09:34 2002] [error] Connection warpConnection cannot connect [Wed Jan 30 18:09:34 2002] [error] Cannot open connection warpConnection [Wed Jan 30 18:09:34 2002] [notice] Apache/1.3.23 (Unix) configured -- resuming normal operations [Wed Jan 30 18:09:34 2002] [notice] Accept mutex: fcntl (Default: fcntl) [Wed Jan 30 18:09:34 2002] [error] Connection warpConnection cannot connect [Wed Jan 30 18:09:34 2002] [error] Cannot open connection warpConnection [Wed Jan 30 18:09:34 2002] [error] Connection warpConnection cannot connect [Wed Jan 30 18:09:34 2002] [error] Cannot open connection
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service AddServiceAction.java AddServiceForm.java SetUpAddServiceAction.java
manveen 02/02/04 09:59:19 Modified:webapps/admin server.jsp webapps/admin/WEB-INF struts-config.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties Added: webapps/admin addService.jsp webapps/admin/WEB-INF/classes/org/apache/webapp/admin/service AddServiceAction.java AddServiceForm.java SetUpAddServiceAction.java Log: Intermin checkin for add service operation implementation. Revision ChangesPath 1.8 +1 -1 jakarta-tomcat-4.0/webapps/admin/server.jsp Index: server.jsp === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/server.jsp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- server.jsp31 Jan 2002 05:25:25 - 1.7 +++ server.jsp4 Feb 2002 17:59:19 - 1.8 @@ -31,7 +31,7 @@ controls:action selected=true bean:message key=actions.available.actions/ /controls:action controls:action - /controls:action !-- will add the urls later once those screens get implemented -- -controls:action url= bean:message key=actions.services.create/ /controls:action +controls:action url=setUpAddService.do bean:message key=actions.services.create/ /controls:action controls:action url=setUpDeleteService.do bean:message key=actions.services.delete/ /controls:action /controls:actions /div 1.1 jakarta-tomcat-4.0/webapps/admin/addService.jsp Index: addService.jsp === !-- Standard Struts Entries -- %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/controls.tld prefix=controls % html:html locale=true %@ include file=header.jsp % !-- Body -- body bgcolor=white !--Form -- html:errors/ html:form method=POST action=/addService table width=100% border=0 cellspacing=0 cellpadding=0 tr class=page-title-row td width=81% div class=page-title-text align=left bean:message key=service.create.new/ /div /td /tr /table %@ include file=buttons.jsp % %-- Heading --% table border=0 cellspacing=0 cellpadding=0 width=100% tr td div class=table-title-text bean:define name=addServiceForm id=addServiceForm scope=session/ bean:message key=service.properties/ /div /td /tr /table table class=back-table border=0 cellspacing=0 cellpadding=1 width=100% tr td controls:table tableStyle=front-table lineStyle=line-row controls:row header=true labelStyle=table-header-text dataStyle=table-header-text controls:labelbean:message key=service.property//controls:label controls:databean:message key=service.value/ /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=service.name/:/controls:label controls:data html:text property=serviceName size=24 maxlength=24/ /controls:data /controls:row /controls:table /td /tr /table br table border=0 cellspacing=0 cellpadding=0 width=100% tr td div class=table-title-text bean:message key=service.engine.props/ /div /td /tr /table table class=back-table border=0 cellspacing=0 cellpadding=1 width=100% tr td controls:table tableStyle=front-table lineStyle=line-row controls:row header=true labelStyle=table-header-text dataStyle=table-header-text controls:labelbean:message key=service.property//controls:label controls:databean:message key=service.value/ /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=service.name/:/controls:label controls:data html:text property=engineName size=24 maxlength=24/ /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=server.debuglevel/:/controls:label controls:data html:select property=debugLvl
RE: Issues with Tomcat 4.0.1 and WebAppDeploy
2002-02-04 09:12:04 [org.apache.catalina.connector.warp.WarpConnector] Connection from papeete/10.40.47.78:54331 to Hello Punky, There are many log files with Tomcat and in this log file, I found an Java Exception in the apache_log.2002-02-04.txt. Please see again my attached configuration files, is there something wrong? httpd.conf (apache 1.3.23).txt server.xml (tomcat 4.0.1).txt papeete/10.40.47.78:8008 2002-02-04 09:12:04 WarpEngine[Apache]: Mapping request 2002-02-04 09:12:04 WarpHost[papeete]: Mapping request for Host 2002-02-04 09:12:04 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 2002-02-04 09:12:05 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (2) 2002-02-04 09:12:05 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (0) 2002-02-04 11:04:54 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 37) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) 2002-02-04 11:04:54 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:2 37) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) _ Take Care, Donna J. Molinari Solutions Group (WebQA) Platform Technologies Engineering Mid-Tier Performance Benchmark Peregrine Systems, Inc. Office: MTV3, Room #1396 Phone: 650-903-5204 Email:mailto:[EMAIL PROTECTED] From: Donna Molinari [[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 11:32 AM To: undisclosed-recipients ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /web/apache1.3.23/conf/srm.conf and then /web/apache1.3.23/conf/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache will be interpreted by the # server as /usr/local/apache/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # ServerRoot /web/apache1.3.23 # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A
[PATCH] configurable jsp servlet base
Currently the default base class for a JSP is hardcoded into JspC. The base class can be overridden individually for each JSP, but there is no way to override the default (i.e. if you have your own standard custom base class). This patch adds: 1) a -jspservletbase XXX option to JspC commandling 2) a getJspServletBase() method onto the Options interface 3) an implementation of getJspServletBase() on JspC and EmbededServletOptions (doesn't Embedded have 2 d's?) that defaults to the original return value (Constants.JSP_SERVLET_BASE) 4) modification to JspParseEventListener to retrieve the JspServletBase from the Options in the constructor Mike diff -u -r -x *.class jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/EmbededServletOptions.java jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/EmbededServletOptions.java --- jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/EmbededServletOptions.java Mon Nov 12 21:02:50 2001 +++ +jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/EmbededServletOptions.java + Mon Feb 4 16:26:12 2002 @@ -133,6 +133,11 @@ */ public String jspCompilerPath = null; + /** + * The base class of the compiled JSP servlet. + */ + public String jspServletBase = null; + /** * Cache for the TLD locations */ @@ -209,6 +214,13 @@ return jspCompilerPath; } +/** + * Returns the base class of the compiled JSP servlet. + */ +public String getJspServletBase() { + return (jspServletBase == null) ? Constants.JSP_SERVLET_BASE : jspServletBase; +} + public TldLocationsCache getTldLocationsCache() { return tldLocationsCache; } @@ -318,6 +330,8 @@ } this.javaEncoding = config.getInitParameter(javaEncoding); + +this.jspServletBase = config.getInitParameter(jspServletBase); // Setup the global Tag Libraries location cache for this // web-application. diff -u -r -x *.class jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/JspC.java jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/JspC.java --- jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/JspC.java Mon Nov 12 21:02:50 2001 +++ jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/JspC.java Mon +Feb 4 16:24:51 2002 @@ -106,6 +106,7 @@ public static final String SWITCH_WEBAPP_XML = -webxml; public static final String SWITCH_MAPPED = -mapped; public static final String SWITCH_DIE = -die; +public static final String SWITCH_JSP_SERVLET_BASE = -jspservletbase; public static final int NO_WEBXML = 0; public static final int INC_WEBXML = 10; @@ -129,6 +130,8 @@ //String classPath; + String jspServletBase; + String targetPackage; String targetClassName; @@ -215,6 +218,10 @@ return System.getProperty(java.class.path); } + public String getJspServletBase() { + return (jspServletBase == null) ? Constants.JSP_SERVLET_BASE : +jspServletBase; + } + int argPos; // value set by beutifully obsfucscated java boolean fullstop = false; @@ -311,6 +318,8 @@ } } else if (tok.equals(SWITCH_MAPPED)) { mappedFile = true; +} else if (tok.equals(SWITCH_JSP_SERVLET_BASE)) { +jspServletBase = nextArg(); } else if (tok.startsWith(SWITCH_DIE)) { try { dieLevel = Integer.parseInt( diff -u -r -x *.class jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/Options.java jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/Options.java --- jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/Options.java Mon Nov 12 21:02:50 2001 +++ jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/Options.javaMon +Feb 4 16:19:38 2002 @@ -142,4 +142,9 @@ * page servlet. */ public String getJavaEncoding(); + + /** + * Returns the base class for compiled JSP's. + */ + public String getJspServletBase(); } diff -u -r -x *.class jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java --- jakarta-tomcat-4.0.1-src-orig/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java Mon Nov 12 21:02:50 2001 +++ +jakarta-tomcat-4.0.1-src/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java + Mon Feb 4 16:31:13 2002 @@ -103,7 +103,7 @@ JspCompilationContext ctxt; ParserController parserCtl; -String jspServletBase = Constants.JSP_SERVLET_BASE; +String jspServletBase; String serviceMethodName =
DO NOT REPLY [Bug 6229] - Need way to specify where to write 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=6229. 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=6229 Need way to specify where to write catalina.out --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 20:55 --- What about all of the myriad of log files generated by all of the webapps? Wouldn't it be a more general feature to pass a system property via an environment variable CATALINA_LOGS or something similar that sets the logs directory? Then all logs are put in a new location. Just moving a single log file to a different place seems a bit limited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6214] - Problems on ClientAuth
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=6214. 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=6214 Problems on ClientAuth --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 21:05 --- It is very difficult to debug problems without detailed information. Please submit more information (e.g. your configuration files, log files, etc.) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple URLs/Single IP
Now you have me totally confused :-( I'll tell you what I know, and if that helps you, good. If not, please disregard. The fact that www.aa.com and www.bb.com have the same IP address makes them name based virtual hosts. So, you're telling your TC 3.3.x to be ready to handle things for both www.aa.com and www.bb.com by creating virtual hosts withing it. If you have Tomcat running on the same box, it would usually be connected to Apache via mod_jk and listen to address 127.0.0.1 only. So, I'm not certain how the 'one IP' address plays here at all... Inside each virtual host, you define applications (contexts). So, you can have webapps/aa for www.aa.com and webapps/bb for www.bb.com. That's at least how I run my machines. Bojan On Mon, 2002-02-04 at 18:50, Micael Padraig Og mac Grene wrote: I am not trying to make www.aa.com into xx.aa.com and yy.aa.com but rather trying to get www.aa.com and ww.bb.com which have the same IP address to be webapps/aa and webapps/bb. Isn't the virtual hosts the first solution? I think I am beginning to see how to do this, but I don't see how virtual hosts are the answer. I must be missing something here. I have figured out how to get the different URLs into different Host tags, but so far they all encompass the same webapps or none. I have some further ideas on how to avoid that. We'll see tomorrow. But, I still do not see how this solves my problem, Apache notwithstanding. Miacel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
bug in /usr/bin/dtomcat3 script in 3-3.3a-2 rpm (mprotect errors intomcat.log)
Hi, I just installed the 3.3a rpms and when I tried starting tomcat with the /etc/rc.d/init.d/tomcat3 script, all I got was these in the /var/log/tomcat3/tomcat.log file: mprotect: Bad address mprotect reset: Bad address mprotect reset: Bad address EmbededTomcat: Startup time 40 right around line 120, there's an '==' in the TOMCAT_OPTS line. I removed one = and tomcat started. thx, -Ray -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6229] - Need way to specify where to write 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=6229. 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=6229 Need way to specify where to write catalina.out --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 21:28 --- Indeed it would be very nice if Catalina's output streams were supported as first class logging citizens in server.xml, just as server, access, and context-specific logs are now. Such a change was more extensive than I needed to make to address my immediate need, but would definitely be much appreciated for consistant logging configuration in the long term. The attached patch addresses the problem of re-locating Catalina's stdout and stderr output streams with the most minimal change possible, and follows the existing style of dealing with startup parameters and server output streams (i.e. using env vars and stream redirection via a Bourne shell script, rather Java code and XML configuration). I figured I'm not the only one to run into this deficiency, so I might as well contribute back something which I have implemented now and know to be working. Patrick, if you have time to implement and test your proposed change instead of integrating this patch, I'm all for it. If not, committing this improvement will address the immediate problem. Thanks, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Multiple URLs/Single IP
Thank you, Bojan. I am going to try that, and will try to figure out a favor for you if it works. My father told me to always pay back ten times: ten times more for a good turn, and ten times more for a bad. Micael At 08:06 AM 2/5/02 +1100, you wrote: Now you have me totally confused :-( I'll tell you what I know, and if that helps you, good. If not, please disregard. The fact that www.aa.com and www.bb.com have the same IP address makes them name based virtual hosts. So, you're telling your TC 3.3.x to be ready to handle things for both www.aa.com and www.bb.com by creating virtual hosts withing it. If you have Tomcat running on the same box, it would usually be connected to Apache via mod_jk and listen to address 127.0.0.1 only. So, I'm not certain how the 'one IP' address plays here at all... Inside each virtual host, you define applications (contexts). So, you can have webapps/aa for www.aa.com and webapps/bb for www.bb.com. That's at least how I run my machines. Bojan On Mon, 2002-02-04 at 18:50, Micael Padraig Og mac Grene wrote: I am not trying to make www.aa.com into xx.aa.com and yy.aa.com but rather trying to get www.aa.com and ww.bb.com which have the same IP address to be webapps/aa and webapps/bb. Isn't the virtual hosts the first solution? I think I am beginning to see how to do this, but I don't see how virtual hosts are the answer. I must be missing something here. I have figured out how to get the different URLs into different Host tags, but so far they all encompass the same webapps or none. I have some further ideas on how to avoid that. We'll see tomorrow. But, I still do not see how this solves my problem, Apache notwithstanding. Miacel -- 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]
Re: Multiple URLs/Single IP
On Tue, 2002-02-05 at 08:38, Micael Padraig Og mac Grene wrote: Thank you, Bojan. I am going to try that, and will try to figure out a favor for you if it works. My father told me to always pay back ten times: ten times more for a good turn, and ten times more for a bad. Micael Hope I didn't give you bad advice. The 'ten times' thingy sounds really scary ;-) Bojan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: bug in /usr/bin/dtomcat3 script in 3-3.3a-2 rpm (mprotect errors in tomcat.log)
En réponse à Ray Pitmon [EMAIL PROTECTED]: Hi, I just installed the 3.3a rpms and when I tried starting tomcat with the /etc/rc.d/init.d/tomcat3 script, all I got was these in the /var/log/tomcat3/tomcat.log file: mprotect: Bad address mprotect reset: Bad address mprotect reset: Bad address EmbededTomcat: Startup time 40 right around line 120, there's an '==' in the TOMCAT_OPTS line. I removed one = and tomcat started. It seems it was in original tomcat.sh, I'll fix in next RPM release Thanks for feedback -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Header handling bug in class org.apache.Ajp13
I enabled AJP 1.3 connector on Tomcat 4.0.1 with Netscape Server and found a NumberFormatException thrown for a HTTP request with non-standard headers. I checked out the code from module jakarta-tomcat-connectors with tag tomcat_401. After some debuging, it seems the following code is causing the problem: method: Ajp13.decodeRequest Between // are my comments. Would you please make this fix and let me know where to get a patched tomcat_ajp.jar file? // Header names are encoded as either an integer code starting // with 0xA0, or as a normal string (in which case the first // two bytes are the length). int isc = msg.peekInt(); /***/ // MY DEBUG STATEMENT System.out.println(header ID: + isc); // It happens to be 8 for a non-standard header /***/ int hId = isc 0xFF; MessageBytes vMB=null; isc = 0xFF00; if(0xA000 == isc) { /***/ // MY DEBUG STATEMENT System.out.println(Integer coding: 0xA); /***/ msg.getInt(); // To advance the read position hName = headerTransArray[hId - 1]; vMB= headers.addValue(hName); } else { /***/ /* This branch is executed for the normal string encoding(non-standard header case)*/ /* The header ID is also set for the normal string encoding case */ /* I added the following line to fix the problem */ hId = -1; // Should we set hId to dummy number here? System.out.println(Normal String: 0xA); /***/ // XXX Not very elegant vMB = msg.addHeader(headers); if (vMB == null) { return 500; // wrong packet } } msg.getMessageBytes(vMB); // set content length, if this is it... if (hId == SC_REQ_CONTENT_LENGTH) { /***/ /* Originally the following line was executed for normal string encoding if hId happens to be 8 */ /* It throws NumberFormatException */ /***/ int contentLength = (vMB == null) ? -1 : vMB.getInt(); Thanks, Jianliang -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Header handling bug in class org.apache.Ajp13
the fix for this is already in cvs and will be part of the next 4.0.2 beta release. -Original Message- From: Jianliang Zhao [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:26 PM To: Tomcat-dev (E-mail) Subject: Header handling bug in class org.apache.Ajp13 I enabled AJP 1.3 connector on Tomcat 4.0.1 with Netscape Server and found a NumberFormatException thrown for a HTTP request with non-standard headers. I checked out the code from module jakarta-tomcat-connectors with tag tomcat_401. After some debuging, it seems the following code is causing the problem: method: Ajp13.decodeRequest Between // are my comments. Would you please make this fix and let me know where to get a patched tomcat_ajp.jar file? // Header names are encoded as either an integer code starting // with 0xA0, or as a normal string (in which case the first // two bytes are the length). int isc = msg.peekInt(); /***/ // MY DEBUG STATEMENT System.out.println(header ID: + isc); // It happens to be 8 for a non-standard header /***/ int hId = isc 0xFF; MessageBytes vMB=null; isc = 0xFF00; if(0xA000 == isc) { /***/ // MY DEBUG STATEMENT System.out.println(Integer coding: 0xA); /***/ msg.getInt(); // To advance the read position hName = headerTransArray[hId - 1]; vMB= headers.addValue(hName); } else { /***/ /* This branch is executed for the normal string encoding(non-standard header case)*/ /* The header ID is also set for the normal string encoding case */ /* I added the following line to fix the problem */ hId = -1; // Should we set hId to dummy number here? System.out.println(Normal String: 0xA); /***/ // XXX Not very elegant vMB = msg.addHeader(headers); if (vMB == null) { return 500; // wrong packet } } msg.getMessageBytes(vMB); // set content length, if this is it... if (hId == SC_REQ_CONTENT_LENGTH) { /***/ /* Originally the following line was executed for normal string encoding if hId happens to be 8 */ /* It throws NumberFormatException */ /***/ int contentLength = (vMB == null) ? -1 : vMB.getInt(); Thanks, Jianliang -- 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]
Re: Multiple URLs/Single IP
Well, I assumed it was good, and even if not, that you were meaning good. So, no problem, my friend! ;-) At 09:14 AM 2/5/02 +1100, you wrote: On Tue, 2002-02-05 at 08:38, Micael Padraig Og mac Grene wrote: Thank you, Bojan. I am going to try that, and will try to figure out a favor for you if it works. My father told me to always pay back ten times: ten times more for a good turn, and ten times more for a bad. Micael Hope I didn't give you bad advice. The 'ten times' thingy sounds really scary ;-) Bojan -- 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]
DO NOT REPLY [Bug 6229] - Need way to specify where to write 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=6229. 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=6229 Need way to specify where to write catalina.out --- Additional Comments From [EMAIL PROTECTED] 2002-02-04 23:06 --- You may also be able to mimic this functionality by creating a softlink before you start Tomcat the next time. For example: cd $CATLINA_HOME/logs # Move existing catalina.out to new location mv catalina.out /The/desired/catalina.out/file # Create softlink to new location ln -s /The/desired/catalina.out/file catalina.out After you do this, all logging to catalina.out will go your custom location even after repeated startups. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6234] New: - checkError method of Servlet's PrintWriter is unreliable
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=6234. 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=6234 checkError method of Servlet's PrintWriter is unreliable Summary: checkError method of Servlet's PrintWriter is unreliable Product: Tomcat 3 Version: 3.3 Final Platform: Other OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Servlet AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Tomcat appears to be recycling PrintWriters. After a particular PrintWriter's checkError() method returns true, it always returns true (even after it is recycled). I submitted this as a minor bug since there is a simple workaround (just use getOutputStream()). The problem can be demonstrated using the following servlet: /** * To use this test: * * Hit the servlet with a browser. Sending Data messages will be printed to * the brower window at a rate of one per second. Hit the stop button on your * browser (causing checkError() to return true). Repeat this until you get * a response where out.checkError() equals true before any data is sent * (it should only take about 5 tries). This is the problem. * * From looking at the hashCodes, it looks like the PrintWriters are being * recycled and the checkError flag on these printWriters are never being * reset. * * Notice that this problem does not occur when using * response.getOutputStream(). */ public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); // Simple workaround. Servlet will work correctly if following line is // used instead. //PrintWriter out = new PrintWriter(response.getOutputStream()); out.println(Entering Servlet:BR); out.println(ulliout.hashCode(): + out.hashCode() + /li); out.println(liout.checkError(): + out.checkError() + /li/ul); while (!out.checkError()) { try {Thread.currentThread().sleep(1000);} catch (Exception e) {} out.println(Sending DataBR); } } } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6229] - Need way to specify where to write 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=6229. 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=6229 Need way to specify where to write catalina.out --- Additional Comments From [EMAIL PROTECTED] 2002-02-05 00:03 --- Your suggestion predicates me actually having a $CATALINA_BASE/logs/ directory (which I am trying to avoid since my operations folks prefer all of our application's logs go elsewhere -- Catalina was the only holdout until I patched the startup script). Symlinks are known as the goto statement of the file system (with good reason). I would prefer not to introduce any more hacks into my production system, which is why I offered a reasonable interface following the existing conventions. Thanks, Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6235] New: - tomcat4-4.0.1-1 rpm has wrong owner for /var/tomcat4/webapps
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=6235. 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=6235 tomcat4-4.0.1-1 rpm has wrong owner for /var/tomcat4/webapps Summary: tomcat4-4.0.1-1 rpm has wrong owner for /var/tomcat4/webapps Product: Tomcat 4 Version: 4.0.1 Final Platform: PC OS/Version: Linux Status: NEW Severity: Major Priority: Other Component: Unknown AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The owner for /var/tomcat4/webapps is set to root. As such tomcat cannot unpack WARs as it should when started. The owner for this directory should be tomcat4, with group tomcat4. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Do different virtual hosts have to have different appBase values?
[ ] They do. Reason: [ ] They don't. Reason: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6236] New: - [PATCH] BUILDING.txt doesn't mention jaas.jar
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=6236. 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=6236 [PATCH] BUILDING.txt doesn't mention jaas.jar Summary: [PATCH] BUILDING.txt doesn't mention jaas.jar Product: Tomcat 4 Version: Nightly Build Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] BUILDING.txt doesn't mention jaas.jar but $ ant dist will fail if jaas.jar is not moved into the same lib directory as ldap.jar. This patch extends section (10) of BUILDING.txt to include a note about copying jaas.jar as well. --- BUILDING.txtMon Feb 4 23:02:41 2002 +++ BUILDING.txt-ldap-patched Tue Feb 5 00:49:00 2002 @@ -228,9 +228,10 @@ * Unpack the reference implementation into a convenient location so that it resides in its own subdirectory. -* You will also need the LDAP Provider (ldap.jar), available on the - same download page. Be sure that you unpack ldap.jar into the lib - subdirectory of the JNDI directory, parallel to jndi.jar. +* You will also need the LDAP Service Provider Maintenance package, + (version 1.2.3 or later) available on the same download page. Be sure + that you unpack ldap.jar and jaas.jar into the lib subdirectory of + the JNDI directory, parallel to jndi.jar. (11) Steps (12)-(23) are optional, but are necessary to build a complete binary -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/generators ErrorHandler.java
larryi 02/02/04 17:22:43 Modified:src/share/org/apache/tomcat/modules/generators ErrorHandler.java Log: Fix for Bug 4600. Make the default status code for the RedirectHandler configurable. The defaultRedirectStatus attribute may be set to 301 or 302. This default will affect directory redirections done by the StaticInterceptor. Revision ChangesPath 1.24 +19 -2 jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java Index: ErrorHandler.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- ErrorHandler.java 31 Dec 2001 22:23:42 - 1.23 +++ ErrorHandler.java 5 Feb 2002 01:22:43 - 1.24 @@ -81,6 +81,7 @@ public final class ErrorHandler extends BaseInterceptor { private Context rootContext=null; boolean showDebugInfo=true; +int defaultRedirectStatus=301; public ErrorHandler() { } @@ -89,6 +90,15 @@ showDebugInfo=b; } +public void setDefaultRedirectStatus( String s ) { +if( 302.equals(s) ) +defaultRedirectStatus=302; +else if( 301.equals(s) ) +defaultRedirectStatus=301; +else +defaultRedirectStatus=301; +} + public void engineInit(ContextManager cm ) { } @@ -143,7 +153,9 @@ // Default status handlers // Assume existing error pages are valid. Don't overwrite with default. - ctx.addServlet( new RedirectHandler(this)); +RedirectHandler rh = new RedirectHandler(this); +rh.setDefaultRedirectStatus(defaultRedirectStatus); + ctx.addServlet( rh ); if (ctx.getErrorPage(302) == null) ctx.addErrorPage( 302, tomcat.redirectHandler); if (ctx.getErrorPage(301) == null) @@ -765,6 +777,7 @@ static StringManager sm=StringManager. getManager(org.apache.tomcat.resources); int sbNote=0; +int defaultRedirectStatus=301; RedirectHandler(BaseInterceptor bi) { //setOrigin( Handler.ORIGIN_INTERNAL ); @@ -772,6 +785,10 @@ setModule( bi ); } +public void setDefaultRedirectStatus( int status ) { +defaultRedirectStatus=status; +} + // We don't want interceptors called for redirect // handler public void doService(Request req, Response res) @@ -783,7 +800,7 @@ if( res.getStatus() != 301 res.getStatus() != 302 ) { - res.setStatus( 301 ); + res.setStatus( defaultRedirectStatus ); } location = makeAbsolute(req, location); -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/config AutoWebApp.java
larryi 02/02/04 17:30:29 Modified:src/share/org/apache/tomcat/modules/config AutoWebApp.java Log: Add a reloadable attribute so auto-served contexts can be easily configured to have reloading enabled or disabled. This was added because the ReloadInterceptor can't be removed when running Tomcat under a security manager. The DependClassLoader it creates handles the ProtectionDomain created for each web application. Instead, you must disable reloading for each context instead of removing the ReloadInterceptor to gain a performance benefit. Revision ChangesPath 1.11 +6 -0 jakarta-tomcat/src/share/org/apache/tomcat/modules/config/AutoWebApp.java Index: AutoWebApp.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/AutoWebApp.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- AutoWebApp.java 14 Nov 2001 03:01:16 - 1.10 +++ AutoWebApp.java 5 Feb 2002 01:30:29 - 1.11 @@ -89,6 +89,7 @@ String profile=null; boolean trusted=false; String prefix=; +boolean reloadable=true; // encoding scheme - XXX review, customize, implement char hostSeparator='@'; // if support for vhost configuration is enabled @@ -159,6 +160,10 @@ public void setTrusted( boolean b ) { trusted=b; } + +public void setReloadable( boolean b ) { +reloadable=b; +} // Implementation @@ -256,6 +261,7 @@ Context ctx=cm.createContext(); ctx.setContextManager( cm ); ctx.setPath(prefix + path); +ctx.setReloadable(reloadable); if( ! DEFAULT.equals( host ) ) ctx.setHost( host ); try { -- 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 IntrospectionUtils.java
larryi 02/02/04 17:32:05 Modified:src/share/org/apache/tomcat/util IntrospectionUtils.java Log: Update to add the classes directory before the jars. Revision ChangesPath 1.17 +2 -2 jakarta-tomcat/src/share/org/apache/tomcat/util/IntrospectionUtils.java Index: IntrospectionUtils.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/IntrospectionUtils.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- IntrospectionUtils.java 23 Jan 2002 23:26:04 - 1.16 +++ IntrospectionUtils.java 5 Feb 2002 01:32:05 - 1.17 @@ -586,11 +586,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 ) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Http10Interceptor.java
larryi 02/02/04 17:34:02 Modified:src/share/org/apache/tomcat/modules/server Http10Interceptor.java Log: Revert back to the delaySocketClose attribute. The new code turned out not to help. Revision ChangesPath 1.32 +11 -17 jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java Index: Http10Interceptor.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- Http10Interceptor.java31 Jan 2002 04:16:47 - 1.31 +++ Http10Interceptor.java5 Feb 2002 01:34:02 - 1.32 @@ -100,7 +100,7 @@ { private int timeout = 30; // 5 minutes as in Apache HTTPD server private String reportedname; -private int socketCloseDelay = -1; +private boolean delaySocketClose = false; public Http10Interceptor() { super(); @@ -123,8 +123,8 @@ reportedname = reportedName; } -public void setSocketCloseDelay(int d) { -socketCloseDelay=d; +public void setDelaySocketClose(boolean b) { +delaySocketClose=b; } public void setProperty( String prop, String value ) { @@ -208,20 +208,14 @@ log( Error reading request, ignored, e, Log.ERROR); } finally { -// When running tests against Tomcat on the same system, -// we may need to add a delay before closing the socket -// to give the other end of the connection a chance to run -if( socketCloseDelay = 0 ) { -if( socketCloseDelay 0 ) { -// if delay is specified, spin for that amount of time -// Note: using Thread.sleep(n) exacerbates the problem on -// RH Linux 7.1 and maybe others -long target = System.currentTimeMillis() + socketCloseDelay; -while( target = System.currentTimeMillis()) -; -} else { -Thread.yield(); -} +// When running tests against Tomcat on the same +// system, we may need to force a thread switch +// before closing the socket to give the other +// end of the connection a chance to run +if( delaySocketClose ) { +try { +Thread.sleep(0); +} catch (InterruptedException ie) { /* ignore */ } } // recycle kernel sockets ASAP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
StandardSession: should StandardSession.manager be transient?
I've just been browsing through the StandardSession (org.apache.catalina.session.StandardSession) implementation in TC4.0.2-b2 and noticed that the field manager is not transient. Is this a mistake? Won't each session have a different manager every time it is deserialised? Or have I lost the plot... ;-} (Highly likely...) Jonathan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat with IIS 6.0
Has anyone tried using Tomcat with IIS 6.0 (any version of Tomcat)? I am attempting this using the JNI configuration, and not having any luck so far. This is the webserver that is coming with the new Windows .NET Server Family-- I think a lot of people will need to deploy Tomcat on it. Any help appreciated (I'll post what I learn as well). Thanks, Stephen Jones -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/doc serverxml.html
larryi 02/02/04 18:06:20 Modified:src/doc serverxml.html Log: Document some recent changes and a little rearranging. Revision ChangesPath 1.18 +40 -34jakarta-tomcat/src/doc/serverxml.html Index: serverxml.html === RCS file: /home/cvs/jakarta-tomcat/src/doc/serverxml.html,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- serverxml.html2 Feb 2002 15:58:05 - 1.17 +++ serverxml.html5 Feb 2002 02:06:19 - 1.18 @@ -4,7 +4,7 @@ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head - !-- $Id: serverxml.html,v 1.17 2002/02/02 15:58:05 larryi Exp $ -- + !-- $Id: serverxml.html,v 1.18 2002/02/05 02:06:19 larryi Exp $ -- !-- Copyright 1999-2001 Apache Software Foundation -- meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link rel=stylesheet href=style.css @@ -800,30 +800,23 @@ thDefault/th /tr tr valign=top -tdpdir/p -/td -tdpDirectory from which to load the web applictions. Relative paths - are interpreted as relative to TOMCAT_HOME./p -/td -tdpwebapps/p +tddir /td +tdDirectory from which to load the web applictions. Relative paths + are interpreted as relative to TOMCAT_HOME./td +tdwebapps/td /tr tr valign=top -tdpprefix/p -/td -tdpPrefix to add to the context path for each deployed web application. - The context path will consist of the prefix followed subdirectory name./p -/td -tdpDEFAULT/p -/td +tdflat/td +tdEach dir will be treated as a webapp in the same host. If codefalse/code, + each dir will be treated as a host name and its subdirs as + web applications. You can add apps to multiple virtual hosts. /td +tdtrue/td /tr tr valign=top -tdphost/p -/td -tdpVirtual host into which each application will be deployed./p -/td -tdpDEFAULT/p -/td +tdhost/td +tdVirtual host into which each application will be deployed./td +tdDEFAULT/td /tr tr valign=top tdignoreDot/td @@ -831,10 +824,17 @@ tdtrue/td /tr tr valign=top -tdflat/td -tdEach dir will be treated as a webapp in the same host. If codefalse/code, - each dir will be treated as a host name and its subdirs as - web applications. You can add apps to multiple virtual hosts. /td +tdprefixbrb[Tomcat 3.3.1]/b/td +tdPrefix to add to the context path for each deployed web application. + The context path will consist of the prefix followed subdirectory name./td +tdiempty string/i/td + /tr + tr valign=top +tdreloadable/td +tdIf true, reloading will be enabled by default for each context. If +false, reloading will be disabled by default for each context. This +setting, enabled or disabled, may be overridden in an explicit +context declaration./td tdtrue/td /tr /table @@ -1023,6 +1023,15 @@ thDefault/th /tr tr valign=top +tddefaultRedirectStatus/td +tdSets the default status code for use by the RedirectHandler if as +status code has not already been set. It may be set to quot;301quot; +or quot;302quot;. This primarily affects the status code used + when the a href=#StaticInterceptorStaticInterceptor/a module + redirects a 7quot;directoryquot; URL that doesn't end with a '/'/td +td301/td + /tr + tr valign=top tdshowDebugInfo/td tdEnables the inclusion of extra information in the default error output, such as stack traces. This extra information can expose data about @@ -1064,16 +1073,13 @@ tdnull, iuse default Tomcat server string/i/td /tr tr valign=top -tdsocketCloseDelaybrb[Tomcat 3.3.1]/b/td -tdWhen set to 0, a Thread.yield() is executed just prior to closing - the socket for a request. When set greater than 0, the thread will - quot;spinquot; in a wait loop for the specified number of milliseconds - before closing the socket. If less than 0, no extra action is performed - before closing the socket.br - This delay can help when running tests against Tomcat on certain systems - where the normal sequence of thread execution between Tomcat and client - results in a quot;Socket reset by peerquot; error./td -td-1/td +tddelaySocketClosebrb[Tomcat 3.3.1]/b/td +tdWhen set true, a Thread.sleep(0) is executed just prior to closing + the socket for a request. This can help when running a test against + Tomcat on a very fast system. Otherwise, thread execution may complete + the socket close before the test thread gets a chance to read the
cvs commit: jakarta-tomcat RELEASE-NOTES-3.3.1.txt
larryi 02/02/04 18:11:00 Modified:.RELEASE-NOTES-3.3.1.txt Log: Document latest changes Revision ChangesPath 1.30 +24 -7 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.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- RELEASE-NOTES-3.3.1.txt 3 Feb 2002 03:53:05 - 1.29 +++ RELEASE-NOTES-3.3.1.txt 5 Feb 2002 02:11:00 - 1.30 @@ -3,7 +3,7 @@ Release Notes = -$Id: RELEASE-NOTES-3.3.1.txt,v 1.29 2002/02/03 03:53:05 billbarker Exp $ +$Id: RELEASE-NOTES-3.3.1.txt,v 1.30 2002/02/05 02:11:00 larryi Exp $ This document describes the changes that have been made since the @@ -85,13 +85,12 @@ the locale and character set encoding of the directory listings are derived. - Added a socketCloseDelay attribute to Http10Interceptor. The - default is -1, disabled. If set to 0, a Thread.yield() is executed - before the socket is closed. If set greater than 0, it spins - for the specified amount of time in milliseconds. This was needed - by Cactus when run some systems. This helps insure the client end - of the socket gets a chance to read the returned response before the - socket is closed. Otherwise, Socket reset by peer errors occur. + Added a delaySocketClose attribute to Http10Interceptor. The + default is false. If set true, a Thread.sleep(0) is executed + before the socket is closed. This was needed by Cactus when + run on a high powered Windows XP box. The sleep(0) helps ensure + the test get a chance to receive its input before the socket + is closed. Otherwise, Socket reset by peer errors occur. Make the App-classloader configurable to allow using the 1.1 loader even when running under Java2. This should allow for better @@ -120,6 +119,17 @@ security manager, otherwise security exceptions will prevent JSPs from compiling. + Added reloadable attribute to AutoWebApp module. If true, + reloading will be enabled in all added contexts. If false, reloading + will be disabled. The default is true. + + Added defaultRedirectStatus attribute to ErrorHandler module. It + may be set to 301 or 302. The default is 301. It determines + the status code set by the redirect handler if a status code has + not already been set. This primarily affects the status code used + when the StaticInterceptor module redirects a directory URL that + doesn't end with a '/'. + Server: @@ -133,6 +143,9 @@ path portion of the request URL. RFC2396 allows '+' in the path of a URL. + Modified IntrospectionUtils.getClassPath() to add classes + directory to the list prior to jars. + 1657 JSPs with tag names that contain '-' or '.' will now compile without an Invalid expression error @@ -212,6 +225,7 @@ reported bug, it was mostly a nuisance. In other cases (see 6143) it was causing major problems. + Configuration: Bug No. Description @@ -226,6 +240,9 @@ actually a JSP page. 5365 Fixed the JasperMangler to handle Java reserved words correctly. + +5958 ApacheConfig, IISConfig, and NSConfig were updated so mappings that + end with /* will write a mapping with and without the ending /*. 6004 Updated Http10Connector to accept any attribute. The attributes without predefined setters will be included with the predefined -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Issues with Tomcat 4.0.1 and WebAppDeploy
Hey, why do you change the port from 8008 to 8009? In tomcat connector side, 8008 is for mod_webapp while 8009 is for mod_jk. Please fall back to 8008 and try again Your httpd.conf looks rights, but this line: WebAppDeploy ROOT warpConnection / I don't know if it can work and may cause error as I haven't try it before. To aviod any error introduced, you should remove this line until everything gets right. server.xml should work without any modification, so please use don't modify it and use the one from distribution. Hope that help. Punky - Original Message - From: Donna Molinari [EMAIL PROTECTED] To: 'Punky Tse' [EMAIL PROTECTED] Cc: Tomcat Developers List [EMAIL PROTECTED]; Donna Molinari [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 1:15 AM Subject: RE: Issues with Tomcat 4.0.1 and WebAppDeploy Hello Punky, I tried this and I am unable to get to the manager, I get - HTTP Status 404 - /manager Now what? -Original Message- From: Punky Tse [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 7:50 PM To: Donna Molinari Cc: Tomcat Developers List Subject: Re: Issues with Tomcat 4.0.1 and WebAppDeploy Donna, First, what does access_log and error_log say? Can you see Web-application not yet deployed in error_log? Second, can you reach http://papeete:88/manager/ ? Do you start Tomcat before httpd is started? Try this sequence. If you use webapp-1.0.1 you will encounter such problem. Regards, Punky - Original Message - From: Donna Molinari [EMAIL PROTECTED] To: 'Punky Tse' [EMAIL PROTECTED] Cc: Donna Molinari [EMAIL PROTECTED]; Tomcat Developers List [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 12:34 AM Subject: RE: Issues with Tomcat 4.0.1 and WebAppDeploy Hello Punky, Thank you for your response. I was able to get Tomcat and Apache working without no errors, but this is what happens now. It doesn't see the examples under Tomcat's webapps directory. Is there something I need to add more to the httpd.conf file to point to the webapps directory that examples is the vitural URL? Like the Context directive: /examples/ /web/jakarta-tomcat-4.0.1/webapps/examples Tomcat Connection to Examples: http://papeete:8080/examples/ Apache Connection to Examples, fails with HTTP 404 : http://papeete:88/examples/ Apache Tomcat Connection to web_Info is Successful: http://papeete:88/webapp-info/ # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # WebAppConnection warpConnection warp papeete:8008 VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/jakarta-tomcat-4.0.1/webapps ServerName papeete.remedy.com ErrorLog /web/apache1.3.23/var/log/error_log Transferlog /web/apache1.3.23/var/log/access_log IfModule mod_webapp.c WebAppDeploy manager warpConnection /manager WebAppDeploy examples warpConnection /examples WebAppDeploy ROOT warpConnection / WebAppInfo /webapp-info /IfModule /VirtualHost -Original Message- From: Punky Tse [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 6:53 PM To: Tomcat Developers List Cc: Donna Molinari Subject: Re: Issues with Tomcat 4.0.1 and WebAppDeploy This line is wrong: WebAppDeploy /web/jakarta-tomcat-4.0.1/webapps/examples warpConnection /examples /web/jakarta-tomcat-4.0.1/webapps/examples is not a web application name. It is a file location. Instead, WebAppDeploy examples warpConnection /examples should work. see the description from INSTALL.txt from mod_webapp: === WebAppDeploy [application name] [connection name] [url path] [application name] The application name as present in your webapps directory in Tomcat. For example, if you want to deploy a WAR-based web application, your application name will look something like myApplication.war. === - Punky - Original Message - From: Donna Molinari [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Donna Molinari [EMAIL PROTECTED] Sent: Friday, February 01, 2002 5:23 AM Subject: FW: Issues with Tomcat 4.0.1 and WebAppDeploy Hello Apache, I really need someone help on the following problems and bugs found when trying to use WebAppDeploy. The procedures caused syntax errors, once syntax was fixed received the errors shown below. Attached are my configuration files, I would appreciate someone letting me know if you where successful in using the WARP Connector :-) error_log.txt httpd.conf.txt apxs.txt server.xml Subject: Apache 1.3.23 and Tomcat 4.0.1 How do I enter a bug on the following error. I am unable to
cvs commit: jakarta-tomcat/src/doc serverxml.html
larryi 02/02/04 18:19:22 Modified:src/doc serverxml.html Log: Forgot to mention welcome files are affected by defaultRedirectStatus. Revision ChangesPath 1.19 +3 -2 jakarta-tomcat/src/doc/serverxml.html Index: serverxml.html === RCS file: /home/cvs/jakarta-tomcat/src/doc/serverxml.html,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- serverxml.html5 Feb 2002 02:06:19 - 1.18 +++ serverxml.html5 Feb 2002 02:19:22 - 1.19 @@ -4,7 +4,7 @@ !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head - !-- $Id: serverxml.html,v 1.18 2002/02/05 02:06:19 larryi Exp $ -- + !-- $Id: serverxml.html,v 1.19 2002/02/05 02:19:22 larryi Exp $ -- !-- Copyright 1999-2001 Apache Software Foundation -- meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link rel=stylesheet href=style.css @@ -1028,7 +1028,8 @@ status code has not already been set. It may be set to quot;301quot; or quot;302quot;. This primarily affects the status code used when the a href=#StaticInterceptorStaticInterceptor/a module - redirects a 7quot;directoryquot; URL that doesn't end with a '/'/td + redirects a quot;directoryquot; URL that doesn't end with a '/' and + redirects to welcome files./td td301/td /tr tr valign=top -- 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/02/04 18:20:25 Modified:.RELEASE-NOTES-3.3.1.txt Log: Forgot to mention welcome files are affected by defaultRedirectStatus. Revision ChangesPath 1.31 +2 -2 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.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- RELEASE-NOTES-3.3.1.txt 5 Feb 2002 02:11:00 - 1.30 +++ RELEASE-NOTES-3.3.1.txt 5 Feb 2002 02:20:25 - 1.31 @@ -3,7 +3,7 @@ Release Notes = -$Id: RELEASE-NOTES-3.3.1.txt,v 1.30 2002/02/05 02:11:00 larryi Exp $ +$Id: RELEASE-NOTES-3.3.1.txt,v 1.31 2002/02/05 02:20:25 larryi Exp $ This document describes the changes that have been made since the @@ -128,7 +128,7 @@ the status code set by the redirect handler if a status code has not already been set. This primarily affects the status code used when the StaticInterceptor module redirects a directory URL that - doesn't end with a '/'. + doesn't end with a '/' and redirects to welcome files. Server: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 4600] - Tomcat 3.3 redirect behavior differs from Tomcat 3.2
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=4600. 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=4600 Tomcat 3.3 redirect behavior differs from Tomcat 3.2 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-02-05 02:21 --- This will be configurable in Tomcat 3.3.1 beta1 using the new defaultRedirectStatus attribute on the ErrorHandler module. This attribute will affect the redirections done by the StaticInterceptor, such as the welcome file redirection you cite. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Do different virtual hosts have to have different appBase values?
Quoting Micael Padraig Og mac Grene [EMAIL PROTECTED]: [ ] They do. Reason: [X ] They don't. Reason: I hope you mean docBase? Don't see why they couldn't point to the same repository of files, provided that the files aren't open for exclusive use (Windows???). If you run on Unix, you could just symlink one directory to another and it would probably still be OK. Provided, of course, you're only reading the files from there. Otherwise, two applications could be stepping on each other's toes. There would still be 2 different contexts (i.e. two different applications in the sense of the Servlet Spec), from what I understand. Bojan -- 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 HttpServletResponseFacade.java
billbarker02/02/04 19:54:27 Modified:src/facade22/org/apache/tomcat/facade HttpServletResponseFacade.java Log: Make certain that the Writer isn't in the error state. This is the quickest and safest fix. We could try for something better in 3.3.2 if we want. However, this almost never happens (since usually an IOException kills the entire thread), so there really isn't that much extra garbage to collect. Fix for bug #6234. Reported by: Pete Fischer [EMAIL PROTECTED] Revision ChangesPath 1.25 +7 -4 jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpServletResponseFacade.java Index: HttpServletResponseFacade.java === RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpServletResponseFacade.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- HttpServletResponseFacade.java30 Jan 2002 03:37:12 - 1.24 +++ HttpServletResponseFacade.java5 Feb 2002 03:54:27 - 1.25 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpServletResponseFacade.java,v 1.24 2002/01/30 03:37:12 billbarker Exp $ - * $Revision: 1.24 $ - * $Date: 2002/01/30 03:37:12 $ + * $Header: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/HttpServletResponseFacade.java,v 1.25 2002/02/05 03:54:27 billbarker Exp $ + * $Revision: 1.25 $ + * $Date: 2002/02/05 03:54:27 $ * * * @@ -106,7 +106,10 @@ void recycle() { usingStream = false; usingWriter= false; - // writer=null; // fixed ( ? ) + if( writer.checkError() ) { + OutputBuffer oBuffer= response.getBuffer(); + writer = new ServletWriterFacade( oBuffer, response); + } if( osFacade != null ) osFacade.recycle(); } -- 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
billbarker02/02/04 19:56:55 Modified:.RELEASE-NOTES-3.3.1.txt Log: Document fix for 6234 Revision ChangesPath 1.32 +3 -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.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- RELEASE-NOTES-3.3.1.txt 5 Feb 2002 02:20:25 - 1.31 +++ RELEASE-NOTES-3.3.1.txt 5 Feb 2002 03:56:55 - 1.32 @@ -3,7 +3,7 @@ Release Notes = -$Id: RELEASE-NOTES-3.3.1.txt,v 1.31 2002/02/05 02:20:25 larryi Exp $ +$Id: RELEASE-NOTES-3.3.1.txt,v 1.32 2002/02/05 03:56:55 billbarker Exp $ This document describes the changes that have been made since the @@ -225,6 +225,8 @@ reported bug, it was mostly a nuisance. In other cases (see 6143) it was causing major problems. +6234 Recycle the Writer in the ResponseFacade if it is the error state when + the facade is recycled. Configuration: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 6234] - checkError method of Servlet's PrintWriter is unreliable
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=6234. 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=6234 checkError method of Servlet's PrintWriter is unreliable [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2002-02-05 04:01 --- This is fixed now in the CVS HEAD, and will appear in 3.3.1-B1. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: cvs commit: jakarta-tomcat RELEASE-PLAN-3.3.1.txt
Issue Description 1 Must be able to compile and run under JDK 1.1.8 + FIXED 2 Address Cactus failures running with Tomcat 3.3 + Tried but not 100% successful yet. From what little I've seen, I've never really understood this one. The Request runs under a single thread, so yielding shouldn't do anything at all (unless the Cactus servlet starts a thread, in which case it is a Cactus problem). I can see where increasing SoLinger might help, but 0.1 Sec should be plenty with an up-to-date machine. Does the problem appear when you don't use the HTTP connector? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]