tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
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.
Date Mon, 16 Jan 2006 09:39:20 GMT
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.GlobalResourcesLifecycleListener 
> "/
>>
>
>   <Listener
> className="org.apache.catalina.storeconfig.StoreConfigLifecycleListene 
> 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: 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


Mime
View raw message