Unable to lookup java:comp/env/log4j/context-name

2025-05-13 Thread Arbi Sookazian
Hello,We are reproducing the following ERROR multiple times per Tomcat 7.x startup in multiple dev and test environments:2025-05-07 15:21:39,599 http-bio-8081-exec-4 ERROR Unable to lookup java:comp/env/log4j/context-name javax.naming.NameNotFoundException: Name [log4j/context-name] is not bound

separated logging using startup.sh vs catalina.sh

2025-05-13 Thread Arbi Sookazian
Hi,We are unable to log to separately configured log files in Tomcat 7.x under specific startup script/condition (webapp2 is configured correctly to log to $CATALINA_BASE/logs/testing2-catalina.out):Restarted tomcat container by this command: bin/startup.shLogs from webapp2 logs (i.e testing2) a