Two JK2 Connector Questions
1. Are the JK2 connector releases decoupled from Tomcat? 2. When is connector release 2.0.4 expected to be released? I'm specifically interested in BUG # 13869. mod_jk2 becomes confused when client breaks the connection http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13869 If this bug needs to be verified I can do that as we have a repeatable test case. thanks, __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 and IIS 4.0 performance issue
I have been using Tomcat 4 with JK2 connecting to IIS on Win2K and have had little or no performance loss when compared to using iPlanet. There is a small hit when compared to accessing Tomcat directly. But that is a *small* hit. One developer I know has also been using XP to support this configuration and he has not mentioned any slowness relative to Win2K. I hope that this information helps guide you, e --- Thomas Nybro Bolding [EMAIL PROTECTED] wrote: Greetings list, I have just upgraded my Tomcat 4.1.27 using JK to Tomcat 5.0.16 using JK2. In both cases I connect to IIS 4.0 running on Win NT. Performance is now extremely poor when the JSP pages are being served through JK2 whereas everything works smoothly when requesting port 8080. I therefore assume it is the JK2/IIS connection which causes the penalty. My questions are thus: - is anybody connecting IIS 4.0 to Tomcat using JK2 with no or little perfomance penalty? And in that case which default parameters have been changed? - would upgrading to Windows 2000 and IIS 5.0 solve this ussue? - I have read the isapi_redirector2 is for IIS 5.0 on Windows 2000 whereas isapi_redirector2.02 is for IIS5.1 on Windows XP? Can this be confirmed? Which version is for IIS 4.0 then??? Any help will be highly appreciated! Best regards Thomas FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can large upload cause tomcat hanging?
Increase your maxHeap in the JVM instance running tomcat. --- Zsolt Koppany [EMAIL PROTECTED] wrote: Hi, I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02, Linux, SuSe-8.1) got much larger and a couple of hours later tomcat didn't react to the most of the events. What can be the reason? Additionally I found strange the tomcat didn't create the localhost_log... files since the last startup. Here I are the data provided by top: SIZE: 175M RSS: 165M SHARE: 38980 STAT: S N %CPU: 0.0% %MEM: 33.3 TIME 0:05 The machine has 512Mb. Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS Redirector confuses responses
Description: Occasionally when under heavy load User1 will receive the response associated with the request from User2. This is VERY rare and Users find this feature undesirable. This does not happen running Standalone or using the iPlanet redirector. Configuration: Running IIS standalone and communicating through the IIS redirector. Both IIS and Tomcat run on the same Win2K machine running with SP6. Tomcat : 4.1.18 IIS redirector : JK2 Version 2.0.3 I'd really appreciate: - any confirmation of sightings elsewhere. - any suggestions of how we MIGHT be able to re-produce this on demand. This is not a flippant request for help. This bug has been sited about 6 times in total and I have no idea how many hours (person months/years) have been spent trying to re-create this prior to requesting help on this venue. with appreciation, __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: integrating tomcat 4.04 into iplanet 4.1 using nsapi_redirector on linux
Wow. that was long. Suggestions: 1. In workers.properties change localhost to the FQDN (Fully Qualified Domain Name). 2. Check to see if iPlanet is in fact forwarding the request to the redirector OR if it is serving the request itself. Frequently folks make the content under tomcat available to the iPlanet Web Server via a symlink and this obfuscates the matter. Though this technique is good for delivering static content and speeding up the overall process by reducing the burden on the redirector. To check if iPlanet is forwarding the request to the redirector, tail -f iPlanet log/access and nsapi.log. There should be a collection of activity on both sides for each request. If you have it on the iPlanet side but not the redirector side (of iPlanet) then you have a problem in obj.conf. My experience is that you have a problem in obj.conf, almost always. If you have doubts then attach obj.conf to your response. I'll take a look at it. emmett --- Jerry Birchler [EMAIL PROTECTED] wrote: Has anyone done this? If so, I would like some help. I have compiled the redirector and validated that it is getting invoked, my connector is up and listening, I validated that the class files used for ajp13 are getting invoked, I set up my obj.conf file, the server.xml file and my workers.properties file, but I only get this when I hit a JSP page: HTTP 500 - Internal server error Internet Explorer After playing around a bit more, I get a little better results() in that the browser returns html, but it is not running the JSP. Instead all code between % and % shows up when I view the page source, but is otherwise hidden. When I view a JSP in netscape's doc root, I see the entire text rendered and all code between % and % as if it were just text. So, the bottom line is that a JSP referenced from netscape to tomcat in tomcat's doc root behaves different than JSP in netscape's doc root. I got this result by changing the mime type for jsp to text/plain from it's default value of magnus-internal/servlet. Reverting the mime back to magnus-internal/servlet produces the same error 500 message. Changing the IE to display non-friendly errors did not shed any light on this. The only difference in logs for this is that when I revert back to the magnus-internal/servlet mime type, I get this in the netscape errors log: [02/Aug/2002:00:09:13] config (32160): for host XX.XX.XXX.XXX trying to GET /examples/jsp/snp/snoop.jsp, handle-processed reports: no way to service request for /examples/jsp/snp/snoop.jsp I don't get this error when I change the mime-type to text/plain. BEA suggests using text/jsp for integrating its application server. I tried that and got the same result after restarting netscape. I've even tried arbitrary values and got the same result. Finally, I removed the mime altogether--same result--no errors, but JSP does not execute and is hidden unless I source the page. Same thing. One other detail that may be important is that my linux machine has two NICS. One is a fixed external IP, and the other is a fixed local IP. My network is working fine, but I was just wondering if there are special configuration considerations for a multi-homed system. My guess is no, because most production applications I've worked on are multi-homed. # #Here is my makefile process: 1. Download tomcat 4.04 connectors source 2. copy the Makefile.solaris to Makefile.linux (which was not a part of the distribution, unfortunately) 3. changed references from SOLARIS and solaris to LINUX and linux 4. added SUITSPOT_HOME to /etc/bashrc 5. changed this line in the Makefile from: INCLUDEDIR=$(SUITSPOT_HOME)/include to: INCLUDEDIR=$(SUITSPOT_HOME)/plugins/include 6. created a links shell and gave it execute access: # vi links: ln -fs ../common/jk_ajp12_worker.o ln -fs ../common/jk_ajp13.o ln -fs ../common/jk_ajp13_worker.o ln -fs ../common/jk_connect.o # chmod +x links I had to do this because the references are not quite right in the Makefile 7. Then I ran the Makefile using gmake like this: # gmake -f Makefile.linux all It failed for references. I ran my links shell and reran make like this: # ./links # gmake -f Makefile.linux all That built nsapi_redirector.so. I created some directories and copied the binary into /opt/tomcat/bin/netscape/linux/i386. Hopefully, someone has actually done the specific thing I am trying to do. I've included all relevant files below if it will help someone help me. # vi /etc/init.d/tomcat #!/bin/sh CLASSPATH=/opt/tomcat/common/lib/servlet.jar export CLASSPATH su - webserv -c /opt/tomcat/bin/catalina.sh $@ # vi /opt/tomcat/conf/jk/workers.properties # Begin worker.properties ** worker.ajp13.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low
Re: tomcat and netscape
I haven't played with apache and IIS. But I do know a fair amount about the iPlanet integration. If you have a more specific question then just forward it. I hope that I can help. emmett --- Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED] wrote: Anyone know if jakarta entries in netscape's obj.conf file is equivalent to entries in the uriworkermap.properties file when integrating with IIS and Apache? Thanks, Dave -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: getRemoteHost(): how to get the fully qualified name?
There was an interface that was sorta usable from a programmatic standpoint. It was closed due to abuse. There are companies that sell a survey of the web relative to IP addresses and hostnames. I think that one of the products that Paul Vixies company sells has this, or did a few years ago anyway. Sorry that I can't recall more details. It's been a while. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, See John Turner's response: it's not required for an IP address to have a host name associated with it. The reverse is true, every host name must have (at least one) IP address associated with it. So it could be the IP address you couldn't resolve doesn't have a hostname. Can you get a hostname for it using nslookup? If not, there's nothing one can do. The Arin/Whois approach is good for a human. However, it's not yet a public service API (AFAIK), so you can't use it programmatically which is what Mr. Li is looking for. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 12:09 PM To: 'Tomcat Users List' Subject: RE: getRemoteHost(): how to get the fully qualified name? I applied your method to get the names. It works for some IPs. It didn't the name of other IPs. For example, 12.5.203.134 was not converted to a name. Any ideas? Thanks, Jack -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:31 AM To: Tomcat Users List Subject: RE: getRemoteHost(): how to get the fully qualified name? Howdy, You can convert IP to host name yourself. Here's the relevant section of the code: String ipAddress = 123.456.789.123; InetAddress ia = InetAddress.getByName(ipAddress); String hostname = ia.getHostName(); As you will by experimenting, the above has the desirable property of working whether ipAddress is nnn.nnn.nnn.nnn or the host name. So you can pass whatever you get from getRemoteHost() through this. The assumption you mention (the fully qualified name is available to the Solaris the server is running on) is important. The above will throw an UnkownHostException if the assumption is broken. Good luck, Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: getRemoteHost(): how to get the fully qualified name? Hi all When I call the ServletRequest's getRemoteHost()-method, I get sometimes the fully quialified name and sometimes the IP of the remote host. This is the case also, if the fully qualified name is aviable to the Solaris the server is running on (using nslookup). Now, is there a way to force the Servlet-Engine to deliver the fully qualified name instead of the IP all the times? Thanks for any help. Philipp -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0.2 iPlanet Web Server 4.1 sp9
I have been doing a lot of work with Tomcat 3.x and the Nsapi redirector. Yes, it works. Your problem is probably one of configuration in obj.conf. It is VERY sensitive to ordering. In the default object you need to define ALL of the items being redirected prior to the default Ns handler. Please attach your obj.conf and I will take a look at it. And one of the things that I seem to recall from the documentation is to NOT use localhost, but instead use the FQDN (Fully Qualified Domain Name). --- Thierry Boucheny [EMAIL PROTECTED] wrote: Hello, I t seems like I am not the only one with this problem but I did not find any solution. I try to get iPlanet WebServer 4.1 and Tomcat 4.0.2 connected throught nsapi_redirector.so. Those applications runs on Red Hat Linux 7.2 on the same machine. I have compiled a new nsapi_redirector.so using th jakarta-tomcat-connector sources and I have made all the configurations in obj.conf, workers.properties ( which actualy used to run on apache before). I have started iPlanet and it says that everything is ok. Even in the nsapi.log, everything seems ok. When I try the URL http://localhost/examples, iPlanet Web Server says that the requested object does not exists on this server. There is no message in the catalina.out log file. My conclusion is that iPlanet does not redirect the URL to Tomcat. Does somebody has ever tried this configuration ?? or does somebody could tell me if this configuration is possible ?? Thanks for any idea or information. Thierry Boucheny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: NSAPI redirector in Tomcat 4.0.x ?
From what I recall the redirector and tomcat are fairly orthogonal, thus you can use the redirector from 3.x. --- Alexandre Kaszycki [EMAIL PROTECTED] wrote: Hi there, I would like to install Tomcat 4.0.1 on iPlanet Enterprise Server 4.1 SP10. I know there was a NSAPI redirector in Tomcat 3.3.x designed for that but I can not find it anymore in Tomcat 4.0.1. Does anybody know if it still exists in Tomcat 4.0.x and where I can find it ? Sincerely, = Alexandre, Kaszycki Consultant Nouvelles Technologies T-Systems Soleri / e-technologies Lyon Groupe Deutsche Telekom Notre métier: la convergence informatique et télécoms Convergence is our Business ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: configuring tomcat to run behind iPlanet Web Server...
Let me provide a few pointers. http://developer.iplanet.com/docs/technote/webserver/migratin.html The short story is to use the NSAPI redirector and AJP13. Configure the AJP13 Connection handler in server.xml. The redirector is typically included in the tomcat distribution. Though some folks have had a difficult time with getting it to build on Solaris. On the iPlanet side it's also fairly easy if you are doing simple stuff. --- Sesha Nandyal [EMAIL PROTECTED] wrote: How do I configure Tomcat to run behind iPlanet Web Server? I have the tomcat-jk2.jar. How do I use this jar? Any pointers to docs would be very helpful. Thanks Sesha -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problems With POST Method
Just one datapoint. I haven't had any problems getting large datafiles to upload using POST. I've been working with test files in excess of 50MB. This is on Solaris 6 8, NT, and Win2K running against Java 1.3.1_03 and Tomcat 3.2.1. Though the most important aspect of this is the upload servlet that you are using. I have not tried Jeffery Hunters against huge datafiles, only single digit MB sized ones. --- Stephane Plante [EMAIL PROTECTED] wrote: Hi, After playing along happily for a while, our application ends up dying right at a POST. Tomcat ends up returning bad fetch in the logs when issuing this post. I am running: - Windows NT 4.0, SP 6a, IE 5.5 - Sun Java 2 SDK 1.4 - Tomcat 4.0.4 - Apache 1.3.24 - mod_jk.dll connector (only JSPs are being handled by Tomcat) I came across this error in mod_jk.log: [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed Could this mean that we are stuffing too much in a POST? Is there a fixed limitation imposed by Tomcat? Is there some buffer/parameter that we can increase, or any other measures that we can take that would allow us to get around this error? We are posting binary data, typically 50-60K in size. I have attempted to use Tomcat stand-alone, and the same error (bad fetch) still occurs (when we hit that POST in our application). This may be worthwhile to mention: our application works on JRun 3.1. (I don't intend on starting a flame war- but think this is useful enough to know.) I am still poking around, but any feedback would be greatly appreciated! Thanks in advance, Stephane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Slow upload speeds
This is my first post to this group and I hope that it makes sense. Using either Tomcat 3.2.1 or 3.2.4 and JDK 1.3.1_01 and my own or Jason Hunters Upload servlet there is a performance problem when going from an IE client to a Solaris server. Versions Used: JDK 1.3.1_03 IE 5.5 NS 4.7 Win2K SP2 Solaris 8 patch level 108528-14 Tomcat 3.2.1 and 3.2.4 Jason Hunter Upload Servlet (release Jun 12,02) Other combinations are fine. IE - Win2K server is 1MB/sec NS - Win2K server is 1.5 MB/sec NS - Solaris server is 3.5 MB/sec IE - Solaris server is 77 KB/sec POST headers look like: Netscape POST /DocUpload?name=foo HTTP/1.0 Referer: http://localhost/upload Connection: Keep-Alive User-Agent: Mozilla/4.7 [en] (WinNT; U) Host: a.b.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Encoding: gzip Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 Authorization: Basic cmVkOnJlZA== Content-type: multipart/form-data; boundary=---234141407216749 Content-Length: 47042639 InternetExplorer POST /DocUpload?name=foo HTTP/1.1 Referer: http://localhost/upload Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461) Host: a.b.com Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */* Accept-Encoding: gzip, deflate Accept-Language: en-us Authorization: Basic cmVkOnJlZA== Content-Type: multipart/form-data; boundary=---7d22d31e1d0288 Content-Length: 47042630 Cache-Control: no-cache Can somebody please explain this? __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]