PLEASE TAKE ME OFF OF THIS LIST!!!! Thank You!
Bill & Lori Sherman 317-582-0661 [EMAIL PROTECTED] www.capecoralvacationhome.com ----- Original Message ----- From: Yong Gou To: dev@tomcat.apache.org Sent: Monday, January 16, 2006 3:23 AM 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.GlobalResourcesLifecycleListener"/ > <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener" /> <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