Bug 45968 - Using log4j in juli cause ClassNotFoundException
Summary: Using log4j in juli cause ClassNotFoundException
Status: RESOLVED DUPLICATE of bug 45585
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 6.0.18
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2008-10-08 14:11 UTC by Georgi Yonchev
Modified: 2008-10-08 15:18 UTC (History)
0 users

attachment1 (4.14 KB, application/octet-stream)
2008-10-08 14:12 UTC, Georgi Yonchev
attachment2 (25.11 KB, application/octet-stream)
2008-10-08 14:12 UTC, Georgi Yonchev
attachment3 (4.22 KB, application/octet-stream)
2008-10-08 14:12 UTC, Georgi Yonchev
attachment4 (825 bytes, application/octet-stream)
2008-10-08 14:13 UTC, Georgi Yonchev

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Yonchev 2008-10-08 14:11:17 UTC
Hi guys,
I get strange exception, when trying to switch to log4j logging in tomcat ( I've made that many times on the previous versions without problems until today ) 

i compile from extras.xml the commons-logging ( with some errors .. 
on first run of:
 ant -f extras.xml commons-logging
i get: 
see attachment 1 [details]

then i try
ant -f build.xml
and i get again build failed :(
see attachment 2 [details]

after that i try again commons-logging and this time build was successful ..
see attachment 3 [details]

how ever, i try with this tomcat-juli* and with other which i know that is "working", and i do the following steps
1. i remove conf/logging.propeties
2. put tomcat-juli.jar in the bin/
3. put tomcat-juli-adapters.jar in lib/
4. put log4j jar & .properties in lib/

and when a start the server
see attachment 4

i have other servers, which is 6.0.16 i think :) and i upgrade them to .18 and everything is working fine there ...

this happens on fresh copy of 6.0.18

can somebody help me, somehow

and awesome! tomcat roxx ;)

Thanks in advance!
Comment 1 Georgi Yonchev 2008-10-08 14:12:33 UTC
Created attachment 22693 [details]
attachment1 [details]
Comment 2 Georgi Yonchev 2008-10-08 14:12:46 UTC
Created attachment 22694 [details]
attachment2 [details]
Comment 3 Georgi Yonchev 2008-10-08 14:12:57 UTC
Created attachment 22695 [details]
attachment3 [details]
Comment 4 Georgi Yonchev 2008-10-08 14:13:08 UTC
Created attachment 22696 [details]
Comment 5 Mark Thomas 2008-10-08 15:18:48 UTC
Attachments 1-3: I You need to build Tomcat before you build the extras package. I'd be very cautious about anything built from extras if the main build was failing. The following sequence should work without error:
ant download
ant -f extras.xml

Attachment 4 looks like a duplicate of 45585. See http://markmail.org/message/xu64wdbonqyjrlf6 for info on a simple fix.

*** This bug has been marked as a duplicate of bug 45585 ***