Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52912 invoked from network); 24 Feb 2010 12:22:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 12:22:10 -0000 Received: (qmail 18900 invoked by uid 500); 24 Feb 2010 12:22:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18828 invoked by uid 500); 24 Feb 2010 12:22:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 18817 invoked by uid 99); 24 Feb 2010 12:22:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 12:22:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 12:21:57 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id 8443E22610A for ; Wed, 24 Feb 2010 13:21:36 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KbiqhBxHJ7qM for ; Wed, 24 Feb 2010 13:21:36 +0100 (CET) Received: from [192.168.245.129] (p549EA950.dip0.t-ipconnect.de [84.158.169.80]) by tor.combios.es (Postfix) with ESMTPA id 0F198226107 for ; Wed, 24 Feb 2010 13:21:35 +0100 (CET) Message-ID: <4B8519A9.5000001@ice-sa.com> Date: Wed, 24 Feb 2010 13:20:57 +0100 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: sending request to tomcat failed..... References: <27637807.post@talk.nabble.com> <27714156.post@talk.nabble.com> In-Reply-To: <27714156.post@talk.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi. Apologising for top-posting in this case. the configuration files below look like you have re-used some old files left over from some old versions of just about everything. I suggest that you check the current Tomcat documentation for Tomcat 6.0, and remove/correct all the settings and attributes which are no longer used and/or supported. They just confuse things a lot, for you and for everyone else. For example, if I compare this http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html with your below, I see several attributes in your Connector which seem to have no current equivalent in the documentation. The same with your workers.properties file. Check here : http://tomcat.apache.org/connectors-doc/reference/workers.html In other words, for now just put this in your workers.properties file, and remove all the rest : worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=xxxxxxxxxxxx worker.worker1.port=8009 (you can re-introduce some other parameters later, if you really need them. But the above is the basic config and is enough in your case). Finally, as I believe I already answered before, the error that you see in the logfile looks very much like you do not have a problem with the settings, but you have a problem with the connection between the browser and the server. It looks like the /client/ (the browser) is closing the connection with the server (Apache), before Tomcat and mod_jk are able to finish sending a response to it. Using a browser plugin like HttpFox (for Firefox) may help you determine whay this is the case. Munirathinavel wrote: > Hi... > I'm using the following files in Tomcat & Apache. > > workers.properties: > > workers.tomcat_home=D:/tomcat6.0.18 > workers.java_home=C:/Program Files/Java/jdk1.6.0_16 > > ps=/ > > > worker.list=worker1 > worker.worker1.type=ajp13 > worker.worker1.host=xxxxxxxxxxxx > worker.worker1.port=8009 > worker.worker1.connection_pool_timeout=600 > worker.worker1.connect_timeout=60000 > worker.worker1.prepost_timeout=60000 > worker.worker1.socket_keepalive=1 > worker.worker1.socket_timeout=60 > worker.worker1.lbfactor=1 > worker.loadbalancer.type=lb > worker.loadbalancer.balance_workers= worker1 > worker.inprocess.type=jni > > server.xml > > SSLEngine="on" /> > > /> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > acceptCount="100" > minProcessors="5" maxProcessors="100" connectionTimeout="60000" > disableUploadTimeout="true" redirectPort="8443"/> > > resourceName="UserDatabase"/> > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > workersConfig="conf/workers.properties" > modJk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log" > jkDebug="info" noRoot="false"/> > > > > > > > context.xml > > > > > > WEB-INF/web.xml > type="javax.sql.DataSource" > maxActive="50" > maxIdle="10" > minIdle="30" > username="xxxxxxxxxxxx" password="xxxxxxxxxxxx" > driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" > url="jdbc:sqlserver://xxxxxxxxxxxx:1433; > databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;" > numTestsPerEvictionRun="15" > timeBetweenEvictionRunsMillis="900000" > minEvictableIdleTimeMillis="900000" > testWhileIdle="true" > testOnBorrow="false" > removeAbandoned="true" > removeAbandonedTimeout="300" > logAbandoned="true" > /> > type="javax.sql.DataSource" > maxActive="8" > maxIdle="4" > minIdle="2" > username="xxxxxxxxxxxx" password="xxxxxxxxxxxx" > driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver" > > url="jdbc:sqlserver://xxxxxxxxxxxx:1433;databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;" > numTestsPerEvictionRun="15" > timeBetweenEvictionRunsMillis="900000" > minEvictableIdleTimeMillis="900000" > testWhileIdle="true" > testOnBorrow="false" > removeAbandoned="true" > removeAbandonedTimeout="300" > logAbandoned="true" > /> > > virtual-host.conf > NameVirtualHost *:80 > > ServerAdmin xxxxxxxxxx > DocumentRoot "D:/Apache2.2/htdocs/gateway" > ServerName xxxxxxxxxx > ServerAlias xxxxxxxxxx > ErrorLog "logs/gateway-error.log" > CustomLog "logs/gateway-access.log" common > > JkMount /* worker1 > JkUnMount /*js/*.js worker1 > JkUnMount /*.jpeg worker1 > JkUnMount /*.png worker1 > JkUnMount /*.gif worker1 > JkUnMount /*.html worker1 > JkUnMount /*.jpg worker1 > JkUnMount /*.css worker1 > JkUnMount /*.swf worker1 > > > Due to this issue i'm not able to proceed further.Can you please reply > me soon.Hoping for the nice reply. > > > > > Peter Crowther wrote: >> On 18 February 2010 13:55, Munirathinavel >> wrote: >>> I'm using apache2.2 + tomcat6.0.18 + mod_jk1.2.28 for my portal.While >>> doing >>> load test with 20 & more users i'm getting the following message in >>> mod_jk.log....and in browser also page is not getting loaded... >> [...] >>> [Thu Feb 18 18:35:07 2010][1528:2244] [info] jk_ajp_common.c (1788): >>> Writing >>> to client aborted or client network problems >>> [Thu Feb 18 18:35:07 2010][1528:2244] [info] jk_ajp_common.c (2447): >>> (worker1) sending request to tomcat failed (unrecoverable), because of >>> client write error (attempt=1) >>> [Thu Feb 18 18:35:07 2010]worker1 216.205.107.50 30.250000 >>> [Thu Feb 18 18:35:07 2010][1528:2244] [info] mod_jk.c (2608): Aborting >>> connection for worker=worker1 >>> >>> >>> I'm suspecting this due to some improper configuration of >>> workers.properties & virtual host settings..... >>> can you please help me to proceed further..... >> We probably could, but we are not telepaths. We cannot analyse your >> configuration given the information you have posted. If you suspect >> the error is somewhere in workers.properties and virtual host >> settings, then why not post them plus your server.xml (with any >> sensitive bits replaced)? >> >> - Peter >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org