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 System.out

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
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: 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

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 happening. Surely someone has

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

2007-01-16 Thread Vacuum Joe
You might want to install the same version of Tomcat standalone, and create a comparable virtual host configuration just to see how logging works normally. Then transfer that test case to your JBoss environment and see what happens. And it turns out that one of the webapps was stomping on global

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

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 junk which results in no log

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 on

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 System.out. It

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 using the logging facilities of Tomcat - you're

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