Re: Console Output Not Going Anywhere

2009-08-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Allen,

On 8/9/2009 10:25 PM, Allen Williams wrote:
 I looked, and somewhere along the line, I made my Context tag this:
 
 Context path= docBase=   swallowOutput=true debug=5
 reloadable=true
 antiResourceLocking=false privileged=false
 
 As I'm sure you gurus know, the debug= attribute is not a documented
 attribute for the Context tag (I saw it somewhere, and put it in). 
 Tomcat never did complain, but I removed it, making the Context tag this:
 
 Context path= docBase=   swallowOutput=true reloadable=true
 antiResourceLocking=false privileged=false
 
 And now everything works.  Not sure what happened.  I did not start out
 with that in the context tag.  I'm wondering if maybe I had an OS glitch?

In any case, you should not be setting path= and docBase=. Neither
attribute is legal in a META-INF/context.xml file.

The 'docBase' attribute is legal if you have your XML file in
conf/[enginename]/[hostname]/webappname.xml, but that does not appear to
be the case, here.

Both attributes are legal if your Context is defined in
conf/server.xml, but you shouldn't be going this either. Context
elements in server.xml are tolerated for backward-compatibility and
recalcitrant server administrators.

Remove these attributes and make sure you are using META-INF/context.xml
or conf/[enginename]/[hostname]/appname.xml for your Context enclosure.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqANVwACgkQ9CaO5/Lv0PBVRgCgwEzY1oGYmKBtXb0GR983OpQK
Ix4An3fYC+qxfb94B5fZuEWCWtuxuFCT
=GVEC
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-09 Thread Filip Hanik - Dev Lists

That makes sense, Tomcat 6 doesn't use commons logging by default

problem explained.
if you want tomcat to use commons logging, you could build the extras 
package


Filip

On 08/08/2009 07:34 PM, Martin Gainty wrote:

getLogger() is a method from
org.apache.commons.logging.impl.Log4JLoggerhttp://commons.apache.org/logging/commons-logging-1.0.3/docs/api/org/apache/commons/logging/impl/Log4JLogger.html

Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




   

Date: Sat, 8 Aug 2009 18:19:48 -0600
From: devli...@hanik.com
To: users@tomcat.apache.org
Subject: Re: Console Output Not Going Anywhere

what class is Logger.getLogger(), doesn't look like a tomcat class,
so, no, it wont show up in the tomcat configured logs.
Also, System.out/err only show up in the logs if you have swallowOutput
set AND it happens during a request.
ServletContextListener don't happen during servlet requests

Filip

On 08/08/2009 05:53 PM, Allen Williams wrote:
 

Allen Williams wrote:

I've fixed the exceptions that were being thrown and still have this,
despite having this in my code:
===
public class AppInitializer implements ServletContextListener
{
public void contextInitialized(ServletContextEvent e)
{
log2.log(Level.FINEST, \n In contextInitialized
**\n);
System.out.println(\n In contextInitialized
**\n);
System.out.flush();
System.err.println(\n In contextInitialized
**\n);
System.err.flush();

snip

private static Logger log2= Logger.getLogger(3info-dev.org.apache);
===

I can't get anything to display in any of the log files.  Here is my
logging.properties:

===
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Logging levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
or ALL

handlers = 1catalina.org.apache.juli.FileHandler,
2localhost.org.apache.juli.FileHandler,
3info-dev.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler
.level=WARNING


# Handler specific properties.
# Describes specific configuration info for Handlers.


1catalina.org.apache.juli.FileHandler.level = WARNING
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = WARNING
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3info-dev.org.apache.juli.FileHandler.level = ALL
3info-dev.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3info-dev.org.apache.juli.FileHandler.prefix = info-dev.

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter


# Facility specific properties.
# Provides extra control

Re: Console Output Not Going Anywhere

2009-08-09 Thread Allen Williams
It is the standard internal tomcat logging mechanism contained in the 
distribution of tomcat 6, based on java.util.logging.  I am not sure 
exactly what you're saying, but it does not seem to be consistent with 
the documentation here, which seems to indicate all this stuff is built-in:


http://tomcat.apache.org/tomcat-6.0-doc/logging.html

In the above documentation, I am using (or I should say, attempting to 
use;-) the logging mechanism as explained under the heading 
java.util.logging.


And I only just started trying tomcat's built-in logging.  I did have my 
on little logging subsystem using System.out and System.err (I know, I 
know, bad practice, but this app is originally several years old).  And, 
that still doesn't explain where my console goes.  If you can only log 
(or get console output) from servlets, how do you get debug information 
from the rest, i. e. not just the ContextListener, but also things like 
beans, etc?  I'm almost positive this was not the way tomcat5.5 worked, 
but I have an installation of 5.5 hosting the exact same webapp, so I'll 
check it and respond again in a few minutes.


Thanks a whole lot for taking a stab at this.

anw


Filip Hanik - Dev Lists wrote:

That makes sense, Tomcat 6 doesn't use commons logging by default

problem explained.
if you want tomcat to use commons logging, you could build the extras 
package


Filip

On 08/08/2009 07:34 PM, Martin Gainty wrote:

getLogger() is a method from
org.apache.commons.logging.impl.Log4JLoggerhttp://commons.apache.org/logging/commons-logging-1.0.3/docs/api/org/apache/commons/logging/impl/Log4JLogger.html 



Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
Diese Nachricht dient lediglich dem Austausch von Informationen und 
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den 
Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes 
pas le destinataire prévu, nous te demandons avec bonté que pour 
satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à 
l'information seulement et n'aura pas n'importe quel effet légalement 
obligatoire. Étant donné que les email peuvent facilement être sujets 
à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





  

Date: Sat, 8 Aug 2009 18:19:48 -0600
From: devli...@hanik.com
To: users@tomcat.apache.org
Subject: Re: Console Output Not Going Anywhere

what class is Logger.getLogger(), doesn't look like a tomcat class,
so, no, it wont show up in the tomcat configured logs.
Also, System.out/err only show up in the logs if you have swallowOutput
set AND it happens during a request.
ServletContextListener don't happen during servlet requests

Filip

On 08/08/2009 05:53 PM, Allen Williams wrote:


Allen Williams wrote:

I've fixed the exceptions that were being thrown and still have this,
despite having this in my code:
===
public class AppInitializer implements ServletContextListener
{
public void contextInitialized(ServletContextEvent e)
{
log2.log(Level.FINEST, \n In contextInitialized
**\n);
System.out.println(\n In contextInitialized
**\n);
System.out.flush();
System.err.println(\n In contextInitialized
**\n);
System.err.flush();

snip

private static Logger log2= Logger.getLogger(3info-dev.org.apache);
===

I can't get anything to display in any of the log files.  Here is my
logging.properties:

===
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed 
with

# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, 
Version 2.0

# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Logging levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST
or ALL

handlers = 1catalina.org.apache.juli.FileHandler

Re: Console Output Not Going Anywhere

2009-08-09 Thread Allen Williams
I had added a few lines from the deployed version trying to get it to 
work, but, on my tomcat5.5 system, this original code:


public class AppInitializer implements ServletContextListener
   {
   public void contextInitialized(ServletContextEvent e)
   {
   log.write(AppInitializer::ContextInitialized entrance);

   ServletContext sc= e.getServletContext();
   log.write(AppInitializer::ContextInitializer: context name=' + 
sc.getServletContextName() + ');
   // log.write(AppInitializer::ContextInitializer: context 
path=' + sc.getContextPath() + ');


   // Order is important!!  Need the database
   initDB(sc);
   initAppInfo(sc);
   initXRef(sc);

   log.write(AppInitializer::Seems to have run 
OK\n***\n);

   }


using a log.write class/method with this in it:

   public void write(String msg)   // Need to do more with this later
   {   // (e. g., timestamp, logging 
levels, etc.)

   if(msg == null || msg.length() == 0)
   {
   System.err.println(null);
   return;
   }
   if(msg.substring(0, 1).equals(\n) || (msg.length()  5  
msg.substring(0, 4).equals()) || !AddTs)

   System.err.println(msg);
   else
   System.err.println(getTimestamp() + :  + msg);
   System.err.flush();
   }

(Not that, except for deciding whether or not to time stamp the entry, 
it is just using System.err.println to output the message)

produces this in the log:

catalina_2009-07-18.log:AppInitializer::ContextInitialized entrance
ccatalina_2009-07-18.log:Jul 18 13:43:05: 
AppInitializer::ContextInitializer: context name='infoisland'
catalina_2009-07-18.log:Jul 18 13:43:06: AppInitializer::Seems to have 
run OK


Filip Hanik - Dev Lists wrote:

That makes sense, Tomcat 6 doesn't use commons logging by default

problem explained.
if you want tomcat to use commons logging, you could build the extras 
package


Filip

On 08/08/2009 07:34 PM, Martin Gainty wrote:

getLogger() is a method from
org.apache.commons.logging.impl.Log4JLoggerhttp://commons.apache.org/logging/commons-logging-1.0.3/docs/api/org/apache/commons/logging/impl/Log4JLogger.html 



Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene 
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede 
unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. 
Diese Nachricht dient lediglich dem Austausch von Informationen und 
entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten 
Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den 
Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes 
pas le destinataire prévu, nous te demandons avec bonté que pour 
satisfaire informez l'expéditeur. N'importe quelle diffusion non 
autorisée ou la copie de ceci est interdite. Ce message sert à 
l'information seulement et n'aura pas n'importe quel effet légalement 
obligatoire. Étant donné que les email peuvent facilement être sujets 
à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





  

Date: Sat, 8 Aug 2009 18:19:48 -0600
From: devli...@hanik.com
To: users@tomcat.apache.org
Subject: Re: Console Output Not Going Anywhere

what class is Logger.getLogger(), doesn't look like a tomcat class,
so, no, it wont show up in the tomcat configured logs.
Also, System.out/err only show up in the logs if you have swallowOutput
set AND it happens during a request.
ServletContextListener don't happen during servlet requests

Filip

On 08/08/2009 05:53 PM, Allen Williams wrote:


Allen Williams wrote:

I've fixed the exceptions that were being thrown and still have this,
despite having this in my code:
===
public class AppInitializer implements ServletContextListener
{
public void contextInitialized(ServletContextEvent e)
{
log2.log(Level.FINEST, \n In contextInitialized
**\n);
System.out.println(\n In contextInitialized
**\n);
System.out.flush();
System.err.println(\n In contextInitialized
**\n);
System.err.flush();

snip

private static Logger log2= Logger.getLogger(3info-dev.org.apache);
===

I can't get anything to display in any of the log files.  Here is my
logging.properties:

===
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed 
with

# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, 
Version 2.0

# (the License); you may

RE: Console Output Not Going Anywhere

2009-08-09 Thread Caldarale, Charles R
 From: Allen Williams [mailto:anw-d...@infoisland.net]
 Subject: Re: Console Output Not Going Anywhere
 
 It is the standard internal tomcat logging mechanism contained in the
 distribution of tomcat 6, based on java.util.logging.

1) What platform (OS) are you running on?

2) Are you using a Tomcat downloaded from tomcat.apache.org, or some 3rd-party 
repackaged version?

3) How are you starting Tomcat?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-09 Thread Allen Williams
/policy.d/ \
$POLICY_CACHE
   echo$POLICY_CACHE
   cat $CATALINA_BASE/conf/policy.d/*.policy \
$POLICY_CACHE

   # Remove / recreate JVM_TMP directory
   rm -rf $JVM_TMP
   mkdir $JVM_TMP || {
   log_failure_msg could not create JVM temporary directory
   exit 1
   }
   chown $TOMCAT6_USER $JVM_TMP
   cd $JVM_TMP

#$DAEMON -user $TOMCAT6_USER -cp $JSVC_CLASSPATH \
#-outfile SYSLOG -errfile SYSLOG \
#-pidfile $CATALINA_PID $JAVA_OPTS $BOOTSTRAP_CLASS

   $DAEMON -user $TOMCAT6_USER -cp $JSVC_CLASSPATH \
   -outfile /var/log/tomcat6/stdout.log -errfile 
/var/log/tomcat6/stderr.log \

   -pidfile $CATALINA_PID $JAVA_OPTS $BOOTSTRAP_CLASS

   sleep 5
   if start-stop-daemon --test --start --pidfile $CATALINA_PID \
   --user $TOMCAT6_USER --startas $JAVA_HOME/bin/java \
   /dev/null; then
   log_end_msg 1
   else
   log_end_msg 0
   fi
   else
   log_progress_msg (already running)
   log_end_msg 0
   fi
   ;;
 stop)
   log_daemon_msg Stopping $DESC $NAME
   if start-stop-daemon --test --start --pidfile $CATALINA_PID \
   --user $TOMCAT6_USER --startas $JAVA_HOME/bin/java \
   /dev/null; then
   log_progress_msg (not running)
   else
   $DAEMON -cp $JSVC_CLASSPATH -pidfile $CATALINA_PID \
-stop $BOOTSTRAP_CLASS
   fi
   rm -rf $JVM_TMP
   log_end_msg 0
   ;;
  status)
   if start-stop-daemon --test --start --pidfile $CATALINA_PID \
   --user $TOMCAT6_USER --startas $JAVA_HOME/bin/java \
   /dev/null; then

   if [ -f $CATALINA_PID ]; then
   log_success_msg $DESC is not running, but pid file exists.
   exit 1
   else
   log_success_msg $DESC is not running.
   exit 3
   fi
   else
   log_success_msg $DESC is running with pid `cat $CATALINA_PID`
   fi
   ;;
 restart|force-reload)
   if start-stop-daemon --test --stop --pidfile $CATALINA_PID \
   --user $TOMCAT6_USER --startas $JAVA_HOME/bin/java \
   /dev/null; then
   $0 stop
   sleep 1
   fi
   $0 start
   ;;
 try-restart)
   if start-stop-daemon --test --start --pidfile $CATALINA_PID \
   --user $TOMCAT6_USER --startas $JAVA_HOME/bin/java \
   /dev/null; then
   $0 start
   fi
   ;;
 *)
   log_success_msg Usage: $0 
{start|stop|restart|try-restart|force-reload|status}

   exit 1
   ;;
esac

exit 0


Caldarale, Charles R wrote:

From: Allen Williams [mailto:anw-d...@infoisland.net]
Subject: Re: Console Output Not Going Anywhere

It is the standard internal tomcat logging mechanism contained in the
distribution of tomcat 6, based on java.util.logging.



1) What platform (OS) are you running on?

2) Are you using a Tomcat downloaded from tomcat.apache.org, or some 3rd-party 
repackaged version?

3) How are you starting Tomcat?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Console Output Not Going Anywhere

2009-08-09 Thread Caldarale, Charles R
 From: Allen Williams [mailto:anw-d...@infoisland.net]
 Subject: Re: Console Output Not Going Anywhere
 
 Debian 2.6.26, tomcat from the Debian package (apt-get, etc.), starting
 it with the init.d script.

Just for grins, try downloading the 6.0.20 tarball from tomcat.apache.org, 
install that along with your webapps, and see if your print and logging 
statements appear.  Use the downloaded bin/startup.sh and bin/shutdown.sh 
scripts to start/stop Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-09 Thread Allen Williams
That sounds like it might be a bit time consuming.  I don't mind trying 
it, but I'm going to be traveling next week, so I'll have to do it when 
I return.


Caldarale, Charles R wrote:

From: Allen Williams [mailto:anw-d...@infoisland.net]
Subject: Re: Console Output Not Going Anywhere

Debian 2.6.26, tomcat from the Debian package (apt-get, etc.), starting
it with the init.d script.



Just for grins, try downloading the 6.0.20 tarball from tomcat.apache.org, 
install that along with your webapps, and see if your print and logging 
statements appear.  Use the downloaded bin/startup.sh and bin/shutdown.sh 
scripts to start/stop Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-09 Thread Ken Bowen

It's really quite quick:
-- Download the tarball from tomcat.apache.org;
-- Untar the ball in some convenient location (you don't need to touch  
your existing setup).

-- Copy your war files from your existing webapps to the new webapps
-- Start the newly installed tomcat with bin/startup.sh
-- Look in the logs

On Aug 9, 2009, at 8:17 PM, Allen Williams wrote:

That sounds like it might be a bit time consuming.  I don't mind  
trying it, but I'm going to be traveling next week, so I'll have to  
do it when I return.


Caldarale, Charles R wrote:

From: Allen Williams [mailto:anw-d...@infoisland.net]
Subject: Re: Console Output Not Going Anywhere

Debian 2.6.26, tomcat from the Debian package (apt-get, etc.),  
starting

it with the init.d script.



Just for grins, try downloading the 6.0.20 tarball from  
tomcat.apache.org, install that along with your webapps, and see if  
your print and logging statements appear.  Use the downloaded bin/ 
startup.sh and bin/shutdown.sh scripts to start/stop Tomcat.


- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY MATERIAL and is thus for use only by the intended  
recipient. If you received this in error, please contact the sender  
and delete the e-mail and its attachments from all computers.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-09 Thread Allen Williams
Well, I'm not too sure what I did, but now I'm getting the 
System.err.println messages in the aforementioned stderr.log.  After I 
pointed (in the init.d script) command line arguments (outfile=... and 
errfile=...) I started getting messages in this file, but none of mine.  
I looked, and somewhere along the line, I made my Context tag this:


Context path= docBase=   swallowOutput=true debug=5
reloadable=true
antiResourceLocking=false privileged=false

As I'm sure you gurus know, the debug= attribute is not a documented 
attribute for the Context tag (I saw it somewhere, and put it in).  
Tomcat never did complain, but I removed it, making the Context tag this:


Context path= docBase=   swallowOutput=true reloadable=true
antiResourceLocking=false privileged=false

And now everything works.  Not sure what happened.  I did not start out 
with that in the context tag.  I'm wondering if maybe I had an OS glitch?


Thanks for all the help!!
Allen Williams wrote:
That sounds like it might be a bit time consuming.  I don't mind 
trying it, but I'm going to be traveling next week, so I'll have to do 
it when I return.


Caldarale, Charles R wrote:

From: Allen Williams [mailto:anw-d...@infoisland.net]
Subject: Re: Console Output Not Going Anywhere

Debian 2.6.26, tomcat from the Debian package (apt-get, etc.), starting
it with the init.d script.



Just for grins, try downloading the 6.0.20 tarball from 
tomcat.apache.org, install that along with your webapps, and see if 
your print and logging statements appear.  Use the downloaded 
bin/startup.sh and bin/shutdown.sh scripts to start/stop Tomcat.


 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
PROPRIETARY MATERIAL and is thus for use only by the intended 
recipient. If you received this in error, please contact the sender 
and delete the e-mail and its attachments from all computers.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


  



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-08 Thread Allen Williams
Sorry, I should have mentioned that.  Yes, I've tried it both ways, 
multiple times.  BTW, is that something new in Tomcat6?  I've never seen 
it before now.


Filip Hanik - Dev Lists wrote:

did you set

swallowOutput=true in conf/context.xml?

Filip

On 08/07/2009 07:01 PM, Allen Williams wrote:
I'm trying to get Tomcat 6 up and working; didn't have this problem 
on 5.


The code:

System.err.println

does not print to the log files.  With this logging.properties:

org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].handlers 
= 3info-dev.org.apache.juli.FileHandler


I get some exceptions, etc. in the info-dev.log file.  With this:

org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= java.util.logging.ConsoleHandler


I get zero bytes.  In neither of the above cases to I get the output 
from several System.err.println's or System.out.println's.  Can 
someone tell me how to find out where my console is going, or how to 
redirect it?


TIA
anw

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output Not Going Anywhere

2009-08-08 Thread Allen Williams

Allen Williams wrote:

I've fixed the exceptions that were being thrown and still have this, 
despite having this in my code:

===
public class AppInitializer implements ServletContextListener
   {
   public void contextInitialized(ServletContextEvent e)
   {
   log2.log(Level.FINEST, \n In contextInitialized 
**\n);
   System.out.println(\n In contextInitialized 
**\n);

   System.out.flush();
   System.err.println(\n In contextInitialized 
**\n);

   System.err.flush();

snip

private static Logger log2= Logger.getLogger(3info-dev.org.apache);
===

I can't get anything to display in any of the log files.  Here is my 
logging.properties:


===
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Logging levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST or ALL

handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, 
3info-dev.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler


.handlers = 1catalina.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler

.level=WARNING


# Handler specific properties.
# Describes specific configuration info for Handlers.


1catalina.org.apache.juli.FileHandler.level = WARNING
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = WARNING
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3info-dev.org.apache.juli.FileHandler.level = ALL
3info-dev.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3info-dev.org.apache.juli.FileHandler.prefix = info-dev.

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter



# Facility specific properties.
# Provides extra control for each logger.


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 
2localhost.org.apache.juli.FileHandler


org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= 3info-dev.org.apache.juli.FileHandler
# 
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= java.util.logging.ConsoleHandler


utils.AppInitializer.level = ALL

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE
#org.apache.catalina.core.AprLifecycleListener.level=FINE
===

and here are the log files that are produced-
catalina.xxx.log

===
Aug 8, 2009 7:06:40 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on 
directory


===

info-dev.log:

=
Aug 8, 2009 7:06:41 PM org.apache.catalina.core.StandardContext 
listenerStart

FINE: Sending application start events
Aug 8, 2009 7:06:41 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
=

localhost.log:

==
null, i. e., nothing in log
==

ANY ideas why my console AND my log file are being sent to a black 
hole?  BTW, I have also set and unset swallowOutput=true multiple 
times in my Context 

Re: Console Output Not Going Anywhere

2009-08-08 Thread Filip Hanik - Dev Lists
what class is Logger.getLogger(), doesn't look like a tomcat class, 
so, no, it wont show up in the tomcat configured logs.
Also, System.out/err only show up in the logs if you have swallowOutput 
set AND it happens during a request.

ServletContextListener don't happen during servlet requests

Filip

On 08/08/2009 05:53 PM, Allen Williams wrote:

Allen Williams wrote:

I've fixed the exceptions that were being thrown and still have this, 
despite having this in my code:

===
public class AppInitializer implements ServletContextListener
   {
   public void contextInitialized(ServletContextEvent e)
   {
   log2.log(Level.FINEST, \n In contextInitialized 
**\n);
   System.out.println(\n In contextInitialized 
**\n);

   System.out.flush();
   System.err.println(\n In contextInitialized 
**\n);

   System.err.flush();

snip

private static Logger log2= Logger.getLogger(3info-dev.org.apache);
===

I can't get anything to display in any of the log files.  Here is my 
logging.properties:


===
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.

# See the License for the specific language governing permissions and
# limitations under the License.

# Logging levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST 
or ALL


handlers = 1catalina.org.apache.juli.FileHandler, 
2localhost.org.apache.juli.FileHandler, 
3info-dev.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler


.handlers = 1catalina.org.apache.juli.FileHandler, 
java.util.logging.ConsoleHandler

.level=WARNING


# Handler specific properties.
# Describes specific configuration info for Handlers.


1catalina.org.apache.juli.FileHandler.level = WARNING
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = WARNING
2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3info-dev.org.apache.juli.FileHandler.level = ALL
3info-dev.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
3info-dev.org.apache.juli.FileHandler.prefix = info-dev.

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = 
java.util.logging.SimpleFormatter



# Facility specific properties.
# Provides extra control for each logger.


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = 
INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers 
= 2localhost.org.apache.juli.FileHandler


org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= 3info-dev.org.apache.juli.FileHandler
# 
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= java.util.logging.ConsoleHandler


utils.AppInitializer.level = ALL

# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
#org.apache.catalina.startup.ContextConfig.level = FINE
#org.apache.catalina.startup.HostConfig.level = FINE
#org.apache.catalina.session.ManagerBase.level = FINE
#org.apache.catalina.core.AprLifecycleListener.level=FINE
===

and here are the log files that are produced-
catalina.xxx.log

===
Aug 8, 2009 7:06:40 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on 
directory


===

info-dev.log:

=
Aug 8, 2009 7:06:41 PM org.apache.catalina.core.StandardContext 
listenerStart

FINE: Sending application start events
Aug 8, 2009 7:06:41 PM org.apache.catalina.core.StandardContext 
filterStart

FINE: Starting filters

RE: Console Output Not Going Anywhere

2009-08-08 Thread Martin Gainty

getLogger() is a method from
org.apache.commons.logging.impl.Log4JLoggerhttp://commons.apache.org/logging/commons-logging-1.0.3/docs/api/org/apache/commons/logging/impl/Log4JLogger.html

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Sat, 8 Aug 2009 18:19:48 -0600
 From: devli...@hanik.com
 To: users@tomcat.apache.org
 Subject: Re: Console Output Not Going Anywhere
 
 what class is Logger.getLogger(), doesn't look like a tomcat class, 
 so, no, it wont show up in the tomcat configured logs.
 Also, System.out/err only show up in the logs if you have swallowOutput 
 set AND it happens during a request.
 ServletContextListener don't happen during servlet requests
 
 Filip
 
 On 08/08/2009 05:53 PM, Allen Williams wrote:
  Allen Williams wrote:
 
  I've fixed the exceptions that were being thrown and still have this, 
  despite having this in my code:
  ===
  public class AppInitializer implements ServletContextListener
 {
 public void contextInitialized(ServletContextEvent e)
 {
 log2.log(Level.FINEST, \n In contextInitialized 
  **\n);
 System.out.println(\n In contextInitialized 
  **\n);
 System.out.flush();
 System.err.println(\n In contextInitialized 
  **\n);
 System.err.flush();
 
  snip
 
  private static Logger log2= Logger.getLogger(3info-dev.org.apache);
  ===
 
  I can't get anything to display in any of the log files.  Here is my 
  logging.properties:
 
  ===
  # Licensed to the Apache Software Foundation (ASF) under one or more
  # contributor license agreements.  See the NOTICE file distributed with
  # this work for additional information regarding copyright ownership.
  # The ASF licenses this file to You under the Apache License, Version 2.0
  # (the License); you may not use this file except in compliance with
  # the License.  You may obtain a copy of the License at
  #
  # http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an AS IS BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
  implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
 
  # Logging levels: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST 
  or ALL
 
  handlers = 1catalina.org.apache.juli.FileHandler, 
  2localhost.org.apache.juli.FileHandler, 
  3info-dev.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
 
  .handlers = 1catalina.org.apache.juli.FileHandler, 
  java.util.logging.ConsoleHandler
  .level=WARNING
 
  
  # Handler specific properties.
  # Describes specific configuration info for Handlers.
  
 
  1catalina.org.apache.juli.FileHandler.level = WARNING
  1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  1catalina.org.apache.juli.FileHandler.prefix = catalina.
 
  2localhost.org.apache.juli.FileHandler.level = WARNING
  2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  2localhost.org.apache.juli.FileHandler.prefix = localhost.
 
  3info-dev.org.apache.juli.FileHandler.level = ALL
  3info-dev.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
  3info-dev.org.apache.juli.FileHandler.prefix = info-dev.
 
  java.util.logging.ConsoleHandler.level = ALL
  java.util.logging.ConsoleHandler.formatter = 
  java.util.logging.SimpleFormatter
 
  
  # Facility specific properties.
  # Provides extra control for each logger

Re: Console Output Not Going Anywhere

2009-08-07 Thread Filip Hanik - Dev Lists

did you set

swallowOutput=true in conf/context.xml?

Filip

On 08/07/2009 07:01 PM, Allen Williams wrote:

I'm trying to get Tomcat 6 up and working; didn't have this problem on 5.

The code:

System.err.println

does not print to the log files.  With this logging.properties:

org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].handlers 
= 3info-dev.org.apache.juli.FileHandler


I get some exceptions, etc. in the info-dev.log file.  With this:

org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].level 
= ALL
org.apache.catalina.core.ContainerBase.[Catalina].[info-dev].[/infoisland].handlers 
= java.util.logging.ConsoleHandler


I get zero bytes.  In neither of the above cases to I get the output 
from several System.err.println's or System.out.println's.  Can 
someone tell me how to find out where my console is going, or how to 
redirect it?


TIA
anw

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console Output

2009-03-17 Thread Ben Souther
cd into the $CATALINA_HOME/logs directory and type:

tail -f *




On Tue, 2009-03-17 at 13:41 -0400, Mighty Tornado wrote:
 Hi,
 I am running Tomcat on Mac OS X.
 How can I see output on the console of the command line?
 
 For example, if I would like to put System.out statements in the code and
 would like to see them on the console.
 
 Thanks,


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Rainer Jung
Unless things changed in the last 1.5 years (when I looked it up last 
time): DBCP uses System.out.println() and not regular logging for the 
output of exactly those lines :(


Regards,

Rainer

Gregor Schneider wrote:

Hi guys,

we're using a JDBC-datasource with the following definition in
$CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml:

?xml version='1.0' encoding='utf-8'?
Context
 Resource
   auth=Container
   description=DB Connection for CLUE-Index
   name=jdbc/IndexCLUEDS
   type=javax.sql.DataSource
   factory=org.apache.commons.dbcp.BasicDataSourceFactory
   driverClassName=com.mysql.jdbc.Driver
   username=
   password=
   url=jdbc:mysql://db/index_clue?autoReconnect=true
   maxIdle=30
   maxWait=1
   maxActive=10
   validationQuery=SELECT 1
   testOnBorrow=true
   testWhileIdle=true
   timeBetweenEvictionRunsMillis=1
   minEvictableIdleTimeMillis=28800
   poolPreparedStatements=true
   removeAbandoned=true
   removeAbandonedTimeout=300
   logAbandoned=false/
/Context

In catalina.out, we always find the following output:

AbandonedObjectPool is used 
([EMAIL PROTECTED]

e)
  LogAbandoned: false
  RemoveAbandoned: true
  RemoveAbandonedTimeout: 300

I have no idea how to stop this, so can anyone of you guys give me a
clue where to look for to stop this output?

TIA


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider

Aaargl so that means there's no possibility to get rid of this output?

I mean I don't need a possibility to divert it into a log-file, just
getting rid of the output would help...

Cheers

Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
that's true, and I get something similar as that the first time Tomcat (the 
apps) make a call to the database, but only initially. It doesn't keep posting 
to the console afterwards.

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:44 AM
To: Tomcat Users List
Subject: Re: Console-Output of AbandonedObjectPool


Unless things changed in the last 1.5 years (when I looked it up last 
time): DBCP uses System.out.println() and not regular logging for the 
output of exactly those lines :(

Regards,

Rainer

Gregor Schneider wrote:
 Hi guys,
 
 we're using a JDBC-datasource with the following definition in
 $CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml:
 
 ?xml version='1.0' encoding='utf-8'?
 Context
  Resource
auth=Container
description=DB Connection for CLUE-Index
name=jdbc/IndexCLUEDS
type=javax.sql.DataSource
factory=org.apache.commons.dbcp.BasicDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=
password=
url=jdbc:mysql://db/index_clue?autoReconnect=true
maxIdle=30
maxWait=1
maxActive=10
validationQuery=SELECT 1
testOnBorrow=true
testWhileIdle=true
timeBetweenEvictionRunsMillis=1
minEvictableIdleTimeMillis=28800
poolPreparedStatements=true
removeAbandoned=true
removeAbandonedTimeout=300
logAbandoned=false/
 /Context
 
 In catalina.out, we always find the following output:
 
 AbandonedObjectPool is used 
 ([EMAIL PROTECTED]
 e)
   LogAbandoned: false
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
 
 I have no idea how to stop this, so can anyone of you guys give me a
 clue where to look for to stop this output?
 
 TIA

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider

hi barry,

from my understanding, the output seems to be created every time when
the pool needs to create a new physical connection to the database,
i.e. you've specified maxActive=10, only 5 are used  busy, a 6th
gets created due to an additional request and - voilá, there you go.

anyways, seems there's no workaround for this problem, so i'll have to
live with it :(

cheers

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
maybe I've set or allocated enough (about 100) connections so I only get that 
once?

I'd be happy to send you my server.xml config if you'd like.

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 11:10 AM
To: Tomcat Users List
Subject: Re: Console-Output of AbandonedObjectPool


hi barry,

from my understanding, the output seems to be created every time when
the pool needs to create a new physical connection to the database,
i.e. you've specified maxActive=10, only 5 are used  busy, a 6th
gets created due to an additional request and - voilá, there you go.

anyways, seems there's no workaround for this problem, so i'll have to
live with it :(

cheers

gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
and unfortunately, as I'd posted in a reply with  a different topic you might 
have seen, there's (at the moment) no way for me to see the console in the prod 
setting, so I can't verify that's happening, but I'd be inclined to think with 
my current configuration that message is only getting generated once, pending a 
restart which wipes out the console messages anyway.

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 11:10 AM
To: Tomcat Users List
Subject: Re: Console-Output of AbandonedObjectPool


hi barry,

from my understanding, the output seems to be created every time when
the pool needs to create a new physical connection to the database,
i.e. you've specified maxActive=10, only 5 are used  busy, a 6th
gets created due to an additional request and - voilá, there you go.

anyways, seems there's no workaround for this problem, so i'll have to
live with it :(

cheers

gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider

hi barry,

thanks for the offer, but i guess i've found the solution:

we're using around 15 different servlets, each making use of it's own
datasource belonging to a different connection-pool:

so it looks, as if the message always shows up when each pool is
created, meaning, you're right with your statement.

getting a little off-topic (but on-topic for your other post): don't
you have a test-server with the identical environment as the
prod-server where you could try to recreate the same race-conditions?

cheers

gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L


getting a little off-topic (but on-topic for your other post): don't
you have a test-server with the identical environment as the
prod-server where you could try to recreate the same race-conditions?

cheers

gregor
-
Yes, but I don't have the traffic or really the means to implement the same 
amount of traffic on it.

-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]