(sorry for sending the same email again... the earlier delivery wasn't all successful since one of the attachments had .bat file extension)

The following provides clarifications / details on the environments in which the application is developed and then hosted: (quite a bit of detail but I'm hoping this will help get to the root of the issue)

Develop environment:
=================
* Windows XP SP3
* Tomcat version information:
C:\apache-tomcat-5.5.25\bin>version
Server version: Apache Tomcat/5.5.25
Server built:   Aug 24 2007 05:33:50
Server number:  5.5.25.0
OS Name:        Windows XP
OS Version:     5.1
Architecture:   x86
JVM Version:    1.6.0_30-b12
* There is a log4j.properties file in CATALINA_HOME\common\classes\
(attached as log4j.properties.dev.tomcat)
* There is a log4j.properties file in the application's WEB-INF\classes\
(attached as log4j.properties.dev.application)
* jar files in the application's WEB-INF\lib folder:
Directory of
C:\apache-tomcat-5.5.25\webapps\SmartCloudLearningMobi\WEB-INF\lib
09/11/2009  05:35 PM            60,841 commons-logging-1.1.1.jar
05/19/2009  01:51 PM           391,834 log4j-1.2.15.jar
* log4j-1.2.15.jar is also in CATALINA_HOME\common\lib\
* I've attached catalina.bat file (renamed)
* After I start Tomcat, hit the application once in the browser and then shutdown Tomcat, CATALINA_HOME\logs\ has the following log files:
Directory of C:\apache-tomcat-5.5.25\logs
04/20/2012  08:33 AM    <DIR>          .
04/20/2012  08:33 AM    <DIR>          ..
04/20/2012  08:31 AM                 0 admin.2012-04-20.log
04/20/2012  08:31 AM                 0 catalina.2012-04-20.log
04/20/2012  08:31 AM                 0 host-manager.2012-04-20.log
04/20/2012  08:31 AM                 0 localhost.2012-04-20.log
04/20/2012  08:31 AM                 0 manager.2012-04-20.log
04/20/2012  08:33 AM             1,599 SmartCloudLearning.log
04/20/2012  08:33 AM             1,361 SmartCloudLearningMobi.log
04/20/2012  08:33 AM               455 SpringMVC.log
04/20/2012  08:31 AM                 0 tomcat.log
* I've attached the concerned application's log file, renamed as SmartCloudLearningMobi.log.dev - note that logging pattern in the application's log file matches what's defined in the application's WEB-INF\classes\log4j.properties - I see some output on the console that I have attached as file DevConsoleOutput.txt. The application related output is in file SmartCloudLearningMobi.log but I don't see Tomcat related output in any log file
- note that catalina.2012-04-20.log is empty!
*** The problem I'm trying to solve does not exist in the development environment!!! *** - note that here also, I have the Spring and Hibernate related jar files that I suspect are adding these INFO and DEBUG entries in CATALINA_HOME\common\lib\

Question:
* where are the other files such as admin.2012-04-20.log, catalina.2012-04-20.log, etc configured?


Live environment:
==============
* CentOS release 5.4 (Final) Linux ip-208-109-190-155.ip.secureserver.net 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux
* Tomcat version information:
Server version: Apache Tomcat/5.5.28
Server built:   Jul 24 2009 01:33:09
Server number:  5.5.28.0
OS Name:        Linux
OS Version:     2.6.18-53.el5
Architecture:   i386
JVM Version:    1.6.0_23-ea-b01
* There is a log4j.properties file in $CATALINA_HOME/common/classes/
(attached as log4j.properties.live.tomcat)
* There is a log4j.properties file in the application's WEB-INF/classes/
(attached as log4j.properties.live.application)
* jar files in the application's WEB-INF/lib folder:
total 500
drwxr-xr-x 2 tomcat tomcat   4096 Apr 20 01:09 .
drwxr-xr-x 4 tomcat tomcat   4096 Apr 18 23:59 ..
-rw-r--r-- 1 tomcat tomcat  60841 Sep 11  2009 commons-logging-1.1.1.jar
-rw-r--r-- 1 tomcat tomcat 391834 May 19  2009 log4j-1.2.15.jar
* log4j-1.2.15.jar is also in $CATALINA_HOME/common/lib/
* I've attached catalina.sh file
* After I start Tomcat, hit the application once in the browser, $CATALINA_HOME/logs/ has the following log files:
[root@ip-208-109-190-155 logs]# ls -la
total 9980
drwxr-xr-x  2 tomcat tomcat     4096 Apr 20 01:11 .
drwxr-xr-x 13 root   root       4096 Apr  9 07:31 ..
-rw-r--r--  1 root   root          0 Apr 20 01:11 admin.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 catalina.2012-04-20.log
-rw-r--r--  1 root   root   10178109 Apr 20 01:12 catalina.out
-rw-r--r-- 1 root root 0 Apr 20 01:11 host-manager.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 localhost.2012-04-20.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 manager.2012-04-20.log
-rw-r--r--  1 root   root       1468 Apr 20 01:11 SmartCloudLearning.log
-rw-r--r--  1 root   root       1113 Apr 20 01:12 SmartCloudLearningMobi.log
-rw-r--r-- 1 root root 244 Apr 20 01:11 SmartCloudLearningMobi-QA.log
-rw-r--r--  1 root   root       1469 Apr 20 01:11 SmartCloudLearning-QA.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 tomcat.log
-rw-r--r--  1 root   root          0 Apr 20 01:11 VeggieFoodie-mobile.log
* I've attached the concerned application's log file, renamed as SmartCloudLearningMobi.log.live - note that logging pattern in the application's log file matches what's defined in the application's WEB-INF/classes/log4j.properties
- note that catalina.2012-04-20.log is empty!
- *** note that there one extra file, catalina.out that's already 10 MB ***
- I've attached only a part of the file to the email
- logging pattern in catalina.log does not match what's defined in the application's WEB-INF/classes/log4j.properties - note that I have the Spring and Hibernate related jar files that I suspect are adding these INFO and DEBUG entries in $CATALINA_HOME/common/lib/

Question:
* who could be responsible for creating and configuring catalina.out file on the Linux sever? Where do I look?

Thanks for working with me on this.

Dilip

Attachment: log4j.properties.dev.application
Description: application/ms-application

[ INFO] 2012-04-20 08:55:50 (ApplicationContext.java:log:647) - Initializing
Spr
ing FrameworkServlet 'Spring MVC Dispatcher Servlet'
[ INFO] 2012-04-20 08:55:51 (MLog.java:<clinit>:80) - MLog clients using
log4j l
ogging.
[ INFO] 2012-04-20 08:55:51 (C3P0Registry.java:banner:77) - Initializing
c3p0-0.
9.0 [built 11-July-2005 00:43:29 -0400; debug? true; trace: 10]
[ INFO] 2012-04-20 08:55:52 (PoolBackedDataSource.java:getPoolManager:257) -
Ini
tializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource@a30fd[
acquireI
ncrement -> 5, acquireRetryAttempts -> 10, acquireRetryDelay -> 1000,
autoCommit
OnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure ->
false,
checkoutTimeout -> 0, connectionTesterClassName ->
com.mchange.v2.c3p0.impl.Def
aultConnectionTester, description -> null, driverClass ->
com.mysql.jdbc.Driver,
factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false,
ident
ityToken -> a30fd, idleConnectionTestPeriod -> 3600, initialPoolSize -> 3,
jdbcU
rl ->
jdbc:mysql://localhost/smartcloudlearning?useUnicode=true&characterEncodin
g=UTF8, loginTimeout -> 0, maxIdleTime -> 1800, maxPoolSize -> 25,
maxStatements
-> 0, maxStatementsPerConnection -> 0, minPoolSize -> 1,
numHelperThreads -> 3,
preferredTestQuery -> SELECT 1, properties -> {user=******,
password=******}, p
ropertyCycle -> 300, testConnectionOnCheckin -> false,
testConnectionOnCheckout
-> false, usesTraditionalReflectiveProxies -> false ]
[ INFO] 2012-04-20 08:55:55 (ApplicationContext.java:log:647) - Initializing
Spr
ing root WebApplicationContext
[ INFO] 2012-04-20 08:55:59 (ApplicationContext.java:log:647) - Initializing
Spr
ing FrameworkServlet 'Spring MVC Dispatcher Servlet'
[ INFO] 2012-04-20 08:56:00 (ApplicationContext.java:log:647) - Initializing
Spr
ing root WebApplicationContext
[ INFO] 2012-04-20 08:56:00 (ApplicationContext.java:log:647) - Initializing
Spr
ing FrameworkServlet 'mvc-dispatcher'
[ INFO] 2012-04-20 08:56:24
(ResourceServiceImpl.java:getResourceTypes:200) - Ge
tting resource types...
[ INFO] 2012-04-20 08:56:24
(ResourceServiceImpl.java:getResourceTypes:210) - Re
turning the following resource types:
Video
Audio
Image
Document

[ INFO] 2012-04-20 08:56:24
(OrganizationController.java:getDefaultOrganizationI
nJSON:44) - default session id
[ INFO] 2012-04-20 08:56:24
(OrganizationController.java:getDefaultOrganizationI
nJSON:45) - default email address
[ INFO] 2012-04-20 08:56:24
(OrganizationServiceImpl.java:getDefaultOrganization
:146) - getting default organization id...
[ INFO] 2012-04-20 08:56:24
(OrganizationServiceImpl.java:getDefaultOrganization
:164) - default email address : got organization Pre-sign-in Organization
[ INFO] 2012-04-20 08:56:24
(OrganizationController.java:getDefaultOrganizationI
nJSON:49) - got default organization

Attachment: log4j.properties.live.application
Description: application/ms-application

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

Reply via email to