Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley

Hi all,

We're very confused.

We have a webservice that is using Axis1.4 and running under Apache
tomcat-5.0.27. We have an apache2 modjk connector in it that's
forwarding requests to the tomcat.

We use java.util.logging in our code, and are using Java 5.

Now we have a webapp that has some servlets/jsps and an axis
webservice in the same war.

We have logging set up on tomcat to use the Logger tags as follows...

In directory..
/usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com

we have..

ourapp.xml

which contains

?xml version='1.0' encoding='utf-8'?
Context displayName=ourapp docBase= path= swallowOutput=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=ourapp-debug. suffix=.log
 directory=/var/log/tomcat
 timestamp=true verbosity=4/

 Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/log/tomcat  prefix=ourapp-access. suffix=.log
pattern=common resolveHosts=false/

/Context

The problem we're seeing is that the logs for the servlets etc all
come out fine. and immediately, but the logs for the webservice seem
not to come out straight away. It is sometimes taking hours for the
logs to appear e.g.

2007-03-29 04:30:25 28-Mar-2007 17:17:51
com.ourcompany.es.ourapp.webservice.server.OurService send
INFO: Webservice Called
28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO
getInsertSQL



The Logger element seems to be putting in this

2007-03-29 04:30:25



Then the rest of the log which is at

28-Mar-2007 17:17:51



We're all very confused, The webservice *was definately called at
17:17 on the 28th, but did not appear in the log file until 04:30 the
following morning.

Anyone got any ideas??

Thanks

Andy

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



Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley

Hi all,

We're very confused.

We have a webservice that is using Axis1.4 and running under Apache
tomcat-5.0.27. We have an apache2 modjk connector in it that's
forwarding requests to the tomcat.

We use java.util.logging in our code, and are using Java 5.

Now we have a webapp that has some servlets/jsps and an axis
webservice in the same war.

We have logging set up on tomcat to use the Logger tags as follows...

In directory..
/usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com

we have..

ourapp.xml

which contains

?xml version='1.0' encoding='utf-8'?
Context displayName=ourapp docBase= path= swallowOutput=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=ourapp-debug. suffix=.log
 directory=/var/log/tomcat
 timestamp=true verbosity=4/

 Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/log/tomcat  prefix=ourapp-access. suffix=.log
pattern=common resolveHosts=false/

/Context

The problem we're seeing is that the logs for the servlets etc all
come out fine. and immediately, but the logs for the webservice seem
not to come out straight away. It is sometimes taking hours for the
logs to appear e.g.

2007-03-29 04:30:25 28-Mar-2007 17:17:51
com.ourcompany.es.ourapp.webservice.server.OurService send
INFO: Webservice Called
28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO
getInsertSQL



The Logger element seems to be putting in this

2007-03-29 04:30:25



Then the rest of the log which is at

28-Mar-2007 17:17:51



We're all very confused, The webservice *was definately called at
17:17 on the 28th, but did not appear in the log file until 04:30 the
following morning.

Anyone got any ideas??

Thanks

Andy

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



Re: Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley

Hi all,

Apologies if this email has come through already...

We're very confused.

We have a webservice that is using Axis1.4 and running under Apache
tomcat-5.0.27. We have an apache2 modjk connector in it that's
forwarding requests to the tomcat.

We use java.util.logging in our code, and are using Java 5.

Now we have a webapp that has some servlets/jsps and an axis
webservice in the same war.

We have logging set up on tomcat to use the Logger tags as follows...

In directory..
/usr/local/tomcat/conf/Catalina/ourapp.ourdomain.com

we have..

ourapp.xml

which contains

?xml version='1.0' encoding='utf-8'?
Context displayName=ourapp docBase= path= swallowOutput=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=ourapp-debug. suffix=.log
directory=/var/log/tomcat
timestamp=true verbosity=4/

Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat  prefix=ourapp-access. suffix=.log
   pattern=common resolveHosts=false/

/Context

The problem we're seeing is that the logs for the servlets etc all
come out fine. and immediately, but the logs for the webservice seem
not to come out straight away. It is sometimes taking hours for the
logs to appear e.g.

2007-03-29 04:30:25 28-Mar-2007 17:17:51
com.ourcompany.es.ourapp.webservice.server.OurService send
INFO: Webservice Called
28-Mar-2007 17:17:51 com.ourcompany.es.ourapp.database.dao.ContactDAO
getInsertSQL



The Logger element seems to be putting in this

2007-03-29 04:30:25



Then the rest of the log which is at

28-Mar-2007 17:17:51



We're all very confused, The webservice *was definately called at
17:17 on the 28th, but did not appear in the log file until 04:30 the
following morning.

Anyone got any ideas??

Thanks

Andy

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