Hi,
You can add debug="99" attributes to all the containers in server.xml to
get additional debugging data.  Tomcat 5.x has better debugging support
via commons-logging.

Try commenting out pieces, like the Realm, to maybe isolate the problem
component further.

Yoav Shapira http://www.yoavshapira.com


>-----Original Message-----
>From: K. Mike Bradley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 09, 2004 4:16 PM
>To: 'Tomcat Users List'
>Subject: RE: My Context don't workie
>
>Is there any way to turn on some sort of debugging?
>
>BTW here is mt entire server.xml
>
>
><?xml version="1.0" encoding="UTF-8"?>
><!-- Webserver Configuration File
>     WARNING
>******************************************************************
>     Don't edit this file directly, use the command 'config' from the
>         installation directory-->
>
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
>  <!-- Define the Tomcat Stand-Alone Service -->
>  <Service name="Tomcat-Standalone">
>        <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 -->
>            <Connector
>className="org.apache.coyote.tomcat4.CoyoteConnector"
>port="80" minProcessors="5" maxProcessors="75" enableLookups="true"
>redirectPort$
>
>        <!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -->
>
>
>    <Engine name="Standalone" defaultHost="localhost" debug="0">
>
>      <!-- This is a replacement logger written for the CJGreen project
by
>           copying the FileLogger class and making slight
modifications.
>           The need was to provide a default verbosity to messages that
are
>           logged without a specific verbosity.  FileLogger ALWAYS logs
>           these messages, but they occur frequently and are usually
>(always?)
>           informational in nature.  A defaultVerbosity of 3 makes
these
>           messages informational and the verbosity setting of less
than 3
>           then makes sure that we never log any informational
messages.
>
>           There is a quirk to how this works, however.  Tomcat
executes
>           each element as it reads it from this file.  Therefore, any
>logging
>           done during startup (before this element) will not use the
>           default verbosity specified by the attribute
defaultVerbosity.
>           Instead, it uses the hard-coded default of 3
(INFORMATIONAL).
>           Therefore, to see logged messages during startup, you must
use
>           the original FileLogger and not use CJFileLogger. -->
>      <Logger
className="com.controlj.green.jakarta.catalina.FileLogger"
>prefix="catalina_log." suffix=".txt" timestamp="true" verbosity="0"
>defaultVerbosity="3" />
>
>      <!-- This is the default logging for Tomcat.  We have replaced it
>with
>           CJFileLogger above to suppress log messages that don't have
a
>           verbosity level.  This logger will ALWAYS log messages
without
>           a verbosity level and there are quite a few of these
message.
>
>           Uncomment this logger (and also comment out the above
>           logger) to revert to the previous amount of logging. -->
>
>      <!-- Logger className="org.apache.catalina.logger.FileLogger"
>              prefix="catalina_log." suffix=".txt"
>              timestamp="true" verbosity="0"/ -->
>
>
>      <!-- Because this Realm is here, an instance will be shared
globally
>-->
>      <Realm digest="SHA-1"
>className="com.controlj.green.jakarta.catalina.Realm" hostPort="80"
>ssl="off" />
>
>      <!-- Define the default virtual host -->
>      <Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true">
>
>        <!-- WebCTRL Context -->
>          <Context path="" docBase="/opt/WebCTRL2.5/webroot" debug="1">
>            <Manager distributable="false"
>className="org.apache.catalina.session.PersistentManager"
>saveOnRestart="false">
>               <Store className="org.apache.catalina.session.FileStore"
/>
>            </Manager>
>          </Context>
>
>
>      </Host>
>
>    </Engine>
>
>  </Service>
>
></Server>
>
>-----Original Message-----
>From: K. Mike Bradley [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 09, 2004 2:01 PM
>To: [EMAIL PROTECTED]
>Subject: My Context don't workie
>
>Hello to all,
>
>I have an app that works fine on Red Hat, Susie, Debian, or even
Windows.
>
>I built a Gentoo box and it wont work.
>
>TomCat runs but the webapp is ignored.
>
>The Server.xml has:
>
>        <!-- WebCTRL Context -->
>          <Context path="" docBase="../../webroot" debug="1">
>            <Manager distributable="false"
>className="org.apache.catalina.session.PersistentManager"
>saveOnRestart="false">
>               <Store className="org.apache.catalina.session.FileStore"
/>
>            </Manager>
>          </Context>
>
>Again this works on any other linux box but my new Gentoo.
>
>When TomCat runs I get:
>
>Nov 9, 2004 6:28:16 PM org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 80 Starting service
>Tomcat-Standalone Apache Tomcat/4.1 Nov 9, 2004 6:28:19 PM
>org.apache.coyote.http11.Http11Protocol start
>INFO: Starting Coyote HTTP/1.1 on port 80
>
>Everything is ok except the webapp normally adds several lines of text
>under
>"Apache Tomcat/4.1" and the app is not up.
>
>Could there be some sort of dependency issue?
>
>I am pulling my hair out !!!!!!!!!
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


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

Reply via email to