You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "K. Mike Bradley" <km...@mikienet.com> on 2004/11/09 20:01:02 UTC

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

RE: My Context don't workie

Posted by "K. Mike Bradley" <km...@mikienet.com>.
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:kmb@mikienet.com] 
Sent: Tuesday, November 09, 2004 2:01 PM
To: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org