You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Adilson Dias da Silva <ad...@gmail.com> on 2006/10/25 07:59:13 UTC
log4j doesn't log files when a app is running on tomcat host
Hi,
I and the fellows from the host admin are facing with a following situation:
myApp doesn't create a log file whem running in the host's tomcat server
(virtual host), but is OK whem running in a tomcat localhost.
I have tested the same address used on log4j.xml, creating a file in the
directory (/home/.../domains/myApp/logs/ ) and was created fine.
I have migrate to tomcat from jboss by the same reason, and in the jboss i
have used the jboss soluction for RepositorySelector (
http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector ) without
success.
I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
assumed that this approach in tomcat would provide a similar behavior to
using Repository Selector.
I have searched for threads in this mailing without success.
I will appreciate any help.
Thanks.
Adilson Dias da Silva (BR) * * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
>
> Hello All,
> It is esquisite behavior because the source file to do a test writing a
> file in the same address used on log4j.xml works OK.
>
> So, log4j differs only in getting the address in a config xml file.
>
>
> "Sê plural como o universo."
> Pensamentos - Fernando Pessoa
> ***************************************
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
Thanks,
James, debug=true, but i am not able do acces the host console.
Adilson
On 10/25/06, James Stauffer <st...@gmail.com> wrote:
>
> Can you turn on log4j debugging (set "log4j.debug" system property to
> "true")? That might help determine the cause.
>
> On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > Hi,
> > I and the fellows from the host admin are facing with a following
> situation:
> > myApp doesn't create a log file whem running in the host's tomcat server
> > (virtual host), but is OK whem running in a tomcat localhost.
> > I have tested the same address used on log4j.xml, creating a file in the
> > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > I have migrate to tomcat from jboss by the same reason, and in the
> jboss i
> > have used the jboss soluction for RepositorySelector (
> > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> without
> > success.
> > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
> > assumed that this approach in tomcat would provide a similar behavior to
> > using Repository Selector.
> > I have searched for threads in this mailing without success.
> > I will appreciate any help.
> > Thanks.
> >
> >
> > Adilson Dias da Silva (BR) * * *
> > "Sê plural como o universo."
> > Pensamentos - Fernando Pessoa
> > ***************************************
> >
> >
>
>
> --
> James Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
James,
I am not shure in getting confiables informations from host's people.
So, i will turn back to jboss + tomcat, where i hope to be able to log at
least on jboss's log directory (="${jboss.server.home.dir}/log/myApp.log").
This time i will implement a Ceki's RS JNDI recomended soluction instead the
jboss's RS soluction because will work in both tomcat and jboss.
I will return in the subject asap w/ the news.
Thank you very much.
On 10/28/06, James Stauffer <st...@gmail.com> wrote:
>
> Correct. The log4j.debug property output only goes to standard output.
>
> On 10/27/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > In localhost works ok.
> > Well, to get this answer really fine, i will ask host admin to see
> > the server's console.
> > Whem the system debug is on, the msg is restricted only to the console
> ?
> >
> > On 10/27/06, James Stauffer <st...@gmail.com> wrote:
> > >
> > > Then are you sure that log4j.xml is being found?
> > >
> > > On 10/26/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > OH, OK.
> > > > It is automatic, i do not call explicitly DOMConfigurator.
> > > > . it is in dir classes.
> > > > tks,
> > > >
> > > >
> > > > On 10/26/06, James Stauffer <st...@gmail.com> wrote:
> > > > >
> > > > > Automatic: you put log4j.xml in the classpath.
> > > > > Manual: You explicitly call DOMConfigurator
> > > > >
> > > > > Which do you do?
> > > > >
> > > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > > > Hi, Jake,
> > > > > > Thanks,
> > > > > > It is a log4j.xml and it is in \WEB-INF and \classes also. it
> will
> > > be OK
> > > > > in
> > > > > > classes but, just in case.
> > > > > > automatic or manual? I d'not know what you are asking.
> > > > > > Adilson
> > > > > >
> > > > > >
> > > > > > On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Where do you put your config file? And is the config file
> > > > > > > log4j.properties or
> > > > > > > log4j.xml? Do you use automatic configuration or manual
> > > > > configuration?
> > > > > > >
> > > > > > > Jake
> > > > > > >
> > > > > > > Quoting James Stauffer <st...@gmail.com>:
> > > > > > >
> > > > > > > > Can you turn on log4j debugging (set "log4j.debug" system
> > > property
> > > > > to
> > > > > > > > "true")? That might help determine the cause.
> > > > > > > >
> > > > > > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com>
> > > wrote:
> > > > > > > > > Hi,
> > > > > > > > > I and the fellows from the host admin are facing with a
> > > following
> > > > > > > > situation:
> > > > > > > > > myApp doesn't create a log file whem running in the host's
> > > tomcat
> > > > > > > server
> > > > > > > > > (virtual host), but is OK whem running in a tomcat
> localhost.
> > > > > > > > > I have tested the same address used on log4j.xml, creating
> a
> > > file
> > > > > in
> > > > > > > the
> > > > > > > > > directory (/home/.../domains/myApp/logs/ ) and was created
> > > fine.
> > > > > > > > > I have migrate to tomcat from jboss by the same reason,
> and in
> > > the
> > > > > > > jboss i
> > > > > > > > > have used the jboss soluction for RepositorySelector (
> > > > > > > > >
> > > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > > > > > > without
> > > > > > > > > success.
> > > > > > > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory
> of
> > > myApp
> > > > > and
> > > > > > > > > assumed that this approach in tomcat would provide a
> similar
> > > > > behavior
> > > > > > > to
> > > > > > > > > using Repository Selector.
> > > > > > > > > I have searched for threads in this mailing without
> success.
> > > > > > > > > I will appreciate any help.
> > > > > > > > > Thanks.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Adilson Dias da Silva (BR) * * *
> > > > > > > > > "Sê plural como o universo."
> > > > > > > > > Pensamentos - Fernando Pessoa
> > > > > > > > > ***************************************
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > James Stauffer
> http://www.geocities.com/stauffer_james/
> > > > > > > > Are you good? Take the test at
> http://www.livingwaters.com/good/
> > > > > > > >
> > > > > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > > > > > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > > > > > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Vote no monumento Cristo Redentor para que seja uma das 7
> maravilhas
> > > do
> > > > > > mundo.
> > > > > > Gratuito, em www.new7wonders.com
> > > > > > * * *
> > > > > > "Sê plural como o universo."
> > > > > > Pensamentos - Fernando Pessoa
> > > > > > ***************************************
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas
> do
> > > > mundo.
> > > > Gratuito, em www.new7wonders.com
> > > > * * *
> > > > "Sê plural como o universo."
> > > > Pensamentos - Fernando Pessoa
> > > > ***************************************
> > > >
> > > >
> > >
> > >
> > > --
> > > James Stauffer http://www.geocities.com/stauffer_james/
> > > Are you good? Take the test at http://www.livingwaters.com/good/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> > >
> >
> >
> > --
> > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> > mundo.
> > Gratuito, em www.new7wonders.com
> > * * *
> > "Sê plural como o universo."
> > Pensamentos - Fernando Pessoa
> > ***************************************
> >
> >
>
>
> --
> James Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by James Stauffer <st...@gmail.com>.
Correct. The log4j.debug property output only goes to standard output.
On 10/27/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> In localhost works ok.
> Well, to get this answer really fine, i will ask host admin to see
> the server's console.
> Whem the system debug is on, the msg is restricted only to the console ?
>
> On 10/27/06, James Stauffer <st...@gmail.com> wrote:
> >
> > Then are you sure that log4j.xml is being found?
> >
> > On 10/26/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > OH, OK.
> > > It is automatic, i do not call explicitly DOMConfigurator.
> > > . it is in dir classes.
> > > tks,
> > >
> > >
> > > On 10/26/06, James Stauffer <st...@gmail.com> wrote:
> > > >
> > > > Automatic: you put log4j.xml in the classpath.
> > > > Manual: You explicitly call DOMConfigurator
> > > >
> > > > Which do you do?
> > > >
> > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > > Hi, Jake,
> > > > > Thanks,
> > > > > It is a log4j.xml and it is in \WEB-INF and \classes also. it will
> > be OK
> > > > in
> > > > > classes but, just in case.
> > > > > automatic or manual? I d'not know what you are asking.
> > > > > Adilson
> > > > >
> > > > >
> > > > > On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> > > > > >
> > > > > >
> > > > > > Where do you put your config file? And is the config file
> > > > > > log4j.properties or
> > > > > > log4j.xml? Do you use automatic configuration or manual
> > > > configuration?
> > > > > >
> > > > > > Jake
> > > > > >
> > > > > > Quoting James Stauffer <st...@gmail.com>:
> > > > > >
> > > > > > > Can you turn on log4j debugging (set "log4j.debug" system
> > property
> > > > to
> > > > > > > "true")? That might help determine the cause.
> > > > > > >
> > > > > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com>
> > wrote:
> > > > > > > > Hi,
> > > > > > > > I and the fellows from the host admin are facing with a
> > following
> > > > > > > situation:
> > > > > > > > myApp doesn't create a log file whem running in the host's
> > tomcat
> > > > > > server
> > > > > > > > (virtual host), but is OK whem running in a tomcat localhost.
> > > > > > > > I have tested the same address used on log4j.xml, creating a
> > file
> > > > in
> > > > > > the
> > > > > > > > directory (/home/.../domains/myApp/logs/ ) and was created
> > fine.
> > > > > > > > I have migrate to tomcat from jboss by the same reason, and in
> > the
> > > > > > jboss i
> > > > > > > > have used the jboss soluction for RepositorySelector (
> > > > > > > >
> > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > > > > > without
> > > > > > > > success.
> > > > > > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of
> > myApp
> > > > and
> > > > > > > > assumed that this approach in tomcat would provide a similar
> > > > behavior
> > > > > > to
> > > > > > > > using Repository Selector.
> > > > > > > > I have searched for threads in this mailing without success.
> > > > > > > > I will appreciate any help.
> > > > > > > > Thanks.
> > > > > > > >
> > > > > > > >
> > > > > > > > Adilson Dias da Silva (BR) * * *
> > > > > > > > "Sê plural como o universo."
> > > > > > > > Pensamentos - Fernando Pessoa
> > > > > > > > ***************************************
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > > > > >
> > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > > > > > > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > > > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas
> > do
> > > > > mundo.
> > > > > Gratuito, em www.new7wonders.com
> > > > > * * *
> > > > > "Sê plural como o universo."
> > > > > Pensamentos - Fernando Pessoa
> > > > > ***************************************
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> > > mundo.
> > > Gratuito, em www.new7wonders.com
> > > * * *
> > > "Sê plural como o universo."
> > > Pensamentos - Fernando Pessoa
> > > ***************************************
> > >
> > >
> >
> >
> > --
> > James Stauffer http://www.geocities.com/stauffer_james/
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> mundo.
> Gratuito, em www.new7wonders.com
> * * *
> "Sê plural como o universo."
> Pensamentos - Fernando Pessoa
> ***************************************
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
In localhost works ok.
Well, to get this answer really fine, i will ask host admin to see
the server's console.
Whem the system debug is on, the msg is restricted only to the console ?
On 10/27/06, James Stauffer <st...@gmail.com> wrote:
>
> Then are you sure that log4j.xml is being found?
>
> On 10/26/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > OH, OK.
> > It is automatic, i do not call explicitly DOMConfigurator.
> > . it is in dir classes.
> > tks,
> >
> >
> > On 10/26/06, James Stauffer <st...@gmail.com> wrote:
> > >
> > > Automatic: you put log4j.xml in the classpath.
> > > Manual: You explicitly call DOMConfigurator
> > >
> > > Which do you do?
> > >
> > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > Hi, Jake,
> > > > Thanks,
> > > > It is a log4j.xml and it is in \WEB-INF and \classes also. it will
> be OK
> > > in
> > > > classes but, just in case.
> > > > automatic or manual? I d'not know what you are asking.
> > > > Adilson
> > > >
> > > >
> > > > On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> > > > >
> > > > >
> > > > > Where do you put your config file? And is the config file
> > > > > log4j.properties or
> > > > > log4j.xml? Do you use automatic configuration or manual
> > > configuration?
> > > > >
> > > > > Jake
> > > > >
> > > > > Quoting James Stauffer <st...@gmail.com>:
> > > > >
> > > > > > Can you turn on log4j debugging (set "log4j.debug" system
> property
> > > to
> > > > > > "true")? That might help determine the cause.
> > > > > >
> > > > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com>
> wrote:
> > > > > > > Hi,
> > > > > > > I and the fellows from the host admin are facing with a
> following
> > > > > > situation:
> > > > > > > myApp doesn't create a log file whem running in the host's
> tomcat
> > > > > server
> > > > > > > (virtual host), but is OK whem running in a tomcat localhost.
> > > > > > > I have tested the same address used on log4j.xml, creating a
> file
> > > in
> > > > > the
> > > > > > > directory (/home/.../domains/myApp/logs/ ) and was created
> fine.
> > > > > > > I have migrate to tomcat from jboss by the same reason, and in
> the
> > > > > jboss i
> > > > > > > have used the jboss soluction for RepositorySelector (
> > > > > > >
> http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > > > > without
> > > > > > > success.
> > > > > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of
> myApp
> > > and
> > > > > > > assumed that this approach in tomcat would provide a similar
> > > behavior
> > > > > to
> > > > > > > using Repository Selector.
> > > > > > > I have searched for threads in this mailing without success.
> > > > > > > I will appreciate any help.
> > > > > > > Thanks.
> > > > > > >
> > > > > > >
> > > > > > > Adilson Dias da Silva (BR) * * *
> > > > > > > "Sê plural como o universo."
> > > > > > > Pensamentos - Fernando Pessoa
> > > > > > > ***************************************
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > > > > > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas
> do
> > > > mundo.
> > > > Gratuito, em www.new7wonders.com
> > > > * * *
> > > > "Sê plural como o universo."
> > > > Pensamentos - Fernando Pessoa
> > > > ***************************************
> > > >
> > > >
> > >
> > >
> > > --
> > > James Stauffer http://www.geocities.com/stauffer_james/
> > > Are you good? Take the test at http://www.livingwaters.com/good/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> > >
> >
> >
> > --
> > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> > mundo.
> > Gratuito, em www.new7wonders.com
> > * * *
> > "Sê plural como o universo."
> > Pensamentos - Fernando Pessoa
> > ***************************************
> >
> >
>
>
> --
> James Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by James Stauffer <st...@gmail.com>.
Then are you sure that log4j.xml is being found?
On 10/26/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> OH, OK.
> It is automatic, i do not call explicitly DOMConfigurator.
> . it is in dir classes.
> tks,
>
>
> On 10/26/06, James Stauffer <st...@gmail.com> wrote:
> >
> > Automatic: you put log4j.xml in the classpath.
> > Manual: You explicitly call DOMConfigurator
> >
> > Which do you do?
> >
> > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > Hi, Jake,
> > > Thanks,
> > > It is a log4j.xml and it is in \WEB-INF and \classes also. it will be OK
> > in
> > > classes but, just in case.
> > > automatic or manual? I d'not know what you are asking.
> > > Adilson
> > >
> > >
> > > On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> > > >
> > > >
> > > > Where do you put your config file? And is the config file
> > > > log4j.properties or
> > > > log4j.xml? Do you use automatic configuration or manual
> > configuration?
> > > >
> > > > Jake
> > > >
> > > > Quoting James Stauffer <st...@gmail.com>:
> > > >
> > > > > Can you turn on log4j debugging (set "log4j.debug" system property
> > to
> > > > > "true")? That might help determine the cause.
> > > > >
> > > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > > > Hi,
> > > > > > I and the fellows from the host admin are facing with a following
> > > > > situation:
> > > > > > myApp doesn't create a log file whem running in the host's tomcat
> > > > server
> > > > > > (virtual host), but is OK whem running in a tomcat localhost.
> > > > > > I have tested the same address used on log4j.xml, creating a file
> > in
> > > > the
> > > > > > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > > > > > I have migrate to tomcat from jboss by the same reason, and in the
> > > > jboss i
> > > > > > have used the jboss soluction for RepositorySelector (
> > > > > > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > > > without
> > > > > > success.
> > > > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp
> > and
> > > > > > assumed that this approach in tomcat would provide a similar
> > behavior
> > > > to
> > > > > > using Repository Selector.
> > > > > > I have searched for threads in this mailing without success.
> > > > > > I will appreciate any help.
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > > > Adilson Dias da Silva (BR) * * *
> > > > > > "Sê plural como o universo."
> > > > > > Pensamentos - Fernando Pessoa
> > > > > > ***************************************
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> > > mundo.
> > > Gratuito, em www.new7wonders.com
> > > * * *
> > > "Sê plural como o universo."
> > > Pensamentos - Fernando Pessoa
> > > ***************************************
> > >
> > >
> >
> >
> > --
> > James Stauffer http://www.geocities.com/stauffer_james/
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> mundo.
> Gratuito, em www.new7wonders.com
> * * *
> "Sê plural como o universo."
> Pensamentos - Fernando Pessoa
> ***************************************
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
OH, OK.
It is automatic, i do not call explicitly DOMConfigurator.
. it is in dir classes.
tks,
On 10/26/06, James Stauffer <st...@gmail.com> wrote:
>
> Automatic: you put log4j.xml in the classpath.
> Manual: You explicitly call DOMConfigurator
>
> Which do you do?
>
> On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > Hi, Jake,
> > Thanks,
> > It is a log4j.xml and it is in \WEB-INF and \classes also. it will be OK
> in
> > classes but, just in case.
> > automatic or manual? I d'not know what you are asking.
> > Adilson
> >
> >
> > On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> > >
> > >
> > > Where do you put your config file? And is the config file
> > > log4j.properties or
> > > log4j.xml? Do you use automatic configuration or manual
> configuration?
> > >
> > > Jake
> > >
> > > Quoting James Stauffer <st...@gmail.com>:
> > >
> > > > Can you turn on log4j debugging (set "log4j.debug" system property
> to
> > > > "true")? That might help determine the cause.
> > > >
> > > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > > Hi,
> > > > > I and the fellows from the host admin are facing with a following
> > > > situation:
> > > > > myApp doesn't create a log file whem running in the host's tomcat
> > > server
> > > > > (virtual host), but is OK whem running in a tomcat localhost.
> > > > > I have tested the same address used on log4j.xml, creating a file
> in
> > > the
> > > > > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > > > > I have migrate to tomcat from jboss by the same reason, and in the
> > > jboss i
> > > > > have used the jboss soluction for RepositorySelector (
> > > > > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > > without
> > > > > success.
> > > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp
> and
> > > > > assumed that this approach in tomcat would provide a similar
> behavior
> > > to
> > > > > using Repository Selector.
> > > > > I have searched for threads in this mailing without success.
> > > > > I will appreciate any help.
> > > > > Thanks.
> > > > >
> > > > >
> > > > > Adilson Dias da Silva (BR) * * *
> > > > > "Sê plural como o universo."
> > > > > Pensamentos - Fernando Pessoa
> > > > > ***************************************
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > James Stauffer http://www.geocities.com/stauffer_james/
> > > > Are you good? Take the test at http://www.livingwaters.com/good/
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> > >
> >
> >
> > --
> > Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> > mundo.
> > Gratuito, em www.new7wonders.com
> > * * *
> > "Sê plural como o universo."
> > Pensamentos - Fernando Pessoa
> > ***************************************
> >
> >
>
>
> --
> James Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by James Stauffer <st...@gmail.com>.
Automatic: you put log4j.xml in the classpath.
Manual: You explicitly call DOMConfigurator
Which do you do?
On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> Hi, Jake,
> Thanks,
> It is a log4j.xml and it is in \WEB-INF and \classes also. it will be OK in
> classes but, just in case.
> automatic or manual? I d'not know what you are asking.
> Adilson
>
>
> On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
> >
> >
> > Where do you put your config file? And is the config file
> > log4j.properties or
> > log4j.xml? Do you use automatic configuration or manual configuration?
> >
> > Jake
> >
> > Quoting James Stauffer <st...@gmail.com>:
> >
> > > Can you turn on log4j debugging (set "log4j.debug" system property to
> > > "true")? That might help determine the cause.
> > >
> > > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > > Hi,
> > > > I and the fellows from the host admin are facing with a following
> > > situation:
> > > > myApp doesn't create a log file whem running in the host's tomcat
> > server
> > > > (virtual host), but is OK whem running in a tomcat localhost.
> > > > I have tested the same address used on log4j.xml, creating a file in
> > the
> > > > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > > > I have migrate to tomcat from jboss by the same reason, and in the
> > jboss i
> > > > have used the jboss soluction for RepositorySelector (
> > > > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> > without
> > > > success.
> > > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
> > > > assumed that this approach in tomcat would provide a similar behavior
> > to
> > > > using Repository Selector.
> > > > I have searched for threads in this mailing without success.
> > > > I will appreciate any help.
> > > > Thanks.
> > > >
> > > >
> > > > Adilson Dias da Silva (BR) * * *
> > > > "Sê plural como o universo."
> > > > Pensamentos - Fernando Pessoa
> > > > ***************************************
> > > >
> > > >
> > >
> > >
> > > --
> > > James Stauffer http://www.geocities.com/stauffer_james/
> > > Are you good? Take the test at http://www.livingwaters.com/good/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail: log4j-user-help@logging.apache.org
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
>
> --
> Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
> mundo.
> Gratuito, em www.new7wonders.com
> * * *
> "Sê plural como o universo."
> Pensamentos - Fernando Pessoa
> ***************************************
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Adilson Dias da Silva <ad...@gmail.com>.
Hi, Jake,
Thanks,
It is a log4j.xml and it is in \WEB-INF and \classes also. it will be OK in
classes but, just in case.
automatic or manual? I d'not know what you are asking.
Adilson
On 10/25/06, Jacob Kjome <ho...@visi.com> wrote:
>
>
> Where do you put your config file? And is the config file
> log4j.properties or
> log4j.xml? Do you use automatic configuration or manual configuration?
>
> Jake
>
> Quoting James Stauffer <st...@gmail.com>:
>
> > Can you turn on log4j debugging (set "log4j.debug" system property to
> > "true")? That might help determine the cause.
> >
> > On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > > Hi,
> > > I and the fellows from the host admin are facing with a following
> > situation:
> > > myApp doesn't create a log file whem running in the host's tomcat
> server
> > > (virtual host), but is OK whem running in a tomcat localhost.
> > > I have tested the same address used on log4j.xml, creating a file in
> the
> > > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > > I have migrate to tomcat from jboss by the same reason, and in the
> jboss i
> > > have used the jboss soluction for RepositorySelector (
> > > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector )
> without
> > > success.
> > > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
> > > assumed that this approach in tomcat would provide a similar behavior
> to
> > > using Repository Selector.
> > > I have searched for threads in this mailing without success.
> > > I will appreciate any help.
> > > Thanks.
> > >
> > >
> > > Adilson Dias da Silva (BR) * * *
> > > "Sê plural como o universo."
> > > Pensamentos - Fernando Pessoa
> > > ***************************************
> > >
> > >
> >
> >
> > --
> > James Stauffer http://www.geocities.com/stauffer_james/
> > Are you good? Take the test at http://www.livingwaters.com/good/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
--
Vote no monumento Cristo Redentor para que seja uma das 7 maravilhas do
mundo.
Gratuito, em www.new7wonders.com
* * *
"Sê plural como o universo."
Pensamentos - Fernando Pessoa
***************************************
Re: log4j doesn't log files when a app is running on tomcat host
Posted by Jacob Kjome <ho...@visi.com>.
Where do you put your config file? And is the config file log4j.properties or
log4j.xml? Do you use automatic configuration or manual configuration?
Jake
Quoting James Stauffer <st...@gmail.com>:
> Can you turn on log4j debugging (set "log4j.debug" system property to
> "true")? That might help determine the cause.
>
> On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> > Hi,
> > I and the fellows from the host admin are facing with a following
> situation:
> > myApp doesn't create a log file whem running in the host's tomcat server
> > (virtual host), but is OK whem running in a tomcat localhost.
> > I have tested the same address used on log4j.xml, creating a file in the
> > directory (/home/.../domains/myApp/logs/ ) and was created fine.
> > I have migrate to tomcat from jboss by the same reason, and in the jboss i
> > have used the jboss soluction for RepositorySelector (
> > http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector ) without
> > success.
> > I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
> > assumed that this approach in tomcat would provide a similar behavior to
> > using Repository Selector.
> > I have searched for threads in this mailing without success.
> > I will appreciate any help.
> > Thanks.
> >
> >
> > Adilson Dias da Silva (BR) * * *
> > "Sê plural como o universo."
> > Pensamentos - Fernando Pessoa
> > ***************************************
> >
> >
>
>
> --
> James Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j doesn't log files when a app is running on tomcat host
Posted by James Stauffer <st...@gmail.com>.
Can you turn on log4j debugging (set "log4j.debug" system property to
"true")? That might help determine the cause.
On 10/25/06, Adilson Dias da Silva <ad...@gmail.com> wrote:
> Hi,
> I and the fellows from the host admin are facing with a following situation:
> myApp doesn't create a log file whem running in the host's tomcat server
> (virtual host), but is OK whem running in a tomcat localhost.
> I have tested the same address used on log4j.xml, creating a file in the
> directory (/home/.../domains/myApp/logs/ ) and was created fine.
> I have migrate to tomcat from jboss by the same reason, and in the jboss i
> have used the jboss soluction for RepositorySelector (
> http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector ) without
> success.
> I have the log4j-1.2.13.jar in the WEB-INF/lib directory of myApp and
> assumed that this approach in tomcat would provide a similar behavior to
> using Repository Selector.
> I have searched for threads in this mailing without success.
> I will appreciate any help.
> Thanks.
>
>
> Adilson Dias da Silva (BR) * * *
> "Sê plural como o universo."
> Pensamentos - Fernando Pessoa
> ***************************************
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org