Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
; I saw this post on the Internet: >> http://www.jguru.com/faq/view.jsp?EID=302980 >> >> > Where do System.out and System.err go in Tomcat? >> > By default, they will go to the console where the tomcat is started. >> You have to modify the startup >> > sc

Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
ote: >> >>> Hello devs, >>> >>> I saw this post on the Internet: >>> http://www.jguru.com/faq/view.jsp?EID=302980 >>> >>> > Where do System.out and System.err go in Tomcat? >>> > By default, they will go to the console w

Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
:19 PM, "M. D." wrote: > Hello devs, > > I saw this post on the Internet: > http://www.jguru.com/faq/view.jsp?EID=302980 > > > Where do System.out and System.err go in Tomcat? > > By default, they will go to the console where the tomcat is started. You > h

Where do System.out and System.err go in Tomcat?

2014-10-10 Thread M. D.
Hello devs, I saw this post on the Internet: http://www.jguru.com/faq/view.jsp?EID=302980 > Where do System.out and System.err go in Tomcat? > By default, they will go to the console where the tomcat is started. You have > to modify the startup > scripts to redirect them to appro

RE: Capturing System.out on a Mac

2012-04-27 Thread Caldarale, Charles R
> From: Dola Woolfe [mailto:dolac...@yahoo.com] > Subject: Re: Capturing System.out on a Mac > I appreciate the point about logging, but what if I am using a > library that utilizes System.out? Then you really, really need to file a bug report with the maintainers of the library

Re: Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
Thank you and Christopher! I appreciate the point about logging, but what if I am using a library that utilizes System.out? Thanks again, Dola - Original Message - From: Derek Beauregard To: Tomcat Users List Cc: Sent: Friday, April 27, 2012 1:31 PM Subject: Re: Capturing

Re: Capturing System.out on a Mac

2012-04-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dola, On 4/27/12 12:19 PM, Dola Woolfe wrote: > We just switched from Windows to Mac. On Windows, when we started > tomcat in the command window, a new window would pop up that > contains all the output of System.out. But on a Mac, no n

Re: Capturing System.out on a Mac

2012-04-27 Thread Derek Beauregard
Catalina.out should have anything written to stdout/stderr. Be careful as this file is not rotated and will grow for ever. Any web apps should be using logging and not System.out. Also you could start tomcat with the 'run' command rather than the 'start' command to run it

Re: Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
They don't contain the output of System.out? Are you expecting them to?

Re: Capturing System.out on a Mac

2012-04-27 Thread Henrique Ordine
l the > output of System.out. But on a Mac, no new window shows up and we are > missing all the output. Is there a quick fix to this? > > Many thanks in advance, > > Dola > > > - > To unsubscribe, e-

Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
Hi, We just switched from Windows to Mac. On Windows, when we started tomcat in the command window, a new window would pop up that contains all the output of System.out.  But on a Mac, no new window shows up and we are missing all the output. Is there a quick fix to this? Many thanks in

RE: System.out is not going to catalina.out

2011-11-28 Thread Chris Moore
ng working through slf4j, Hibernate is persisting objects, and everything is good. Chris -Original Message- From: Chris Moore [mailto:chrismo...@surewest.net] Sent: Sunday, November 27, 2011 10:30 AM To: users@tomcat.apache.org Subject: System.out is not going to catalina.out I'

Re: System.out is not going to catalina.out

2011-11-27 Thread André Warnier
27;m asking for help with - I can't seem to get any kind of logging to work, including simply writing to System.out. All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it. I do see "deploying" and "undeploying&

Re: System.out is not going to catalina.out

2011-11-27 Thread Konstantin Kolinko
k, I get no errors or stack traces, but > the data never gets updated. > > > > That leads to the real question I'm asking for help with - I can't seem to > get any kind of logging to work, > > including simply writing to System.out.  All the documentation I can fin

RE: System.out is not going to catalina.out

2011-11-27 Thread Caldarale, Charles R
> From: Chris Moore [mailto:chrismo...@surewest.net] > Subject: System.out is not going to catalina.out > I can't seem to get any kind of logging to work, > including simply writing to System.out. You really shouldn't be using System.out for logging; you webapp sho

Re: System.out is not going to catalina.out

2011-11-27 Thread Mark Thomas
update the database. It seems to work, I get no errors or stack traces, but > the data never gets updated. > > > > That leads to the real question I'm asking for help with - I can't seem to > get any kind of logging to work, > > including simply writing to

System.out is not going to catalina.out

2011-11-27 Thread Chris Moore
o get any kind of logging to work, including simply writing to System.out. All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it. I do see "deploying" and "undeploying" messages in catalina.out, so I know I'

RE: System.out anf tomcat 6

2011-03-01 Thread Caldarale, Charles R
> From: jason johnson [mailto:jasonjohnson1...@yahoo.com] > Subject: System.out anf tomcat 6 > I am using tomcat 6.0.16 and windows xp. Time to upgrade - that's over three years old (and we won't say anything about your OS...). > Now that I am using tomcat 6, I can

System.out anf tomcat 6

2011-03-01 Thread jason johnson
I am using tomcat 6.0.16 and windows xp. So I have been looking on the web for hours trying to find how to enabled System.out in tomcat 6. I used to have tomcat 5.0.x When I used System.out.println("text"); the text would be written to a stdout.log file. Now that I am using t

Disable redirecting System.out and System.err

2010-01-07 Thread Michal Padera
Hi , I need to write in my webapp log4j to stderr but when starting Catalina, stderr is redirected to stdout (see Catalina.initStreams()). I am unable to set redirectStreams (attribute in Embedded.java) to false. Is there a configurtion parameter where I can turn this off or is this a bug in Tomca

How to add tomcat messages and System.out to log

2008-05-06 Thread Michal Singer
Hi. I am using tomcat 6 & log4j configuration. I can't see the tomcat source files log messages in the log. and also i can't see the System.out in the log. I tried using: swallowOutput="true" in the context file I also configured in the log4j.properties: log4j.logge

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
tomping on global config of logging and System.out. I assume it's possible for Tomcat to block apps from messing around like that, and it should. What a nightmare to figure out. This is so fragile and broken. It's like the old Windows 95 days where a misbehaving app can mes

RE: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Re: No logging (or System.out) when I activate virtual hosts > > Does anyone have any ideas on this? This whole thing is > basically not usable for real work if exceptions are silently > dropped, which is what is

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe <[EMAIL PROTECTED]> wrote: I also asked on a JBoss forum and they thought it's Tomcat. heh. :-) ... will set up test cases and trace the whole thing, You might want to install the same version of Tomcat standalone, and create a comparable virtual host configuration j

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
"When will you get the idea to take this to a JBoss list??? Logging in Tomcat works absolutely fine with virtual hosts in standalone mode, right out of the box." I also asked on a JBoss forum and they thought it's Tomcat. Right now I'm going through the JBoss deployer code, and will set up test

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe <[EMAIL PROTECTED]> wrote: Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? When will

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? Or at least there's a way to dump exceptions to Syste

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
"But unless you've changed your environment, you're not using the logging facilities of Tomcat - you're using those of JBoss. We always get the full stack traces under either. Are you sure you haven't disabled logging in whichever you're actually using?" I'm sure what's happening is there is a c

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
More progress: it looks like System.out and System.err are being captured by classes in org.apache.tomcat.util.log. I could probably recompile those classes to NOT do anything. Alternatively, if I could find out where in Tomcat those are being instantiated, that might be under configurable

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Re: No logging (or System.out) when I activate virtual hosts > > Is some system of "dump all exceptions to the console" > possible in Tomcat? But unless you've changed your environment, you're not usi

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I found a partial solution (requires Java 6): I wrote my own class: class MyLogger { public static void log(String message) { if(System.console() != null) System.console().printf("consoleLogger: %s\n", message); } } This has the unique advantage of working, unlike Syste

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
"What a curious thing to say. I'm running JULI in standalone Tomcat 5.5.20 with multiple hosts with all expected log files created and log entries made." It's what I'm observing and it's totally reproducible. For all my apps that are not on virtual hosts, logging works fine. For apps that are o

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Re: No logging (or System.out) when I activate virtual hosts > > I'm running Tomcat, embedded within JBoss. > > I think this relates to JULI, a terrible mistake that > happened around Tomcat 5.5.9. It is fragile

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I'm tracking down part of the problem. I think this relates to JULI, a terrible mistake that happened around Tomcat 5.5.9. It is fragile junk which results in no log entries whenever virtual hosting is used. I can't figure out how to get it to do anything more sophisticated than "silently dro

No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
Here's a very strange problem: I'm running Tomcat, embedded within JBoss. This is the latest version (5.5.20 I believe) of TC. When I run this application on my office computer here, which has no virt. hosts, console log messages show up as expected. When I then move it over to my production

Re: flushing system.out

2006-06-16 Thread Nishant Deshpande
I'm using Tomcat 5.0.28 and SuSe Linux 9.3 On 6/15/06, Mir Kasim Ali <[EMAIL PROTECTED]> wrote: Can u tell me which OS ure using and what version of Tomcat On 6/16/06, Nishant Deshpande <[EMAIL PROTECTED]> wrote: > > i'm printing stuff out to system.out in tomcat,

Re: flushing system.out

2006-06-16 Thread Glenn Holliday
t;[EMAIL PROTECTED]> 06/16/2006 08:45 AM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: flushing system.out System.out.println is a synchronized call, and will become a performance bottleneck on highly concurrent applications, the ideal is to use a l

Re: flushing system.out

2006-06-16 Thread Filip Hanik - Dev Lists
ch purpose. Tim Funk <[EMAIL PROTECTED]> 06/16/2006 07:14 AM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: flushing system.out I doubt you want to print to syste

Re: flushing system.out

2006-06-16 Thread Glenn Holliday
ch purpose. Tim Funk <[EMAIL PROTECTED]> 06/16/2006 07:14 AM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: flushing system.out I doubt you w

Re: flushing system.out

2006-06-16 Thread Tim Funk
I doubt you want to print to system.out in a servlet (or jsp). Odds are you want flushBuffer http://tomcat.apache.org/tomcat-5.0-doc/servletapi/javax/servlet/ServletResponseWrapper.html#flushBuffer() or flush http://tomcat.apache.org/tomcat-5.0-doc/jspapi/javax/servlet/jsp/JspWriter.html#flush

Re: flushing system.out

2006-06-15 Thread Mir Kasim Ali
Can u tell me which OS ure using and what version of Tomcat On 6/16/06, Nishant Deshpande <[EMAIL PROTECTED]> wrote: i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone

flushing system.out

2006-06-15 Thread Nishant Deshpande
i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone got solutions to this problem? i'm not sure if its a tomcat problem or some OS /

How to redirect localhost_access_log to System.out

2006-04-08 Thread Stevo Popovic
System.out, and in localhost_access_log too. Can someone tell me how to redirect log file, such as localhost_access_log to System.out. Thanks...

Re: system.out

2006-03-24 Thread Martin Gainty
http://logging.apache.org/log4j/docs/download.html - Original Message - From: "Gilbert, Antoine" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, March 24, 2006 2:51 PM Subject: system.out How to redirect system.out and system.err to a file to a sp

Re: system.out

2006-03-24 Thread Nic Daniau
tml On 24/03/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote: > > How to redirect system.out and system.err to a file to a specific > location and with a specific name ? > > >

system.out

2006-03-24 Thread Gilbert, Antoine
How to redirect system.out and system.err to a file to a specific location and with a specific name ?

swallowOutput and System.out in Tomcat 5.5

2006-02-22 Thread Randy Hoffman
Is it true that System.out is no longer swallowed by Tomcat 5.5 using swallowOutput="true"? I have seen mixed messages on this and definitely cannot get it to work. I am running Tomcat 5.5.15 on RHEL4 and have a 3rd party webapp that uses System.out for messages. I am running it