head	1.18;
access;
symbols;
locks
	nobody:1.18; strict;
comment	@# @;


1.18
date	99.08.23.19.43.20;	author nobody;	state Exp;
branches;
next	1.17;

1.17
date	99.08.23.19.42.35;	author nobody;	state Exp;
branches;
next	1.16;

1.16
date	99.08.09.00.03.59;	author nobody;	state Exp;
branches;
next	1.15;

1.15
date	99.08.08.21.37.50;	author nobody;	state Exp;
branches;
next	1.14;

1.14
date	99.07.31.02.03.08;	author nobody;	state Exp;
branches;
next	1.13;

1.13
date	99.04.21.18.36.20;	author nobody;	state Exp;
branches;
next	1.12;

1.12
date	99.04.21.18.36.13;	author nobody;	state Exp;
branches;
next	1.11;

1.11
date	99.04.16.23.03.48;	author nobody;	state Exp;
branches;
next	1.10;

1.10
date	99.04.07.18.33.53;	author nobody;	state Exp;
branches;
next	1.9;

1.9
date	99.04.01.18.58.03;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.04.01.17.59.05;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.03.23.20.11.21;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.03.10.02.46.18;	author httpd;	state Exp;
branches;
next	1.5;

1.5
date	99.03.10.00.19.50;	author httpd;	state Exp;
branches;
next	1.4;

1.4
date	99.03.09.18.34.56;	author httpd;	state Exp;
branches;
next	1.3;

1.3
date	99.03.09.18.34.20;	author httpd;	state Exp;
branches;
next	1.2;

1.2
date	99.03.09.18.33.17;	author httpd;	state Exp;
branches;
next	1.1;

1.1
date	99.03.09.18.33.09;	author httpd;	state Exp;
branches;
next	;


desc
@null
@


1.18
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 35
IDependOn-Set: 39
IDependOn-Set: 40
IDependOn-Set: 7
LastModifiedSecs: 935437399
Parent: 7
SequenceNumber: 15
Title: Where does System.out.print() go? or Logging from a servlet...
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921004440
Type: monospaced
Lines: 32
----------
From: Paul Shannon <pshannon@@u.washington.edu>
To: java-apache-users@@list.working-dogs.com
Subject: Re: An old problem am sure . . . . System.out
Date: Tue, Mar 9, 1999, 7:47 AM

    "due to the fact System.out.println(...) is dead."

For my installation, System.out and System.err are under the
control  of /bin/java.  So I start ApJ manually out of a bash
shell script (I don't know redirection tricks in the bourne shell...)
like this:

  #!/usr/local/bin/bash

  # set up the CLASSPATH and LD_LIBRARY_PATH....

  PROPS=/opt/jserv10b3/conf/jserv.properties
  LOG=/opt/jserv10b3/logs/jserv.log

  java -classpath $CLASSPATH org.apache.jserv.JServ $PROPS > $LOG 2>&1  &

     > $LOG says "write stdout to here"

and
  
    2>&1  says  "write stderr to the same place as stdout"

With this, both stdout and stderr go to the standard jserv log.
(I don't know how to find the results of log (), however.)

 - Paul
EndPart: 0
Part: 1
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921025140
Type: monospaced
Lines: 5
System.out.println() goes to the console that started up the JVM. 
So, if the httpd process starts the JVM (ie: Apache JServ in automatic mode), 
then the System.out goes to the console of the user that started the httpd 
(ie: root). If you start the JVM (and Apache JServ process on the command 
line, then it goes to that user who started the JVM process.
EndPart: 1
Part: 2
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 923509980
Type: monospaced
Lines: 20
----------
From: Pierpaolo Fumagalli <p_fumagalli@@fumagalli.org>
To: Java Apache Users <java-apache-users@@list.working-dogs.com>
Subject: Re: Repost : where is the Standard output file???
Date: Wed, Apr 7, 1999, 10:58 AM


Sven Duzont wrote:
> 
> Does anybody know how to access the Standard Output console on windows NT
> using Apache Jserv ???
> I have already posted this question last week but i found no answer!!!
> Thanks in advance.
> 
There's no way to access to the console while JServ or Apache is running
as a service.
You can start it manually from the MS-Dos prompt, and then the console
ends up in the MS-Dos prompt window....

        Pier
EndPart: 2
Part: 3
Author-Set: johnston.p@@worldnet.att.net
HideAttributions: 1
LastModifiedSecs: 934157038
Type: html
Lines: 18
I was having trouble finding System.out on an NT box.  Essentially, the problem for me I didn't realize that JServ has to be started in
<I>manual</I> mode.  Do this as follows (running Apache 1.3.6 at \apache\ and ApacheJServ1.0 at \apache\jserv):
<OL>
<LI>read Ari's excellent article: <A HREF="http://www.magiccookie.com/computers/apache-jserv/">http://www.magiccookie.com/computers/apache-jserv/</A>.  Search for 'Running Apache JServ'.
<LI>change the <B>ApJServManual</B> directive from <I>off</I> to <I>on</I>.  This is located in the <B>\apache\jserv\mod_jserv.conf</B> file.
<LI>invoke <B>JServ</B> as you would any other java program.  I made a cmd script to simplify this called 'jserv.cmd', which I placed under \apache\jserv for easy reference.
As you can see fom the following, the 1.2 interpreter is invoked with an explicit classpath to rt.jar and the ApacheJServ.jar.  The class Jserv is executed with the jserv.properties file as the sole argument.
<P>
<CODE>
contents of <B>\apache\jserv\jserv.cmd</B>:<BR>
\java\jdk1.2\bin\java -classpath /java/jdk1.2/jre/lib/rt.jar;/apache/jserv/ApacheJServ.jar org.apache.jserv.JServ \apache\jserv\conf\jserv.properties
</CODE>
<P>
<LI>At this point you're ready to rumble.  Remember, you have to start both the Apache webserver and jserv now (thus the 'manual').
Open a shell, execute the \apache\jserv\jserv.cmd (you can typically leave the .cmd off), and you should be set (at least I was).
</OL>
Buena suerte,
Paul
EndPart: 3
Part: 4
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 935437354
Type: monospaced
Lines: 28
> Whilst developing servlets my development 
          > team often put System.err.println() statements in the servlet code. 
          > Unfortunately, these error strings always get printed to main apache
          > error log and not the virtual host or servlet zone's error log. Has anyone
          > encountered this problem before and found a solution to isolate the errorlog output. 

          have them use 

          log("error string); 

          or
          getServletContext.log(e, "an error ");


          or
          use the following and write the error stack trace back to the browser or to the log.

                  /* PrintStackTraceAsString from com.oreilly.servletServletUtils from 
                          Java Servlet Programming, by Jason Hunter and William Crawford, O'Reilly, 1998 
                  */
                  public String getStackTraceAsString(Exception e){
                          ByteArrayOutputStream bytes = new ByteArrayOutputStream();
                          PrintWriter writer = new PrintWriter(bytes, true);
                          e.printStackTrace(writer);
                          return bytes.toString();
                  }

          brettATknightsofthenetDOTcom
EndPart: 4
@


1.17
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 935437354
d9 2
a10 2
SequenceNumber: 14
Title: Where does System.out.print() go?
@


1.16
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 934157038
d9 1
a9 1
SequenceNumber: 13
d114 35
@


1.15
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 934148269
d9 1
a9 1
SequenceNumber: 12
d89 25
@


1.14
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 933386588
d9 1
a9 1
SequenceNumber: 11
a88 12
Part: 3
Author-Set: dking@@opentable.com
LastModifiedSecs: 933386588
Type: monospaced
Lines: 6
We have started trying to use JServ, but System.out.println() has 
disappeared. On Solaris, JavaWebServer and Weblogic put it to the screen,
but we do NOT get anything to the telnet window from which we start
Apache/Jserv (JServ started automatically as a DSO by Apache, Raven
SSL binary distribution). Console is far away at the colocation. Advice
would be dearly appreciated. 
EndPart: 3
@


1.13
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 924719780
d9 1
a9 1
SequenceNumber: 10
d89 12
@


1.12
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 924719772
d9 1
a9 1
SequenceNumber: 9
a88 10
Part: 3
Author-Set: anonymous
HideAttributions: 1
Type: directory
Lines: 4
Subcategories:


Answers in this category:
EndPart: 3
@


1.11
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 923510033
d9 1
a9 1
SequenceNumber: 8
d92 1
a92 2
LastModifiedSecs: 922989540
Type: 
a98 10
Part: 4
Author-Set: anonymous
HideAttributions: 1
Type: directory
Lines: 4
Subcategories:


Answers in this category:
EndPart: 4
@


1.10
log
@null
@
text
@a63 1
DateOfPart: 1999-Apr-07 11:33am
d65 1
@


1.9
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 922993082
d9 1
a9 1
SequenceNumber: 7
d63 27
d99 2
a100 2
EndPart: 2
Part: 3
d109 1
a109 1
EndPart: 3
@


1.8
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 922989545
d9 1
a9 1
SequenceNumber: 6
a63 1
DateOfPart: 1999-Apr-01  9:59am
d65 2
d73 10
@


1.7
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 922219881
d9 1
a9 1
SequenceNumber: 5
d64 1
a65 1
Type: directory
@


1.6
log
@null
@
text
@d3 1
a3 1
IDependOn-Set: 36
d5 1
d7 1
a7 1
LastModifiedSecs: 921025190
d9 1
a9 1
SequenceNumber: 4
d62 10
@


1.5
log
@null
@
text
@a50 1
DateOfPart: 1999-Mar-09  4:19pm
d52 1
@


1.4
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 921004496
d8 1
a8 1
SequenceNumber: 3
a11 1
DateOfPart: 1999-Mar-09 10:34am
d13 1
d49 12
@


1.3
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 921004460
d8 1
a8 1
SequenceNumber: 2
d10 39
@


1.2
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 921004397
d8 2
a9 2
SequenceNumber: 1
Title: New Item
@


1.1
log
@null
@
text
@d3 1
d6 1
a6 1
LastModifiedSecs: 921004389
d8 1
a8 1
SequenceNumber: 0
@
