RE: debugging help

2003-01-31 Thread Barney Hamish
Try running tomcat as a service rather than from the command line directly
that way all stdout should be redirected to your logs.
Hamish

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 2:52 PM
 To: [EMAIL PROTECTED]
 Subject: debugging help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 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: debugging help

2003-01-31 Thread Turner, John

Better yet, don't use startup.bat.  Open up a command window, and use:

catalina.bat start

This will pop up another window, where all of Tomcat's startup messages will
be displayed.

John

 -Original Message-
 From: Barney Hamish [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 8:54 AM
 To: 'Tomcat Users List'
 Subject: RE: debugging help
 
 
 Try running tomcat as a service rather than from the command 
 line directly
 that way all stdout should be redirected to your logs.
 Hamish
 
  -Original Message-
  From: Geoff Peters [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 31, 2003 2:52 PM
  To: [EMAIL PROTECTED]
  Subject: debugging help
  
  
  I am trying to configure a new realm for MySQL, and I am 
  finding debuggin problems at this point is next to impossible 
  and very frustrating. When I try to start Tomcat, the console 
  window pops up for a second, an exception message is thrown 
  and the window closes before I can read it. The log files do 
  not show any of this output, so I am stuck with changing 
  things one at a time to see if I can get Tomcat to fire up 
  and generate logs!
  
  Any advice on how to get output to a log file when I can't 
  start Tomcat???
  
  Thanks, Geoff
  
  
  
  
 -
  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: debugging help

2003-01-31 Thread Raible, Matt
Here's an Ant task that can be very helpful in these situations:

target name=start.tomcat
java classname=org.apache.catalina.startup.Bootstrap fork=yes
jvmarg value=-Dcatalina.home=${tomcat.home}/
arg value=start/
classpath
fileset dir=${tomcat.home}
include name=bin/bootstrap.jar/
include name=server/catalina.jar/
/fileset
/classpath
/java
/target

If you're not using Ant, you can use the following command line argument
from your $CATALINA_HOME directory:

java -cp bin/bootstrap.jar;server/catalina.jar
org.apache.catalina.startup.Bootstrap start

HTH,

Matt

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 6:52 AM
 To: [EMAIL PROTECTED]
 Subject: debugging help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 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: debugging help

2003-01-31 Thread Geoff Peters
YESSS!!! thanks Matt, that did exactly what I wanted to, showed me it was a driver 
exception, the window stayed open. John - I tried your idea and the window still 
closed imediately after the exception. Hamish - When I actually get it running again I 
am going to install it as a service!!

Thanks again guys, Geoff

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 9:58 AM
To: 'Tomcat Users List'
Subject: RE: debugging help


Here's an Ant task that can be very helpful in these situations:

target name=start.tomcat
java classname=org.apache.catalina.startup.Bootstrap fork=yes
jvmarg value=-Dcatalina.home=${tomcat.home}/
arg value=start/
classpath
fileset dir=${tomcat.home}
include name=bin/bootstrap.jar/
include name=server/catalina.jar/
/fileset
/classpath
/java
/target

If you're not using Ant, you can use the following command line argument
from your $CATALINA_HOME directory:

java -cp bin/bootstrap.jar;server/catalina.jar
org.apache.catalina.startup.Bootstrap start

HTH,

Matt

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 6:52 AM
 To: [EMAIL PROTECTED]
 Subject: debugging help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 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: debugging help

2003-01-31 Thread Robert Priest
the following is the help from 4.1.6, but I believe it still stands,
correct?

You could use catalina run as the command to start tomcat in the current
window.


Usage:  catalina ( commands ... )
commands:
  debug Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  embedded  Start Catalina in embedded mode
  jpda startStart Catalina under JPDA debugger
  run   Start Catalina in the current window
  run -security Start in the current window with security manager
  start Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop  Stop Catalina

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 8:58 AM
To: 'Tomcat Users List'
Subject: RE: debugging help


Here's an Ant task that can be very helpful in these situations:

target name=start.tomcat
java classname=org.apache.catalina.startup.Bootstrap fork=yes
jvmarg value=-Dcatalina.home=${tomcat.home}/
arg value=start/
classpath
fileset dir=${tomcat.home}
include name=bin/bootstrap.jar/
include name=server/catalina.jar/
/fileset
/classpath
/java
/target

If you're not using Ant, you can use the following command line argument
from your $CATALINA_HOME directory:

java -cp bin/bootstrap.jar;server/catalina.jar
org.apache.catalina.startup.Bootstrap start

HTH,

Matt

 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 6:52 AM
 To: [EMAIL PROTECTED]
 Subject: debugging help
 
 
 I am trying to configure a new realm for MySQL, and I am 
 finding debuggin problems at this point is next to impossible 
 and very frustrating. When I try to start Tomcat, the console 
 window pops up for a second, an exception message is thrown 
 and the window closes before I can read it. The log files do 
 not show any of this output, so I am stuck with changing 
 things one at a time to see if I can get Tomcat to fire up 
 and generate logs!
 
 Any advice on how to get output to a log file when I can't 
 start Tomcat???
 
 Thanks, Geoff
 
 
 
 -
 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: debugging help

2003-01-31 Thread Turner, John

Strange...stays open for me on Windows 2000 Pro.  Oh well.

John


 -Original Message-
 From: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 9:16 AM
 To: Tomcat Users List
 Subject: RE: debugging help
 
 
 YESSS!!! thanks Matt, that did exactly what I wanted to, 
 showed me it was a driver exception, the window stayed open. 
 John - I tried your idea and the window still closed 
 imediately after the exception. Hamish - When I actually get 
 it running again I am going to install it as a service!!
 
 Thanks again guys, Geoff
 
 -Original Message-
 From: Raible, Matt [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 9:58 AM
 To: 'Tomcat Users List'
 Subject: RE: debugging help
 
 
 Here's an Ant task that can be very helpful in these situations:
 
 target name=start.tomcat
 java 
 classname=org.apache.catalina.startup.Bootstrap fork=yes
 jvmarg value=-Dcatalina.home=${tomcat.home}/
 arg value=start/
 classpath
 fileset dir=${tomcat.home}
 include name=bin/bootstrap.jar/
 include name=server/catalina.jar/
 /fileset
 /classpath
 /java
 /target
 
 If you're not using Ant, you can use the following command 
 line argument
 from your $CATALINA_HOME directory:
 
 java -cp bin/bootstrap.jar;server/catalina.jar
 org.apache.catalina.startup.Bootstrap start
 
 HTH,
 
 Matt
 
  -Original Message-
  From: Geoff Peters [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 31, 2003 6:52 AM
  To: [EMAIL PROTECTED]
  Subject: debugging help
  
  
  I am trying to configure a new realm for MySQL, and I am 
  finding debuggin problems at this point is next to impossible 
  and very frustrating. When I try to start Tomcat, the console 
  window pops up for a second, an exception message is thrown 
  and the window closes before I can read it. The log files do 
  not show any of this output, so I am stuck with changing 
  things one at a time to see if I can get Tomcat to fire up 
  and generate logs!
  
  Any advice on how to get output to a log file when I can't 
  start Tomcat???
  
  Thanks, Geoff
  
  
  
  
 -
  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]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: debugging help

2003-01-31 Thread Raible, Matt
Good tip Robert (much easier).  Thanks!

 -Original Message-
 From: Robert Priest [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 7:10 AM
 To: 'Tomcat Users List'
 Subject: RE: debugging help
 
 
 the following is the help from 4.1.6, but I believe it still stands,
 correct?
 
 You could use catalina run as the command to start tomcat 
 in the current
 window.
 
 
 Usage:  catalina ( commands ... )
 commands:
   debug Start Catalina in a debugger
   debug -security   Debug Catalina with a security manager
   embedded  Start Catalina in embedded mode
   jpda startStart Catalina under JPDA debugger
   run   Start Catalina in the current window
   run -security Start in the current window with security manager
   start Start Catalina in a separate window
   start -security   Start in a separate window with security manager
   stop  Stop Catalina
 
 -Original Message-
 From: Raible, Matt [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 31, 2003 8:58 AM
 To: 'Tomcat Users List'
 Subject: RE: debugging help
 
 
 Here's an Ant task that can be very helpful in these situations:
 
 target name=start.tomcat
 java 
 classname=org.apache.catalina.startup.Bootstrap fork=yes
 jvmarg value=-Dcatalina.home=${tomcat.home}/
 arg value=start/
 classpath
 fileset dir=${tomcat.home}
 include name=bin/bootstrap.jar/
 include name=server/catalina.jar/
 /fileset
 /classpath
 /java
 /target
 
 If you're not using Ant, you can use the following command 
 line argument
 from your $CATALINA_HOME directory:
 
 java -cp bin/bootstrap.jar;server/catalina.jar
 org.apache.catalina.startup.Bootstrap start
 
 HTH,
 
 Matt
 
  -Original Message-
  From: Geoff Peters [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 31, 2003 6:52 AM
  To: [EMAIL PROTECTED]
  Subject: debugging help
  
  
  I am trying to configure a new realm for MySQL, and I am 
  finding debuggin problems at this point is next to impossible 
  and very frustrating. When I try to start Tomcat, the console 
  window pops up for a second, an exception message is thrown 
  and the window closes before I can read it. The log files do 
  not show any of this output, so I am stuck with changing 
  things one at a time to see if I can get Tomcat to fire up 
  and generate logs!
  
  Any advice on how to get output to a log file when I can't 
  start Tomcat???
  
  Thanks, Geoff
  
  
  
  
 -
  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]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]