Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 88769 invoked from network); 16 Jan 2006 10:03:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jan 2006 10:03:44 -0000 Received: (qmail 58760 invoked by uid 500); 16 Jan 2006 10:03:38 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 58704 invoked by uid 500); 16 Jan 2006 10:03:38 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 58692 invoked by uid 99); 16 Jan 2006 10:03:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 02:03:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ygou@bea.com designates 63.96.162.5 as permitted sender) Received: from [63.96.162.5] (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2006 02:03:37 -0800 Received: from JPTOFE01.apac.bea.com (jptofe01b.bea.com [10.144.0.29]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id k0GA3DGJ023418 for ; Mon, 16 Jan 2006 02:03:15 -0800 Received: from CNBJEX01.apac.bea.com ([10.130.0.15]) by JPTOFE01.apac.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 16 Jan 2006 19:03:14 +0900 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Subject: RE: truncated server.xml got when storing config on condition that more than one vitual host with same application base directory "webapps" were defined. X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Date: Mon, 16 Jan 2006 18:03:07 +0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: truncated server.xml got when storing config on condition that more than one vitual host with same application base directory "webapps" were defined. Thread-Index: AcYagK8KibigVoBlSX+gnFQ3lIjb6AAAxJ6w From: "Yong Gou" To: "Tomcat Developers List" X-OriginalArrivalTime: 16 Jan 2006 10:03:14.0785 (UTC) FILETIME=[10E16510:01C61A84] X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2006.01.16.003106 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Peter, There were just some info, no severe exception was thrown. You can try = it in your environment. Thanks, Eric -----Original Message----- From: Peter Rossbach [mailto:pr@objektpark.de]=20 Sent: 2006=C4=EA1=D4=C216=C8=D5 17:39 To: Tomcat Developers List Subject: Re: truncated server.xml got when storing config on condition = that more than one vitual host with same application base directory = "webapps" were defined. Hey, see you any exception inside your log? Regards peter Am 16.01.2006 um 09:29 schrieb Yong Gou: > The version of Tomcat server is 5.5.12 > > -----Original Message----- > From: Yong Gou > Sent: 2006=C4=EA1=D4=C216=C8=D5 16:24 > To: dev@tomcat.apache.org > Subject: truncated server.xml got when storing config on condition =20 > that more than one vitual host with same application base directory =20 > "webapps" were defined. > > Hi, > > > > I am not sure if the following is an issue of Tomcat JMX server or an > improper usage? Is there anyone who has experienced the same? > > In addition to the virtual host localhost which is predefined by =20 > Tomcat > server as the default on a Tomcat server, I created another virtual =20 > host > testvh on the server with its attribute appBase being specified as > webapps and other attributes having their default values via Tomcat > admin console webapp, and then clicked the "commit changes" button to > save all configurations to the server's server.xml file. The =20 > operations > resulted in the following server.xml. > > NOTE that the Host, Engine, Service and Server elements are not =20 > closed. > This is an incomplete server.xml. However if I specified another value > other than webapps for its attribute appBase when the virtual host > testvh was created, the issue would disappear and I could get a =20 > correct > server.xml. You can try to define more virtual hosts with the same > appBase webapps if two cannot reproduce the issue. > > > > > > > port=3D"9005"> > > className=3D"org.apache.catalina.core.AprLifecycleListener"/> > > = className=3D"org.apache.catalina.mbeans.GlobalResourcesLifecycleListener = > "/ >> > > = className=3D"org.apache.catalina.storeconfig.StoreConfigLifecycleListene = > r" > /> > > className=3D"org.apache.catalina.mbeans.ServerLifecycleListener"/> > > > > > name=3D"simpleValue" > > type=3D"java.lang.Integer" > > value=3D"30"/> > > > auth=3D"Container" > > description=3D"User database that can be updated and saved" > > name=3D"UserDatabase" > > type=3D"org.apache.catalina.UserDatabase" > > pathname=3D"conf/tomcat-users.xml" > > = factory=3D"org.apache.catalina.users.MemoryUserDatabaseFactory"/> > > > > > name=3D"Catalina"> > > > port=3D"9080" > > redirectPort=3D"9443" > > minSpareThreads=3D"25" > > connectionTimeout=3D"20000" > > maxThreads=3D"150" > > maxSpareThreads=3D"75" > > maxHttpHeaderSize=3D"8192"> > > > > > port=3D"9009" > > redirectPort=3D"9443" > > protocol=3D"AJP/1.3"> > > > > > defaultHost=3D"localhost" > > name=3D"Catalina"> > > > > > appBase=3D"webapps" > > name=3D"testvh"> > > > path=3D"/TomcatLogHelper"> > > > d:\javadev\apache\tomcat2\conf\context.xml WatchedReso > urce> > > > > > > > appBase=3D"webapps" > > name=3D"localhost"> > > gy > > > path=3D"/TomcatLogHelper"> > > > d:\javadev\apache\tomcat2\conf\context.xml WatchedReso > urce> > > > > > > Thanks, > > Eric > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org > For additional commands, e-mail: dev-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org