I reported an issue where the file would be truncated if the web application directory is not writable by tomcat. It tries to write a file in the webapps/app/META-INF directory. Could this be your issue?
George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -----Original Message----- > From: Yong Gou [mailto:[EMAIL PROTECTED] > Sent: Monday, January 16, 2006 3:03 AM > 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. > > 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:[EMAIL PROTECTED] > Sent: 2006年1月16日 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年1月16日 16:24 > > To: dev@tomcat.apache.org > > Subject: truncated server.xml got when storing config on condition > > that more than one vitual host with same application base > directory > > "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 > > Tomcat > > server as the default on a Tomcat server, I created another > virtual > > 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 > > operations > > resulted in the following server.xml. > > > > NOTE that the Host, Engine, Service and Server elements are not > > 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 > > correct > > server.xml. You can try to define more virtual hosts with the same > > appBase webapps if two cannot reproduce the issue. > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > <Server > > > > port="9005"> > > > > <Listener > > className="org.apache.catalina.core.AprLifecycleListener"/> > > > > <Listener > > > className="org.apache.catalina.mbeans.GlobalResourcesLifecycle > Listener > > "/ > >> > > > > <Listener > > > className="org.apache.catalina.storeconfig.StoreConfigLifecycl > eListene > > r" > > /> > > > > <Listener > > className="org.apache.catalina.mbeans.ServerLifecycleListener"/> > > > > <GlobalNamingResources> > > > > <Environment > > > > name="simpleValue" > > > > type="java.lang.Integer" > > > > value="30"/> > > > > <Resource > > > > auth="Container" > > > > description="User database that can be updated and saved" > > > > name="UserDatabase" > > > > type="org.apache.catalina.UserDatabase" > > > > pathname="conf/tomcat-users.xml" > > > > > factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/> > > > > </GlobalNamingResources> > > > > <Service > > > > name="Catalina"> > > > > <Connector > > > > port="9080" > > > > redirectPort="9443" > > > > minSpareThreads="25" > > > > connectionTimeout="20000" > > > > maxThreads="150" > > > > maxSpareThreads="75" > > > > maxHttpHeaderSize="8192"> > > > > </Connector> > > > > <Connector > > > > port="9009" > > > > redirectPort="9443" > > > > protocol="AJP/1.3"> > > > > </Connector> > > > > <Engine > > > > defaultHost="localhost" > > > > name="Catalina"> > > > > <Realm > className="org.apache.catalina.realm.UserDatabaseRealm"/> > > > > <Host > > > > appBase="webapps" > > > > name="testvh"> > > > > <Context > > > > path="/TomcatLogHelper"> > > > > > > <WatchedResource>d:\javadev\apache\tomcat2\conf\context.xml</ > > WatchedReso > > urce> > > > > </Context> > > > > </Host> > > > > <Host > > > > appBase="webapps" > > > > name="localhost"> > > > > <Alias>gy</Alias> > > > > <Context > > > > path="/TomcatLogHelper"> > > > > > > <WatchedResource>d:\javadev\apache\tomcat2\conf\context.xml</ > > WatchedReso > > urce> > > > > </Context> > > > > > > > > Thanks, > > > > Eric > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]