Re: System.out.println, Where art thou?
Sometimes it is threaputic to face one's stupidity... Anyway, it was pilot error... I use JBuilder (which has an embedded Tomcat) for my development and in versions prior to the latest (JB9 and before) the url pattern was http://localhost:8080/servercontext/servletname ..in JB10 this changed to ... http://localhost:8080/servletname .. I had gotten use to this pattern and my servlet context and name were very nearly identical.. so I had entered what amounted to http://serverhere/servercontext ..instead of getting a resource not found or somesuch... it loaded because Tomcat loaded http://serverhere/servercontext/index.jsp ...which in my application was NEVER loaded by itself and only should be loaded by the controller servlet after extensive setup and configuration.. The error was just enough legitimate looking that it did not flag what was really happening.. and I never clued in on what was really happening until I had gutted my controller to load a simple html form and instead the index.jsp still loaded... sign John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println, Where art thou?
I agree, it should be.. it is not.. I have not change ANY default settings that came out of the box.. This is why I'm so stumped.. I have tested this on two installs.. (one on NT4 and one on WinXP) both are failing... It works fine when run within JBuilder using 4.1.27.. ??? John... Jerry Ford wrote: System.out.println text should be going to the file catalina.out in tomcat's logs directory, if you haven't changed any of the default logging configurations. At least, that's where they go in my 4.1.27 setup. Jerry John B. Moore wrote: Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the ability to see stdout statments in the log files.. In addition my Log4j loging output failing to appear. (another issue, but maybe related..) what is most puzzling at this point is that basic System.out.printlin(some text here...); ..does not appear ANYWHERE!!! An obviously I need to resolve this issue first.. (as it may provide some hints as to what is happening to the configuration of Log4j..since I use basic out.println to debug the various configuration settings. ) I'm assuming/hopping I need to turn something on... (that was formerly default on in the previous version I was using) I added a SystemOutLogger to both the Host context and the specific webapp context.. nada.. (all that did was log stuff that was already showing up).. what is interesting is that when I use Tomcat IN JBuilder (version 4.1.27) all the logging shows up and all the expected log files show up.. Looking at the server.xml that is generated by JBuilder I can not see that it is setting anything special... obviously something is different. So.. anyone have any ideas as to how to surface the output of the basic System.out.println...??? Any clues as to what I can try next is appreciated.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println, Where art thou?
Correction it is 4.1.28 not 4.1.18... sorry.. John B. Moore wrote: Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the ability to see stdout statments in the log files.. In addition my Log4j loging output failing to appear. (another issue, but maybe related..) what is most puzzling at this point is that basic System.out.printlin(some text here...); ..does not appear ANYWHERE!!! An obviously I need to resolve this issue first.. (as it may provide some hints as to what is happening to the configuration of Log4j..since I use basic out.println to debug the various configuration settings. ) I'm assuming/hopping I need to turn something on... (that was formerly default on in the previous version I was using) I added a SystemOutLogger to both the Host context and the specific webapp context.. nada.. (all that did was log stuff that was already showing up).. what is interesting is that when I use Tomcat IN JBuilder (version 4.1.27) all the logging shows up and all the expected log files show up.. Looking at the server.xml that is generated by JBuilder I can not see that it is setting anything special... obviously something is different. So.. anyone have any ideas as to how to surface the output of the basic System.out.println...??? Any clues as to what I can try next is appreciated.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println, Where art thou?
Update: Well, when things get wierd it is best to go back to basics I created a very simple servlet with System.out.println statements and deployed it.. That works fine and the output shows up in the stdout.log. That means there is something in the servlet code that is mucking things up... For me this is good news.. at least I have a starting point... to find with it is that is blocking the output... John... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println, Where art thou?
/logs/catalina.out if you started with startup.xxx Filip - Original Message - From: John B. Moore [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 06, 2004 4:06 PM Subject: System.out.println, Where art thou? Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the ability to see stdout statments in the log files.. In addition my Log4j loging output failing to appear. (another issue, but maybe related..) what is most puzzling at this point is that basic System.out.printlin(some text here...); ..does not appear ANYWHERE!!! An obviously I need to resolve this issue first.. (as it may provide some hints as to what is happening to the configuration of Log4j..since I use basic out.println to debug the various configuration settings. ) I'm assuming/hopping I need to turn something on... (that was formerly default on in the previous version I was using) I added a SystemOutLogger to both the Host context and the specific webapp context.. nada.. (all that did was log stuff that was already showing up).. what is interesting is that when I use Tomcat IN JBuilder (version 4.1.27) all the logging shows up and all the expected log files show up.. Looking at the server.xml that is generated by JBuilder I can not see that it is setting anything special... obviously something is different. So.. anyone have any ideas as to how to surface the output of the basic System.out.println...??? Any clues as to what I can try next is appreciated.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println, Where art thou?
System.out.println text should be going to the file catalina.out in tomcat's logs directory, if you haven't changed any of the default logging configurations. At least, that's where they go in my 4.1.27 setup. Jerry John B. Moore wrote: Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to have lost the ability to see stdout statments in the log files.. In addition my Log4j loging output failing to appear. (another issue, but maybe related..) what is most puzzling at this point is that basic System.out.printlin(some text here...); ..does not appear ANYWHERE!!! An obviously I need to resolve this issue first.. (as it may provide some hints as to what is happening to the configuration of Log4j..since I use basic out.println to debug the various configuration settings. ) I'm assuming/hopping I need to turn something on... (that was formerly default on in the previous version I was using) I added a SystemOutLogger to both the Host context and the specific webapp context.. nada.. (all that did was log stuff that was already showing up).. what is interesting is that when I use Tomcat IN JBuilder (version 4.1.27) all the logging shows up and all the expected log files show up.. Looking at the server.xml that is generated by JBuilder I can not see that it is setting anything special... obviously something is different. So.. anyone have any ideas as to how to surface the output of the basic System.out.println...??? Any clues as to what I can try next is appreciated.. John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System.out.println()
Hi, I am not sure it's possible to understand the question but... What kind of error are you refering to ?? If you mean exception you could do exception.printStackTrace(System.out); To print out the stacktrace (the most usefull bit of an exception). But you can of course always print out the exception like this : System.out.println(Exception + e.toString()); or System.out.println(Exception + e.getMessage()); On the other hand I recommend that you to check out log4j or some other logging mechanism so you can direct your error logs into a file and control what goes out there. Hope it helps -reynir -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:05 To: 'Tomcat Users List' Subject: System.out.println() How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System.out.println()
Sorry about the confusion in the question.. my intention is to find out the variable values.. I think I got.. Thanks - srini. -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:31 AM To: Tomcat Users List Subject: RE: System.out.println() Hi, I am not sure it's possible to understand the question but... What kind of error are you refering to ?? If you mean exception you could do exception.printStackTrace(System.out); To print out the stacktrace (the most usefull bit of an exception). But you can of course always print out the exception like this : System.out.println(Exception + e.toString()); or System.out.println(Exception + e.getMessage()); On the other hand I recommend that you to check out log4j or some other logging mechanism so you can direct your error logs into a file and control what goes out there. Hope it helps -reynir -Original Message- From: Srinivasu Gandu [mailto:[EMAIL PROTECTED] Sent: 4. apríl 2003 16:05 To: 'Tomcat Users List' Subject: System.out.println() How do we use System.out.println(error + e) in the tomcat4.1.18 to see the error messages in the console.. Thanks -Srini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System.out.println?
logs/catalina.out -Original Message- From: Amitabh Shukla [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: System.out.println? Hi, I am using System.out.println on my servlet. I am using Apache Tomcat server. I want to know where does the System.out.println output goes? Does it write to some file- stderr or stdout? Please let me know, Thanks, Amit. __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println?
If you are running under windows, stdout - Original Message - From: Jackson, Stephen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:17 PM Subject: RE: System.out.println? logs/catalina.out -Original Message- From: Amitabh Shukla [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: System.out.println? Hi, I am using System.out.println on my servlet. I am using Apache Tomcat server. I want to know where does the System.out.println output goes? Does it write to some file- stderr or stdout? Please let me know, Thanks, Amit. __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: System.out.println not working on servlets initialized when Tomcat starts
Hi Travis Can you see them in $CATALINA_HOME/logs/catalina.out ??? That's how I debug my stuff -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System.out.println not working on servlets initialized when Tomcat starts
Thanks for the help. in response to Joel, I'm using Tomcat 4.1.12 - sorry forgot to mention that. It looks like any servlets initialized at startup ARE printing to System.out.println catalina.log (now that I know that, I'm ok). However, its still strange, because any System.out.println in servlets not initialized at startup, or any .class files, are printing directly to my DOS screen. I'd kind of like to have ALL System.out.println's going to my screen, so if anyone knows offhand how to configure that, that would be cool, otherwise, I'll consider my question answered :) -Original Message- From: [EMAIL PROTECTED] [mailto:arthur;westnet.com]On Behalf Of [EMAIL PROTECTED] Sent: Friday, November 15, 2002 12:09 AM To: Tomcat Users List Subject: Re: System.out.println not working on servlets initialized when Tomcat starts Hi Travis Can you see them in $CATALINA_HOME/logs/catalina.out ??? That's how I debug my stuff -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System.out.println not working on servlets initialized when Tomcat starts
Oops, just saw this. Same version I'm using, so at least I know its not me :) -Original Message- From: josh [mailto:the.josh;gmx.net] Sent: Friday, November 15, 2002 4:14 PM To: Tomcat Users List Subject: AW: System.out.println not working on servlets initialized when Tomcat starts I have almost the same problem in Tomcat 4.1.12 - in my case tomcat just doesn't print out the System.out.prinln in the servlet init() methode, the System.out.prinln in the service methode works. In Tomcat 4.0.4 it worked without problem. I think it has something to do with the new loggin/debug parameter, but i couldn't find a setting that enables System.out.prinln for the init() methode until now. -Ursprüngliche Nachricht- Von: Travis Shook [mailto:travis.shook;verizon.net] Gesendet: Freitag, 15. November 2002 22:03 An: [EMAIL PROTECTED] Betreff: System.out.println not working on servlets initialized when Tomcat starts Hi, For some reason, for any servlets that are initialized via the web.xml (load-on-startup), Tomcat is not printing out to my DOS screen any of my error messages or System.out.prinln in the code, although these are printing out fine for any other Servlets or JavaBeans, etc. Is there a setting in Tomcat that can change this? Or a bug? Or am I the bug? :) Thanks for any help, Travis Like jazz? http://www.travisshook.com/ http://www.veronicanunn.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: System.out.println
Subject: Re: System.out.println From: Simon [EMAIL PROTECTED] === The System.out.println should normal goes to catalina.out under tomcat/logs Simon. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: System.out.println
Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. In the JAva Console -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: System.out.println
Check out on the tomcat window. -Original Message- From: Javier Alonso [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 4:23 PM To: Tomcat Users List Subject: Re: System.out.println Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. In the JAva Console -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: System.out.println
System.out statements also get written to: /path/to/tomcat/logs/catalina.out --- krithikav [EMAIL PROTECTED] wrote: Thanks, I am seeing the output now. Regards, Krithika -Original Message- From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 12:51 PM To: [EMAIL PROTECTED] Subject: Re: System.out.println You can see it in the console or window where your tomcat is running. *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** [EMAIL PROTECTED] 02/15/02 07:04 Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. Regards, Krithika -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Got something to say? Say it better with Yahoo! Video Mail http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: System.out.println
You can see it in the console or window where your tomcat is running. *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** [EMAIL PROTECTED] 02/15/02 07:04 Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. Regards, Krithika -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: System.out.println
Hi Pedro, I see only the following in the consol and nothing more.. Starting service Tomcat-Standalone Apache Tomcat/4.0 Starting service Tomcat-Apache Apache Tomcat/4.0 Is there any problem in my installation? Regards, Krithika -Original Message- From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 12:51 PM To: [EMAIL PROTECTED] Subject: Re: System.out.println You can see it in the console or window where your tomcat is running. *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** [EMAIL PROTECTED] 02/15/02 07:04 Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. Regards, Krithika -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: System.out.println
Thanks, I am seeing the output now. Regards, Krithika -Original Message- From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 12:51 PM To: [EMAIL PROTECTED] Subject: Re: System.out.println You can see it in the console or window where your tomcat is running. *** Pedro Gaspar PT Prime DMK / GSV Tel: +351 21 500 41 43 Fax: +351 21 500 45 85 Email: [EMAIL PROTECTED] *** [EMAIL PROTECTED] 02/15/02 07:04 Hi, Where do I see the output from System.out.println given in a java class placed under WEB-INF\classes? I am new to Tomcat and developing a sample application. Regards, Krithika -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]