doPost() and concurreny issue/question

2000-12-06 Thread Heinemann, Andreas
Hi, i've got a question/problem concerning the doPost() method. As far as I know, whenever there is a new request, tomcat creates a new thread running through the doPost() method. Inside this method, my code does nothing special. But is passes the request and response objects to a queue. this

Re: Clarification for ServletRequest.getServerName()

2000-12-06 Thread Pier P. Fumagalli
Palle Girgensohn [EMAIL PROTECTED] wrote: So, something is wrong, since the spec says that calling ServletRequest.getServerName() is equal to the SERVER_NAME CGI variable And ServletRequest.getServerPort() is equal to the SERVER_PORT CGI variable As you see, this depends on

Re: Proposal: new commiter

2000-12-06 Thread Gomez Henri
+1 Good to see another player on the apache/tomcat link arena

Re: Modifying the Ajp13 Protocol

2000-12-06 Thread cmanolache
To fix these major issues will require modifying the protocol. I have some ideas on how to do so, but I want to get some feedback on the best way to go about making these changes. I could just modify the protocol itself, and change the mod_jk code and Ajp13 code in the tomcat-3.3 branch.

Want to get involved

2000-12-06 Thread Sean Blaes
I would like to get involved in the Tomcat or related development effort. Could somebody here help me to get up to speed and let me know what groups have the most need? The majority of my experience is in middle-tier and back-end C++, and I have been writing java code for about 4 months now.

Re: Proposal: new commiter

2000-12-06 Thread Pierre Delisle
Please vote for Dan Milstein as a new commiter for tomcat. Great! +1 -- Pierre

Re: cvs commit: jakarta-tomcat-4.0/connectors/webapplib Makefilewa.c wa.h wa_callback.c wa_callback.h wa_connection.c wa_connection.hwa_host.c wa_provider.c wa_provider.h wa_provider_info.cwa_provider_warp.c wa_request.c wa_request.h

2000-12-06 Thread Pier P. Fumagalli
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: pier00/12/06 03:21:14 Modified:connectors Makedefs.orig Makefile connectors/apache-1.3 Makefile mod_webapp.c connectors/webapplib Makefile wa.c wa.h wa_callback.c wa_callback.h

bug report #536

2000-12-06 Thread Schuell Hans
Hi, I added a bug report for tomcat 3.2 (#536). The "How to reproduce" field wasn't added to the report from the form and I haven't found a way to add it from the browser. So here are some additional hints: The error occurs, cause I'm using ServletInputStream.read(byte[] b, int off, int len),

BugRat Report #539 has been filed.

2000-12-06 Thread BugRat Mail System
Bug report #539 has just been filed. You can view the report at the following URL: http://znutar.cortexity.com/BugRatViewer/ShowReport/539 REPORT #539 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: serious

Re: Class loading classloader visibility test results

2000-12-06 Thread Craig R. McClanahan
Rob Shaw wrote: Tomcat 3.1 and 3.2. I haven't run the tests for 4.0. You will see the same results in 4.0, for the same reasons, on your simple test cases. However, there is a behavior difference in 4.0 related to the order in which class loaders are searched for classes -- see my upcoming

Re: Class loading classloader visibility test results

2000-12-06 Thread Craig R. McClanahan
Aron Kramlik wrote: Rob, This is great information. I wonder if you could explain why it is that I need to put xml4j.jar file under the $CLASSPATH (i.e. $TOMCAT_HOME/lib) that is loaded by an init() method of a servlet? Which version of Tomcat? There are different issues in each one of

BugRat Report #540 has been filed.

2000-12-06 Thread BugRat Mail System
Bug report #540 has just been filed. You can view the report at the following URL: http://znutar.cortexity.com/BugRatViewer/ShowReport/540 REPORT #540 Details. Project: Jasper Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: high Severity: critical

Re: multiple cookies, PR 371, any news?

2000-12-06 Thread Dan Milstein
Costin, Right after I submitted that patch, I looked more carefully into the MimeHeaders code and came to exactly the conclusion you did (and also figured I would fix it as soon as I got commit access ;-). There's some nice code in Http10.java which will work much better (no extra creation

[BUG] 538 - error-page causes stack overflow when location is an HTML file

2000-12-06 Thread Catherine Jung
Hi, no-one on the user list could help, and I've tried enough ways around this to make me decide it's a bug, rather than something I'm doing wrong (unless someone can correct me :) ) Specifying an HTML file as the location of an error-page causes tomcat to go into a loop of webpage requests,

Re: building mod_jk on freebsd 4.0

2000-12-06 Thread Jeremy Hopkins
Hello there, I am currently tasked with upgrading our current tomcat 3.1 deployment to tomcat 3.2. So far I am pleased with both versions of tomcat. Although, while attempting to switch over to the recomended mod_jk.so from the older mod_jserv.so I run into errors loading mod_jk.so

Re: doPost() and concurreny issue/question

2000-12-06 Thread Craig R. McClanahan
"Heinemann, Andreas" wrote: Hi, i've got a question/problem concerning the doPost() method. As far as I know, whenever there is a new request, tomcat creates a new thread running through the doPost() method. This is not precisely correct in all circumstances. In both Tomcat 3.2 and 4.0,

BugRat Report #541 has been filed.

2000-12-06 Thread BugRat Mail System
Bug report #541 has just been filed. You can view the report at the following URL: http://znutar.cortexity.com/BugRatViewer/ShowReport/541 REPORT #541 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: high Severity: critical

RE: Class loading classloader visibility test results

2000-12-06 Thread cmanolache
The problem in your case is that the ParserFactory will be loaded by the tomcat's classloader, and that classloader doesn't know about the child class loader. What you can do is: Class c=Class.forName( parserClass ); sXMLParser=c.newInstance(); That will load the parserClass using the servlet

BugRat Report #543 has been filed.

2000-12-06 Thread BugRat Mail System
Bug report #543 has just been filed. You can view the report at the following URL: http://znutar.cortexity.com/BugRatViewer/ShowReport/543 REPORT #543 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: high Severity: critical

Re: multiple cookies, PR 371, any news?

2000-12-06 Thread cmanolache
Yeah, MimeHeaders could use some work (it's got a disturbingly high rate of 'XXX' comments). A first step toward that is in util.collections and util.http: I Split the MimeHeaders in: 1. the general-purpose org.apache.tomcat.util.collections.MultiMap: - a specialized map that has

BugRat Report #546 has been filed.

2000-12-06 Thread BugRat Mail System
Bug report #546 has just been filed. You can view the report at the following URL: http://znutar.cortexity.com/BugRatViewer/ShowReport/546 REPORT #546 Details. Project: Tomcat Category: Feature Requests SubCategory: Enhancement Class: suggest State: received Priority: high Severity:

Re: building mod_jk on freebsd 4.0

2000-12-06 Thread Palle Girgensohn
Hi Jeremy! I have exactly the same setup as you, and it works fine after som tweaking. Here's what I had to do to Makefile.freebsd to make it work. Maybe it will help? --- Makefile.freebsd.orig Tue Dec 5 18:51:22 2000 +++ Makefile.freebsdTue Dec 5 19:24:07 2000 @@ -1,18 +1,18 @@ ##

Re: What is the status of BugRat?

2000-12-06 Thread Hans Bergsten
Dan Milstein wrote: Is browsing of Bugs on BugRat working? I can't seem to see anything more recent than Bug #59 for project Tomcat, and yet Bug #540 is being posted to the list. There's a difference between Bugs and Bug Reports. I've been bitten by this as well ;-) I have not tested to

SImplePool doesn't pool?

2000-12-06 Thread James Cook
I suppose if this is true, it could be a huge benefit to Tomcat 3.X since it seems to use the SimplePool class in a few critical sections of code such as JspFactoryImpl, AdapterHandler, and PoolTCPEndpoint. Tomcat 4.X only uses it in the JspFactoryImpl. I am assuming that my analysis is flawed

Re: doPost() and concurreny issue/question

2000-12-06 Thread James Cook
If the POST request is simply a signal for the server to perform some task without sending any pending output to the client, he could make an object that contains all of the important information from the request object, and put this "logical clone" into the queue. jim - Original Message

BugRat Report #483 was closed (apparently by: Ignacio Ortega)

2000-12-06 Thread BugRat Mail System
Report #483 was closed by Person #0 Synopsis: session.invalidate() method. sendRedirect (logged in as: Ignacio Ortega)

BugRat Report #485 was closed (apparently by: Ignacio Ortega)

2000-12-06 Thread BugRat Mail System
Report #485 was closed by Person #0 Synopsis: session.invalidate() sendRedirect tomcat 3.1 (logged in as: Ignacio Ortega)

Re: Tomcat, JSP and Cache

2000-12-06 Thread Jon Stevens
on 12/6/2000 6:05 PM, "Pilho Kim" [EMAIL PROTECTED] wrote: Hi, Tomcat 3.x and 4.0 have a Cache-Control Bug. But, none of Tomcat commiters know that. Because I am not a commiter, I cannot fix the Bug of Tomcat. Try to check my page: http://www.javaclue.org/tomcat/patch32/dopatch.html

I see reference to a start up file here.

2000-12-06 Thread Jason Brenton
I Need help on the basic begins here. I am doing this in win2k prof, but I need help making sure these batch files start. I haven't dealt with batch files deeply in a few years. I need extremely basic help, and the faq appears to be down at the moment.

Tomcat sessions and load balancing

2000-12-06 Thread Bohm, Matt
I am a programmer in an environment that features load balancing on 3 production machines. Typically, requests to a given URL will be routed to any of the three machines, depending on which is the least busy. Can Tomcat session management work correctly in this environment? In other words,

Re: Class loading classloader visibility test results

2000-12-06 Thread Aron Kramlik
Thanks Craig, more great info. I am using Tomcat 3.2 Final Release. I do not see whereI might have the xml.jar file and so I don't think I am loading the DOM classes from a different .jar file. Acrtually, this makes sense since I need to put xml4j.jar in $TOMCAT/lib (under the CLASSPATH) for my

Re: Class loading classloader visibility test results

2000-12-06 Thread Aron Kramlik
Craig, I have changed the way that the init() method loads the parser and parses our XML files and this has fixed the problem. This is back to using Tomcat 3.2. Before we were doing this: private static Parser sXMLParser; Element root = null; Document doc; sXMLParser =

Re: My patches for Tomcat 3.2 wrt mutlibyte characters

2000-12-06 Thread Kazuhiro Kazama
From: Pilho Kim [EMAIL PROTECTED] Subject: Re: My patches for Tomcat 3.2 wrt mutlibyte characters Date: Thu, 7 Dec 2000 11:30:42 +0900 (KST) Message-ID: [EMAIL PROTECTED] This is your big fault. You should know the real meaning of default in API. What is the default encoding in JVM? The

NullPoint error in getRequestDispatcher(nextPage).forward

2000-12-06 Thread Haizheng Zhang
request.setAttribute(str,xx); ServletContext sc = getServletConfig().getServletContext(); sc.getRequestDispatcher(nextPage).forward(request, response); it seems that it could not find the Nextpage, but how should I config the path Thanks

Re: Tomcat sessions and load balancing

2000-12-06 Thread Paul Frieden
I take your message to mean that you have an external load balancing device. We're doing the same thing. We're using mod_jk, and the lbworker. You'll need to define all your servers in workers.properties. We set the weight much higher on the local server because we have IP based sticky session

Re: My patches for Tomcat 3.2 wrt mutlibyte characters

2000-12-06 Thread Costin Manolache
One problem I have with the patches ( and I sent a reply to Pilho Kim the first time he posted the patches) is the impact on performances. The least we can do is to detect if the encoding is compatible with ASCII ( or UNICODE ) and use the getBytes() only if it isn't. The method has a big

cvs commit: jakarta-tomcat-4.0/catalina build.xml STATUS.html

2000-12-06 Thread remm
remm00/12/06 21:15:09 Modified:catalina build.xml STATUS.html Log: - Status update. - Warp connector is now packaged in a separate ./server/warp.jar file (as per Pier's request). Revision ChangesPath 1.26 +8 -2 jakarta-tomcat-4.0/catalina/build.xml

More Ajp13 Work Completed

2000-12-06 Thread Dan Milstein
All, First off, I want to thank you for nominating me to be a committer. I'm very much looking forward to working on the project. What are the next steps? I just completed another good-sized chunk of work: I believe that I've fixed the multipart form bug (reports #536 and #542), and I

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/xml PathMatch.java

2000-12-06 Thread remm
remm00/12/06 23:23:06 Modified:catalina/src/share/org/apache/catalina/util/xml PathMatch.java Log: - Increased the maximum tree depth from 6 to 10. Revision ChangesPath 1.2 +1 -1