RE: ...also Can't build webapp-1.0-tc4.0 on NT
I've tried out to build the mod_webapp.dll and libapr.dll on NT by using msdev for source files for libapr(choose those under win32 suddir and some common ones from unix) and using the makefiles for mod_webapp.c and aprutil. Some instructions here: http://www.google.com/search?q=cache:e3Lfx7D45n8:www.ingrid.org/jajakart a/tomcat/tomcat-4.0/src-ja/connectors/WIN32.txt+mod_webapp.dllhl=en . However, I cannot make it work with apache 1.3.19(20) yet. Good Luck! Xuemei -Original Message- From: Thom Park [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:13 PM To: [EMAIL PROTECTED] Subject: ...also Can't build webapp-1.0-tc4.0 on NT mod_Webapp doesn't want to build on NT. It's lacking a libapr.mak file and, when the libapr.dsp project is run, tries to compile unix stuff. Is there any way to get ahold of the build scripts that created the downloadable binaries for mod_webapp? -Thom -Original Message- From: Barry Adams [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 1:09 PM To: [EMAIL PROTECTED] Subject: Can't compile webapp-1.0-tc4.0 under Solaris I can't compile webapp-1.0-tc4.0 under solaris (Solaris 8, sparc) The Autoconf system doesn't seem to know much about solaris, I managed to fix three problems as follows. It couldn't find, sys/syslimits.h and stdint.h, so i make symbolic links from /usr/include/sys/syslimits.h - /usr/include/limits.h /usr/include/stdint.h - /usr/include/inttypes.h Which helped In time.c and timestr.c, it couldn't find the symbols tm_gmtoff so i removed these, which help In the locks, it couldn't find LOCK_EX or LOCK_UN, (missing from solaris includes, so i added #define LOCK_SH 1 #define LOCK_EX 2 #define LOCK_NB 4 #define LOCK_UN 8 to /usr/include/sys/file.h But the DSO support won't compile either and has me stumped, here is the offending errors from running 'make'. make[4]: Entering directory `/software/webapp-module-1.0-tc40/apr/dso/unix' /bin/sh /software/webapp-module-1.0-tc40/apr/libtool --silent --mode=compile cc -g -O2 -DHAVE_CONFIG_H -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include -I../../include/arch -I../../include/arch/unix -c dso.c touch dso.lo dso.c: In function `apr_dso_load': dso.c:127: `NSObjectFileImage' undeclared (first use in this function) dso.c:127: (Each undeclared identifier is reported only once dso.c:127: for each function it appears in.) dso.c:127: parse error before `image' dso.c:128: `NSModule' undeclared (first use in this function) dso.c:130: `image' undeclared (first use in this function) dso.c:130: `NSObjectFileImageSuccess' undeclared (first use in this function) dso.c:139: `os_handle' undeclared (first use in this function) dso.c: In function `apr_dso_sym': dso.c:205: `NSSymbol' undeclared (first use in this function) dso.c:205: parse error before `symbol' dso.c:211: `symbol' undeclared (first use in this function) dso.c:218: warning: assignment makes pointer from integer without a cast make[4]: *** [dso.lo] Error 1 Barry Adams
Apache Web Server and tomcat for Java support
Hi, I want to know whether there is a new way for communication between Apache Web Server and Tomcat to support Java: for example, tomcat as a loadable module to Apache Web Server, so we need not start Tomcat and Apache Web Server seperately. Thanks! Xuemei
Re: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work
Hi, Scott Sorry to bother you again. I've runned more tests, and found that for *.html files connection is kept alive, while for cgi program, it always close connection. Even when I just change my cgi program name with .html extension, connection becomes alive though the displayed content is in a mess. I've tried a simple html file and a cgi program which just produce the same html file. The *.html file works fine(I mean connection keeps alive) while not the cgi program. Also I found that in the HTTP GET header by Inetnet Explorer there is one: If-None-Match: some random value here, and in the reply by IIS there is a ETag: same value as in If-None-Match. Are such headers defined in HTTP 1.0 or 1.1? Related to connection problem? Thanks in advance! Xuemei
Re: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work
Hi, Scott Sorry to bother you again. I've runned more tests, and found that for *.html files connection is kept alive, while for cgi program, it always close connection. Even when I just change my cgi program name with .html extension, connection becomes alive though the displayed content is in a mess. I've tried a simple html file and a cgi program which just produce the same html file. The *.html file works fine(I mean connection keeps alive) while not the cgi program. Also I found that in the HTTP GET header by Inetnet Explorer there is one: If-None-Match: some random value here, and in the reply by IIS there is a ETag: same value as in If-None-Match. Are such headers defined in HTTP 1.0 or 1.1? Related to connection problem? Thanks in advance! Xuemei - Original Message - From: Scott Stahlman [EMAIL PROTECTED] To: xuemei [EMAIL PROTECTED] Sent: Saturday, May 19, 2001 1:01 PM Subject: RE: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Sorry for the late reply. Can you post this question on the newsgroup? It would be a great help, as you can probably imagine I must account for how I spend my time and posting this to the newsgroup allows us to do that. But see if http://support.microsoft.com/support/kb/articles/Q195/1/79.asp helps you at all. Thanks, Scott -Original Message- From: xuemei [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:20 AM To: Scott Stahlman Subject: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Hi, Scott I found your email address from the IIS Newsgroup. Sorry to bother you, but I really need some help soon. I just begin to use windows 2k Server and IIS 5.0 for my cgi program. The problem is that the HTTP connection Keep Alive is ON(by default), and the POST request to my cgi program also ask for Connection: Keep-Alive, but IIS always close the connection after sending reply to each request. There's no error at all, and even data is sent back though it's expired to Sender. How can I make HTTP 1.1 persistent connection work with IIS 5.0 on Windows 2000 Server? In fact, I have same problem with IIS 4.0 on NT 4.0 Server. Thank you very very much for your kind help! Xuemei
Re: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work
Scott, Thank you very much for your help! I've posted my question to both tomcat-user and tomcat-dev newsgroup before I sent to you. Here I'll tell more about my program: System: Client Firewall --- [ Web Server - cgi program - mux server ] --- Another Server the data flow for each HTTP POST request as follows (obtained from LanWatch32): The firewall(Raptor) HTTP proxy tends to send one POST request in two parts: HTTP header + HTTP content client(firewall) Web Server cgi program + mux server POST path to cgi program HTTP 1.1 other headers Connection: Keep-Alive --- HTTP 1.1 100 continue .. HTTP content it may take cgi program 1ms --- 100ms to process and send back HTTP reply HTTP 1.1 200 OK .. other headers Connection: close HTTP content It happens both on Windows NT + IIS 4.0 and on Windows 2000 Server + IIS 5.0. My program works with Apache + Linux, the connection is never closed if set accordingly. My questions are: What's the parameters related to HTTP 1.1 connection? How to change them? Appreciate very much your kind help! Xuemei - Original Message - From: Scott Stahlman [EMAIL PROTECTED] To: xuemei [EMAIL PROTECTED] Sent: Saturday, May 19, 2001 1:01 PM Subject: RE: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Sorry for the late reply. Can you post this question on the newsgroup? It would be a great help, as you can probably imagine I must account for how I spend my time and posting this to the newsgroup allows us to do that. But see if http://support.microsoft.com/support/kb/articles/Q195/1/79.asp helps you at all. Thanks, Scott -Original Message- From: xuemei [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:20 AM To: Scott Stahlman Subject: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Hi, Scott I found your email address from the IIS Newsgroup. Sorry to bother you, but I really need some help soon. I just begin to use windows 2k Server and IIS 5.0 for my cgi program. The problem is that the HTTP connection Keep Alive is ON(by default), and the POST request to my cgi program also ask for Connection: Keep-Alive, but IIS always close the connection after sending reply to each request. There's no error at all, and even data is sent back though it's expired to Sender. How can I make HTTP 1.1 persistent connection work with IIS 5.0 on Windows 2000 Server? In fact, I have same problem with IIS 4.0 on NT 4.0 Server. Thank you very very much for your kind help! Xuemei
Fw: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work
Hi, The clear POST data flow is attached as a file. Thanks! Xuemei - Original Message - From: xuemei [EMAIL PROTECTED] To: Scott Stahlman [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 5:37 PM Subject: Re: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Scott, Thank you very much for your help! I've posted my question to both tomcat-user and tomcat-dev newsgroup before I sent to you. Here I'll tell more about my program: System: Client Firewall --- [ Web Server - cgi program - mux server ] --- Another Server the data flow for each HTTP POST request as follows (obtained from LanWatch32): The firewall(Raptor) HTTP proxy tends to send one POST request in two parts: HTTP header + HTTP content client(firewall) Web Server cgi program + mux server POST path to cgi program HTTP 1.1 other headers Connection: Keep-Alive --- HTTP 1.1 100 continue .. HTTP content it may take cgi program 1ms --- 100ms to process and send back HTTP reply HTTP 1.1 200 OK .. other headers Connection: close HTTP content It happens both on Windows NT + IIS 4.0 and on Windows 2000 Server + IIS 5.0. My program works with Apache + Linux, the connection is never closed if set accordingly. My questions are: What's the parameters related to HTTP 1.1 connection? How to change them? Appreciate very much your kind help! Xuemei - Original Message - From: Scott Stahlman [EMAIL PROTECTED] To: xuemei [EMAIL PROTECTED] Sent: Saturday, May 19, 2001 1:01 PM Subject: RE: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Sorry for the late reply. Can you post this question on the newsgroup? It would be a great help, as you can probably imagine I must account for how I spend my time and posting this to the newsgroup allows us to do that. But see if http://support.microsoft.com/support/kb/articles/Q195/1/79.asp helps you at all. Thanks, Scott -Original Message- From: xuemei [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:20 AM To: Scott Stahlman Subject: windows 2K + IIS 5.0 + cgi program + HTTP connection Keep Alive doesn't work Hi, Scott I found your email address from the IIS Newsgroup. Sorry to bother you, but I really need some help soon. I just begin to use windows 2k Server and IIS 5.0 for my cgi program. The problem is that the HTTP connection Keep Alive is ON(by default), and the POST request to my cgi program also ask for Connection: Keep-Alive, but IIS always close the connection after sending reply to each request. There's no error at all, and even data is sent back though it's expired to Sender. How can I make HTTP 1.1 persistent connection work with IIS 5.0 on Windows 2000 Server? In fact, I have same problem with IIS 4.0 on NT 4.0 Server. Thank you very very much for your kind help! Xuemei POSTdataflow.doc
Servlet, JNI
Hi, I'm a SW engineer from ECUTEL. I'm switching from my cgi/fast-cgi code to Java Servlet. And I try to reuse part my c code for cgi/fast-cgi by JNI. I've tested my code with tomcat(version 3.2.1) + apache(version 1.3.19) and iPlanet Web Server(version 4.1 both Fasttrack and Enterprise) on Windows NT. However, I found that the POST requests(send by client every 400ms continuously) are executed in bunch, and the delay between bunches are large(1s - 40s); while within one bunch, the delay between POST requests are small(10 - 200 ms), which is the regular delay with my cgi/fast-cgi code. I'm wondering whether the large delay is caused by process/thread scheduling, or settings problem, or my code(almost same as cgi code except for change of interface for JNI). From tomcat document, it says that it doesn't support multi-processed Servlet on Windows NT and doesn't recommand using thread pool for no extensive tests for it yet. However, in my application, the POST traffic is heavy, at least one POST every 400ms from one client, and for each POST, I need connect to a Server by TCP, send request and get back reply, the process takes about 200ms with cgi. Ok, I think above is enough information about my problem. Thanks in advance for your kind help! Sincerely, Xuemei Zhang