tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Pettis" <depste...@hotmail.com>
Subject RE: Deployment...
Date Thu, 20 Jul 2000 09:17:37 GMT
My directory structure is very similar to the examples directory... all the 
standard dirs are there and the files are in the right places... ie: all 
class files are in WEB-INF/classes and the index.html page is in a directory 
called vendor (that's the application directory).  jakarta cannot see either 
index.html or the servlets.

Thanks,
Darren

Here is my server.xml file:
-------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>

<Server>
    <!-- Debug low-level events in XmlMapper startup -->
    <xmlmapper:debug level="0" />

    <!-- This is quite flexible; we can either have a log file per
         module in Tomcat (example: ContextManager) or we can have
         one for Servlets and one for Jasper, or we can just have
	 one tomcat.log for both Servlet and Jasper.

	 If you omit "path" there, then stderr should be used.

	 verbosityLevel values can be:
	    FATAL
	    ERROR
	    WARNING
            INFORMATION
            DEBUG
         -->

    <Logger name="tc_log"
            path="logs/tomcat.log"
            customOutput="yes" />

    <Logger name="servlet_log"
            path="logs/servlet.log"
            customOutput="yes" />

    <Logger name="JASPER_LOG"
	    path="logs/jasper.log"
            verbosityLevel = "INFORMATION" />

    <!-- Add "home" attribute if you want tomcat to be based on a different 
directory
         "home" is used to create work and to read webapps, but not for libs 
or CLASSPATH.
         Note that TOMCAT_HOME is where tomcat is installed, while 
ContextManager home is the
         base directory for contexts, webapps/ and work/
      -->
    <ContextManager debug="0" workDir="work" >
        <!-- ContextInterceptor 
className="org.apache.tomcat.context.LogEvents" / -->
        <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" 
/>
        <ContextInterceptor 
className="org.apache.tomcat.context.DefaultCMSetter" />
        <ContextInterceptor 
className="org.apache.tomcat.context.WorkDirInterceptor" />
        <ContextInterceptor 
className="org.apache.tomcat.context.WebXmlReader" />
        <ContextInterceptor 
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
        <!-- Request processing -->
        <RequestInterceptor 
className="org.apache.tomcat.request.SimpleMapper" debug="0" />
        <RequestInterceptor 
className="org.apache.tomcat.request.SessionInterceptor" />
        <RequestInterceptor 
className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders" 
/>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler" 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port" value="8080"/>
        </Connector>

        <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
            <Parameter name="handler" 
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
            <Parameter name="port" value="8007"/>
        </Connector>

        <!-- example - how to override AutoSetup actions -->
        <Context path="/examples" docBase="webapps/examples" debug="0" 
reloadable="true" >
        </Context>

        <Context path="/vendor" docBase="webapps/vendor" debug="0" 
reloadable="true" >
        </Context>

        <!-- example - how to override AutoSetup actions -->

        <Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" 
 >
        </Context>

        <Context path="/test" docBase="webapps/test" debug="0" 
reloadable="true" >
        </Context>

    </ContextManager>
</Server>


here is my tomcat.conf

-------------------------------------------------------------------------
###############################################################################
#                     Apache JServ Configuration File                        
  #
###############################################################################

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
#LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
ApJServDefaultPort 8007


#################### All jsp files will go to tomcat ####################
ApJServMount default /root

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples /root
ApJServMount /vendor /root

############################## Context mapping - you need to "deploy"
# ( copy or ln -s ) the context into htdocs
##

# ApJservMount /CONTEXT/servlet  /root
# <Location /CONTEXT/WEB-INF/ >
#      AllowOverride None
#      deny from all
# </Location>


</IfModule>


>From: "Rob S." <rslifka@home.com>
>Reply-To: tomcat-user@jakarta.apache.org
>To: <tomcat-user@jakarta.apache.org>
>Subject: RE: Deployment...
>Date: Wed, 19 Jul 2000 20:05:37 -0700
>
>Hi Darren,
>
> > I understand where files go (WEB_INF, classes, etc), but I can't
> > seem to get
> > jakarta to recognize anything in there after adding entries to
> > tomcat.conf
> > and server.xml.  I'm putting my servlet(s) in WEB-INF/classes and my
> > index.html file in the root of the application.  How do I
> > register this in
> > the various conf files to get jakarta to regognized it.
>
>Well, you're off to a good start =)
>
>Would you mind posting the relevant snippets from your httpd.conf and
>server.xml files?
>
>- r
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message