tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles P. Killmer" <charl...@netgaintechnology.com>
Subject Server.xml help
Date Thu, 10 Feb 2005 16:23:53 GMT
Does anyone see anything wrong with this server.xml?  I am still trying
to pin down my database connectivity issues and would like some
validation that I have Tomcat setup appropriately.
 
<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>
  <!-- Global JNDI resources -->
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer"
value="30"/>
    <Resource name="UserDatabase" auth="Container"
              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" />
  </GlobalNamingResources>
 
  <!-- Define the Tomcat Stand-Alone Service -->
  <Service name="Catalina">
    <Connector port="8080"
               maxThreads="150" minSpareThreads="25"
maxSpareThreads="75"
               enableLookups="false" redirectPort="8443"
acceptCount="100"
               debug="0" connectionTimeout="20000" 
               disableUploadTimeout="true" />
 
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" 
               enableLookups="true" redirectPort="8443" debug="0"
               protocol="AJP/1.3" />
    <Engine name="Catalina" defaultHost="www.site1.com" debug="0">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>
 <Host name="www.site1.com" debug="0" appBase="c:/sites/site1" 
       unpackWARs="true" autoDeploy="true">
  <Alias>site1.com</Alias>
  <Context path="" docBase="" debug="0" reloadable="false"/>
  <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="home_access_log."
suffix=".txt"
                 pattern="common" resolveHosts="false"/>
 </Host>
    </Engine>
  </Service>
</Server>

 
 
Thanks
 
Charles Killmer
Netgain Technology
CharlesK@NetgainTechnology.com
Office: (320) 251-4700 ext 107
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message