You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Philip Brusten <ph...@kulnet.kuleuven.be> on 2007/03/09 10:09:11 UTC

Container logging for Tomcat 6.0.x with log4j-1.2.14

Hello everyone,

I've an unsolved issue with enabling tomcat logging with log4j.
In previous versions of tomcat, version 5.5 I did the following things:

I got the commons-logging-1.0.x binary package from 
http://jakarta.apache.org/site/downloads/downloads_commons-logging.cgi 
and extracted the jar to $CATALINA_HOME/common/lib/
Next, I got the log4j distribution package from 
http://logging.apache.org/site/binindex.cgi and extracted the jar to 
$CATALINA_HOME/common/lib/.
And finally, I created a file log4j.properties in 
$CATALINA_HOME/common/classes/

I've discovered that the common loader has changed location and is now: 
$CATALINA_HOME/lib
So I've put the commons-logging-1.1.jar, log4j-1.2.14.jar and the 
log4j.properties in $CATALINA_HOME/lib

When I restart tomcat, only the default juli logging is performed...

How do I tell tomcat to use log4j logging?

Regards,

Philip


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Rémy Maucherat <re...@gmail.com>.
On 3/9/07, Erik Bertelsen <be...@gmail.com> wrote:
> 2007/3/9, Filip Hanik - Dev Lists <de...@hanik.com>:
> > you'll need the modified juli adapter,
> > http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/extras/
> >
>
> Is there any reason that the extras stuff isn't made available in compiled form
> on the main download pages http://mirror-path//tomcat/tomcat-6/v6.0.10/bin ?
>
> I would certainly find it easier to use some of this stuff if I don't need to
> compile it from source.

The extras components may include components which the ASF may not
redistribute, JEE components, etc. To summarize, it's a toolbox.

Rémy

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Erik Bertelsen <be...@gmail.com>.
2007/3/9, Filip Hanik - Dev Lists <de...@hanik.com>:
> you'll need the modified juli adapter,
> http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/extras/
>

Is there any reason that the extras stuff isn't made available in compiled form
on the main download pages http://mirror-path//tomcat/tomcat-6/v6.0.10/bin ?

I would certainly find it easier to use some of this stuff if I don't need to
compile it from source.

- Erik

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
you'll need the modified juli adapter,
http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/extras/

Filip

Philip Brusten wrote:
> Hello everyone,
>
> I've an unsolved issue with enabling tomcat logging with log4j.
> In previous versions of tomcat, version 5.5 I did the following things:
>
> I got the commons-logging-1.0.x binary package from 
> http://jakarta.apache.org/site/downloads/downloads_commons-logging.cgi 
> and extracted the jar to $CATALINA_HOME/common/lib/
> Next, I got the log4j distribution package from 
> http://logging.apache.org/site/binindex.cgi and extracted the jar to 
> $CATALINA_HOME/common/lib/.
> And finally, I created a file log4j.properties in 
> $CATALINA_HOME/common/classes/
>
> I've discovered that the common loader has changed location and is 
> now: $CATALINA_HOME/lib
> So I've put the commons-logging-1.1.jar, log4j-1.2.14.jar and the 
> log4j.properties in $CATALINA_HOME/lib
>
> When I restart tomcat, only the default juli logging is performed...
>
> How do I tell tomcat to use log4j logging?
>
> Regards,
>
> Philip
>
>
> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TomCat 6 on Fedora Core 6

Posted by Mladen Turk <ml...@gmail.com>.
Adam Lipscombe wrote:
> Folks
> 
> 
> 
> The standard fedora 6 rpm package are still on TC 5.5.17, and I would 
> like some guidance on installing TC6.
> 
> Has anyone tried to install TC 6 on fedora Core 6?
> How easy or difficult is it?
> 

 > wget http://ftp.carnet.hr/misc/apache/tomcat/tomcat-6/v6.0.10/bin/apache-tomcat-6.0.10.tar.gz
 > tar zxf apache-tomcat-6.0.10.tar.gz
 > cd apache-tomcat-6.0.10/bin
 > ./run.sh

Regards,
Mladen.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TomCat 6 on Fedora Core 6

Posted by Martin Dubuc <ma...@gmail.com>.
Gotta install Java obviously!

Martin ;-)

On 3/9/07, Adam Lipscombe <ad...@expensys.com> wrote:
> OK thanks.
>
>
> So installation is simply a question of un-tarring the binaries in suitable place?
> Anything else?
>
>
> TIA - Adam
>
> Leon Rosenberg wrote:
> > just download the binaries from tomcat.apache.org.
> > done.
> >
> > On 3/9/07, Adam Lipscombe <ad...@expensys.com> wrote:
> >> Folks
> >>
> >>
> >>
> >> The standard fedora 6 rpm package are still on TC 5.5.17, and I would
> >> like some guidance on
> >> installing TC6.
> >>
> >> Has anyone tried to install TC 6 on fedora Core 6?
> >> How easy or difficult is it?
> >>
> >> Any pointers to a set of instructions?
> >>
> >>
> >>
> >> Thanks -Adam
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
>
> --
>
> ________________________________
> Adam Lipscombe
> Escalus Software Systems
> adam.lipscombe@expensys.com
> Tel: 08450 170 850
> www.expensys.com
>
> This email and any files transmitted with it, including replies and
> forwarded copies, may contain privileged and confidential information and
> is intended solely for the person or organisation to whom it is addressed.
> If you have received this communication in error, please notify us by email
> (Notices@Escalus.net) or telephone (+44 (0)8450 170 850) and then delete the
> email and any copies of it. Views or opinions expressed by an individual
> within this email may not necessarily reflect the views of Escalus Software
> Systems Ltd.
>
> Although most emails and attachments from Escalus Software Systems Ltd are
> screened, it is the responsibility of the recipient to ensure
> that they are virus free. Escalus Software Systems Ltd will not accept any
> liability for damage caused by a virus.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TomCat 6 on Fedora Core 6

Posted by Adam Lipscombe <ad...@expensys.com>.
OK thanks.


So installation is simply a question of un-tarring the binaries in suitable place?
Anything else?


TIA - Adam

Leon Rosenberg wrote:
> just download the binaries from tomcat.apache.org.
> done.
> 
> On 3/9/07, Adam Lipscombe <ad...@expensys.com> wrote:
>> Folks
>>
>>
>>
>> The standard fedora 6 rpm package are still on TC 5.5.17, and I would 
>> like some guidance on
>> installing TC6.
>>
>> Has anyone tried to install TC 6 on fedora Core 6?
>> How easy or difficult is it?
>>
>> Any pointers to a set of instructions?
>>
>>
>>
>> Thanks -Adam
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 

________________________________
Adam Lipscombe
Escalus Software Systems
adam.lipscombe@expensys.com
Tel: 08450 170 850
www.expensys.com

This email and any files transmitted with it, including replies and
forwarded copies, may contain privileged and confidential information and
is intended solely for the person or organisation to whom it is addressed.
If you have received this communication in error, please notify us by email
(Notices@Escalus.net) or telephone (+44 (0)8450 170 850) and then delete the
email and any copies of it. Views or opinions expressed by an individual
within this email may not necessarily reflect the views of Escalus Software
Systems Ltd.

Although most emails and attachments from Escalus Software Systems Ltd are
screened, it is the responsibility of the recipient to ensure
that they are virus free. Escalus Software Systems Ltd will not accept any
liability for damage caused by a virus.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: TomCat 6 on Fedora Core 6

Posted by Leon Rosenberg <ro...@googlemail.com>.
just download the binaries from tomcat.apache.org.
done.

On 3/9/07, Adam Lipscombe <ad...@expensys.com> wrote:
> Folks
>
>
>
> The standard fedora 6 rpm package are still on TC 5.5.17, and I would like some guidance on
> installing TC6.
>
> Has anyone tried to install TC 6 on fedora Core 6?
> How easy or difficult is it?
>
> Any pointers to a set of instructions?
>
>
>
> Thanks -Adam
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


TomCat 6 on Fedora Core 6

Posted by Adam Lipscombe <ad...@expensys.com>.
Folks



The standard fedora 6 rpm package are still on TC 5.5.17, and I would like some guidance on 
installing TC6.

Has anyone tried to install TC 6 on fedora Core 6?
How easy or difficult is it?

Any pointers to a set of instructions?



Thanks -Adam


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Philip Brusten <ph...@kulnet.kuleuven.be>.
Philip Brusten wrote:
> Caldarale, Charles R wrote:
>> Assuming you're referring to Tomcat's own logging, rather than a
>> webapp's logging, read this:
>> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>>
>> (Some assembly required...)
>>
>>   
> I'm looking in to that right now... using the following documentation: 
> http://tomcat.apache.org/tomcat-6.0-doc/printer/building.html
>
> I downloaded the src of tomcat 6.0.10 at 
> /usr/src/apache-tomcat-6.0.10-src
>
> cd /usr/src/apache-tomcat-6.0.10-src
> ant download
>
> output:
> ...
> build-tomcat-dbcp:
>     [copy] Copying 62 files to /usr/share/java/tomcat6-deps/dbcp
>     [move] Moving 62 files to 
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp
>    [javac] Compiling 62 source files to 
> /usr/share/java/tomcat6-deps/dbcp/classes
>    [javac] 
> /usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:43: 
> org.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does 
> not override abstract method isWrapperFor(java.lang.Class<?>) in 
> java.sql.Wrapper
>    [javac] public class BasicDataSource implements DataSource {
>    [javac]        ^
>
> What could possibly go wrong?
> I'm using jdk 1.6
Solved the problem myself... finally :-)

The problem was jdk1.6... I installed jdk1.5 and then the compilation 
worked.
Next I followed the documentation on 
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Regard,

Philip

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Philip Brusten <ph...@kulnet.kuleuven.be>.
Caldarale, Charles R wrote:
> Assuming you're referring to Tomcat's own logging, rather than a
> webapp's logging, read this:
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>
> (Some assembly required...)
>
>   
I'm looking in to that right now... using the following documentation: 
http://tomcat.apache.org/tomcat-6.0-doc/printer/building.html

I downloaded the src of tomcat 6.0.10 at /usr/src/apache-tomcat-6.0.10-src

cd /usr/src/apache-tomcat-6.0.10-src
ant download

output:
...
build-tomcat-dbcp:
     [copy] Copying 62 files to /usr/share/java/tomcat6-deps/dbcp
     [move] Moving 62 files to 
/usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp
    [javac] Compiling 62 source files to 
/usr/share/java/tomcat6-deps/dbcp/classes
    [javac] 
/usr/share/java/tomcat6-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:43: 
org.apache.tomcat.dbcp.dbcp.BasicDataSource is not abstract and does not 
override abstract method isWrapperFor(java.lang.Class<?>) in 
java.sql.Wrapper
    [javac] public class BasicDataSource implements DataSource {
    [javac]        ^

What could possibly go wrong?
I'm using jdk 1.6

Philip

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by Ron Wheeler <rw...@artifact-software.com>.
Would it be possible to change the title of that page or add a word or 
two to make it clear that this page only applies to Tomcat's internal 
logging and not logging in general.

Ron

Caldarale, Charles R wrote:
>> From: Philip Brusten [mailto:philip@kulnet.kuleuven.be] 
>> Subject: Container logging for Tomcat 6.0.x with log4j-1.2.14
>>
>> How do I tell tomcat to use log4j logging?
>>     
>
> Assuming you're referring to Tomcat's own logging, rather than a
> webapp's logging, read this:
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>
> (Some assembly required...)
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>   

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Container logging for Tomcat 6.0.x with log4j-1.2.14

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Philip Brusten [mailto:philip@kulnet.kuleuven.be] 
> Subject: Container logging for Tomcat 6.0.x with log4j-1.2.14
> 
> How do I tell tomcat to use log4j logging?

Assuming you're referring to Tomcat's own logging, rather than a
webapp's logging, read this:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html

(Some assembly required...)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org