Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Tomcat 7 takes more than 21 minutes to start:

ene 09, 2013 10:01:39 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1290787 ms

When it finishes it says that it's scanning JARs that don't contain TLDs:

ene 09, 2013 10:59:39 AM org.apache.jasper.compiler.TldLocationsCache tldScanJar
INFO: Al menos un JAR, que se ha explorado buscando TLDs, aún no contenía TLDs. Activar historial de depuración para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se halló TLDs. Saltarse JARs no necesarios durante la exploración puede dar lugar a una mejora de tiempo significativa en el arranque y compilación de JSP .

A paste of the entire log can be found here.

After searching the error, I discovered that someone had resolved the same issue by modifying /var/lib/tomcat7/conf/logging.properties to log more verbose information.

When I set org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level to FINE as suggested in the link, the output of my log remains unchanged.

How can I make Tomcat 7 log more?

share|improve this question
add comment

2 Answers 2

In tomcat 7, logging.properties contains an entry: #org.apache.jasper.compiler.TldLocationsCache.level = FINE, which is commented out by default. Would removing the comment help give you the information you are looking for?

share|improve this answer
add comment

from tomcat 7 documentary:

The default logging.properties in the JRE specifies a ConsoleHandler that routes logging to System.err. The default conf/logging.properties in Apache Tomcat also adds several FileHandlers that write to files. A handler's log level threshold is INFO by default and can be set using SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST or ALL. You can also target specific packages to collect logging from and specify a level. Here is how you would set debugging from Tomcat. You would need to ensure the ConsoleHandler's (or FileHandler's') level is also set to collect this threshold, so FINEST or ALL should be set. Please refer to java.util.logging documentation in the JDK for the complete details:

org.apache.catalina.level=FINEST
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.