tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gur...@resolution.com
Subject loggers no longer working
Date Fri, 15 Sep 2006 18:02:24 GMT
Hi,
We started using tomcat5.5.17 (used to use tomcat4).
so far, I have moved all webapp/lib/*.jar to tomcat5 webapp/lib
As of now tomcat5 common/lib and tomcat4 common/lib have different jar files.
And also I had to do some changes with server.xml.

It seems like my logger are no longer working anymore. I get cataline.out,
my application logger works fine, but logger on <HOST(server.xml) 
and logger in <CONTEXT(server.xml) are not working.

If I try to add one more logger in <ENGINE (server.xml), then I get 
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger

I have posted my part of cataline.out and server.xml

Thanks.

----cataline.out-----------------------
Jul 3, 2006 1:19:30 AM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.tomcat.util.digester.ObjectCreateRule.begin(Obje
---------------------------------------

-----server.xml------------------------
<Server port="8105" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <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="8081" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    
    <Connector port="8109" 
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
    <Engine name="Standalone" defaultHost="access1.inventconnect.com" debug="0"
jvmRoute="jvm1">
    
       <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_logG." suffix=".txt"
              timestamp="true"/>
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">
                <Context path="" docBase="ROOT" debug="0"/>
      </Host>

      
      <Host name="access1.inventconnect.com" appBase="/web/sites/dbAccess"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

	<Realm className="org.apache.catalina.realm.JDBCRealm" debug="0"
                driverName="com.edb.Driver"                 
                connectionURL="jdbc:edb://baba1:9999/development"
		connectionName="enterprisedb"
		connectionPassword="enterprisedb"
                userTable="dbuser"
                userNameCol="username"
                userCredCol="password"
                userRoleTable="user_classes"
                roleNameCol="classDescription" 
        />

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="access1_log." suffix=".txt" debug="99"
                timestamp="true"/>
        
                
        <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="access1"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

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

            <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
                  
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
                   
            <Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/>
                      
            <ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
        </Cluster>
       
        <Context    path="/access" 
                    docBase="/web/sites/dbAccess" 
                    debug="0" 
                    reloadable="true">
        
        <Logger     className="org.apache.catalina.logger.FileLogger"
                    prefix="access_log." suffix=".txt" debug="99"
                    timestamp="true"/>
                                  
        <Resource   name="jdbc/ifx"
                    auth="Container"
                    type="javax.sql.DataSource"
                    username="enterprisedb"
                    password="enterprisedb"
                    driverClassName="com.edb.Driver"
                    url="jdbc:edb://baba1:9999/development"
                    validationQuery="SELECT dbuser.id FROM dbuser WHERE id = 1"
                    maxActive="20"
                    maxIdle="20"
                    maxWait="10000"/>
               
        <Resource   name="jdbc/workflow"
                    auth="Container"
                    type="javax.sql.DataSource"
                    username="enterprisedb"
                    password="enterprisedb"
                    driverClassName="com.edb.Driver"
                    url="jdbc:edb://baba1:9999/workflowdb"
                    maxActive="0"
                    maxIdle="20"
                    maxWait="10000"/>

        <Resource   name="jdbc/azure"
                    auth="Container"
                    type="javax.sql.DataSource"                    
                    username="enterprisedb"
                    password="enterprisedb"                    
                    driverClassName="org.objectweb.cjdbc.driver.Driver"        
           
                    url="jdbc:edb://baba1:9999/azure"
                    maxActive="0"
                    maxIdle="20"
                    maxWait="10000"/>        
        </Context>
        
      </Host>
---------------------------------------

-------------------------------------------------
This mail sent through IMP: www.resolution.com

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


Mime
View raw message