Questions tagged [tomcat-juli]

Question regrading Tomcat's Java logging API (since tomcat 7)

16 questions
19
votes
3 answers

Classpath issue between jetty-maven-plugin and tomcat-jdbc 8.0.9+ leading to ServiceConfigurationError

I'm working on an app using : jetty-maven-plugin:9.3.2.v20150730 tomcat-jdbc:8.0.8 (which has tomcat-juli as dependency) After trying to upgrade the tomcat-jdbc jar to any version beyond 8.0.9+ I get the following…
vsampaio
  • 193
  • 1
  • 3
  • 8
15
votes
5 answers

tomcat 7 internal logging with log4j2.xml

I am trying to configure tomcat 7 internal logging with log4j2. I have followed the answer provided at Logging server classes in Tomcat 6 with log4j2. I am using tomcat 7.0.54, and log4j-core-2.1.jar, log4j-api-2.1.jar. I have down loaded the extras…
Paramita Banerjee
  • 211
  • 1
  • 2
  • 6
4
votes
1 answer

Tomcat 8.5 org.apache.juli maxDays property not working

I have wrote below configuration in my logging.properties: 2localhost.org.apache.juli.AsyncFileHandler.level = FINE 2localhost.org.apache.juli.AsyncFileHandler.directory =…
Hkachhia
  • 4,463
  • 6
  • 41
  • 76
4
votes
1 answer

ClassCircularityError: java/util/logging/LogRecord running Gradle webapp with JavaMelody and Tomcat plugin

I'm getting the stack trace below when I try to launch my app using the Gradle Tomcat plugin's embedded container. org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':tomcatRun'. at…
David Moles
  • 48,006
  • 27
  • 136
  • 235
3
votes
1 answer

Why is Log4j2 JsonLayout + KeyValuePair printing empty logEvent messages

TL;DR If I'm using JsonLayout with a nested KeyValuePair in my log4j2.xml config the resulting log messages are empty. Any ideas why? Long Story I'm using Tomcat 8.5.43 with the following logging related…
dforce
  • 2,136
  • 3
  • 20
  • 36
3
votes
3 answers

tomcat in linux:java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

when I startup tomcat in linux,I met a problem. Using CLASSPATH:/data/apache-tomcat-7.0.47/bin/bootstrap.jar:/data/apache-tomcat-7.0.47/bin/tomcat-juli.jar `Exception in thread "main" java.lang.NoClassDefFoundError:…
user3155758
  • 31
  • 1
  • 1
  • 2
2
votes
1 answer

How to roll tomcat 8.0 logs daily specifically localhost log file

As written in title i want Daily rolling file appender for localhost log file. I tried some configuration in logging.properties file as follow: added following statement but it wont work. 2localhost.org.apache.juli.AsyncFileHandler.limit =…
Arjun Patil
  • 111
  • 9
2
votes
1 answer

Tomcat server logs have date in filename - rotatable=false does not work

I have two tomcat 6 installations running on the same Redhat 5 machine - one is "mine" and one belongs to another group at my organisation. Mine is currently 6.0.35, the other is 6.0.32. I had a problem with the filenames being generated for the…
Dev Null
  • 75
  • 7
2
votes
3 answers

Tomcat 8 won't start

I've been searching quite a bit, but can't find the answer. I just upgraded STS (from 3.2) so I could try out Tomcat 8 (from 7.0.53). I've got STS 3.6.2 and Tomcat 8.0.15. After adding the TC8 server and configuring it it refuses to start, with this…
Nick
  • 4,901
  • 40
  • 61
2
votes
1 answer

In Tomcat JULI, do the 'facility specific' loggers become per-webapp logger roots?

Can I expect that a log entry for "Hi!" will be emitted to ${catalina.base}/logs/webapp.log? Tomcat Config {$CATALINA_BASE}/conf/logger.properties # DECLARE HANDLERS handlers = 3webapp.org.apache.juli.FileHandler # CONFIGURE…
David Bullock
  • 6,112
  • 3
  • 33
  • 43
1
vote
1 answer

Latest tomcat-embed-logging-juli does not match with other embedded artifacts.. Is it not part of tomcat?

I'm working on a legacy maven project and it uses embedded tomcat. Recently as part of fixing the security vulnerabilities, tomcat is upgraded to latest version 9.0.55. But surprisingly I don't see the corresponding version for the artifact…
Master Po
  • 1,497
  • 1
  • 23
  • 42
1
vote
0 answers

Alter SSL encryption order

We need to alter the order that the SSL encryption is using by API Management for using a cypher without diffie hellman. We already try to use the property SSLHonorCipherOrder but doesn't work. We need to put the weakness encryption first for BSM…
1
vote
1 answer

How to use Jenkins with a modern logging framework?

Jenkins uses by default Java Utils Logging. This is a somewhat outdated logging framework that lacks many features of modern logging frameworks like Log4J or Logback. How can Jenkins be deployed/configured on Tomcat using Logback or Log4J?
Gustave
  • 3,359
  • 4
  • 31
  • 64
0
votes
1 answer

HTTP Status 404 – Not Found after applying log rotation using log4j

I'm trying to do log rotation in Tomcat 8.5. I have followed log4j process by referring URL https://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j . But after following the process mentioned in the URL I'm unable to open localhost, it's…
Surekha
  • 333
  • 1
  • 5
  • 17
0
votes
0 answers

Juli tomcat 7 logging.properties

I have a jar that contains a CustomLoginModule to perform JAAS Autherization. This jar is located in ${CATALINA_BASE}/lib . I have an org.apache.juli.logging.Log object that performs logging in the module on different levels. I would like to have a…
mortada
  • 23
  • 6
1
2