1 Reply Latest reply on Mar 17, 2005 10:41 AM by Floor FLUX

    Access Logger only working for default virtual host

    Floor FLUX Newbie

      I am running JBoss 4.0.1 and can't figure out how to get the tomcat access-logger working properly. The logger that is running on my default virtual-host runs fine, logging everything. The logger on my other virtual-host creates the log file, but never puts anything in it. The file remains empty.

      Anybody know what my problem might be?

      Here is my configuration:

      <Server>
       <Service name="jboss.web"
       className="org.jboss.web.tomcat.tc5.StandardService">
      
       <!-- A HTTP/1.1 Connector on port 8080 -->
       <Connector port="80" address="${jboss.bind.address}"
       maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
       enableLookups="false" redirectPort="8443" acceptCount="100"
       connectionTimeout="20000" disableUploadTimeout="true"/>
      
       <!-- A AJP 1.3 Connector on port 8009 -->
       <Connector port="8009" address="${jboss.bind.address}"
       enableLookups="false" redirectPort="8443" debug="0"
       protocol="AJP/1.3"/>
      
       <Engine name="jboss.web" defaultHost="localhost">
       <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm" certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
       />
      
       <Logger className="org.jboss.web.tomcat.Log4jLogger"
       verbosityLevel="WARNING"
       category="org.jboss.web.localhost.Engine"/>
      
       <Host name="localhost"
       autoDeploy="false" deployOnStartup="false" deployXML="false">
      
       <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="localhost_access_log." suffix=".log"
       pattern="common" directory="${jboss.server.home.dir}/log"
       resolveHosts="false" />
      
       <!-- Default context parameters -->
       <DefaultContext cookies="true" crossContext="true" override="true"/>
      
       </Host>
      
       <Host name="myDomain" autoDeploy="false" deployOnStartup="false" deployXML="false">
      
       <Alias>www.myDomain.com</Alias>
       <Alias>myDomain.com</Alias>
       <Alias>myServerName</Alias>
       <Alias>myDomainIP</Alias>
       <Alias>myServerOtherIP</Alias>
      
       <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="premeirdata_access_log." suffix=".log"
       pattern="common" directory="${jboss.server.home.dir}/log"
       resolveHosts="false" />
      
       <DefaultContext cookies="true" crossContext="true" override="true"/>
       </Host>
      
       </Engine>
      
       </Service>
      
      </Server>