tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chandrasekar Krishnan <krish...@research.rutgers.edu>
Subject stdout in tomcat 5.5
Date Wed, 19 Oct 2005 19:58:24 GMT
Hi all,

I recently upgraded an application from Tomcat 5.0 to 5.5 and can't get
the exception trace (uncaught exceptions that where previously logged to
localhost_log) to log anywhere. The documentation specifies that
localhost_log is not used in 5.5 and the uncaught exception stack trace
is logged to stdout log. I'm running on Solaris, so I presume it's
CATALINA_HOME/logs/catalina.out. I can see logs made through System.out in
this file, but not the exception trace. Can someone help me with this? 

OS is Solaris 8, Tomcat version is 5.5.9, Jave version is 1.5.0_01. Here
is the server.xml, if you need it. Thanks in advance.

Chandri Krishnan

<Server port="8091" shutdown="SHUTDOWN">

  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>

  <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>

  <Service name="Catalina">

    <Connector port="8070" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

    <Connector port="8443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"
               keystoreFile="keystore"
               keystorePass="abcde" />

    <Connector port="8009" 

enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jt1">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">
        
        <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
    managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership 
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="auto"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

            <Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="asynchronous"
                ackTimeout="15000"/>

            <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
        </Cluster>

        <Context
className="org.apache.catalina.core.StandardContext" displayName="App1" docBase="app1" path="/ct"
reloadable="true"/>
        <Context
className="org.apache.catalina.core.StandardContext" displayName="App2" docBase="app2" path="/app2">
	        <Valve
className="org.apache.catalina.valves.AccessLogValve"

directory="logs"  prefix="access_log." suffix=".txt" condition="DONT_LOG" 
			pattern="%{TIME}r %{ET}r %U%q IP %a ET %D SID %S
TARGET SP MC %{Cookie}i %{User-Agent}i" resolveHosts="false"/>
        </Context>
      </Host>

    </Engine>

  </Service>

</Server>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message