tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán Freyr Stefánsson <>
Subject RE: Where are my jar files and what's the difference between the different directories in Tomcat source???
Date Wed, 09 Aug 2000 09:17:02 GMT
Hello Mr. McClanahan and thanks for your very informative answer.

I'm sorry to bother you again with this, I realize you must be a very busy
guy so I'll try to keep this as short as possible.

I've looked at the server.xml file and I do not find anything that could
possibly relate to SSL support for the internal web browser in tomcat.  If
you could give me some more information about that I would greatly
appreciate it.  I'll paste my server.xml file in here at the end of this

Also I was wondering how it would go when I need to integrate this into
another application... so that when that application starts up the webserver
(with SSL support) also starts up and everything is set.  Would I simply do
the following in code:

        Tomcat tomcat=new Tomcat();
        tomcat.execute( args );
    catch(Exception ex)
        System.out.println(sm.getString("tomcat.fatal") + ex );

(Taken directly from

Would that then start up an SSL web server... given, of course, that my
server.xml file is correct?

I hope I'm not bothering you too much and I hope you can give me an answer
to these two questions I have.

Thank you...
Kind regards from Iceland, Stefan Freyr Stefansson.

p.s. here's the server.xml file I have:


<?xml version="1.0" encoding="ISO-8859-1"?>

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

    <Logger name="tc_log"
            customOutput="yes" />

    <Logger name="servlet_log"
            customOutput="yes" />

    <Logger name="JASPER_LOG"
            verbosityLevel = "INFORMATION" />

    <!-- Add "home" attribute if you want tomcat to be based on a different
         "home" is used to create work and to read webapps, but not for libs
         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"
className="org.apache.tomcat.context.DefaultCMSetter" />
className="org.apache.tomcat.context.WorkDirInterceptor" />
className="org.apache.tomcat.context.WebXmlReader" />
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
        <!-- Request processing -->
className="org.apache.tomcat.request.SimpleMapper" debug="0" />
className="org.apache.tomcat.request.SessionInterceptor" />
className="org.apache.tomcat.request.SecurityCheck" />
        <RequestInterceptor className="org.apache.tomcat.request.FixHeaders"

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

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

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

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



-----Original Message-----
From: Craig R. McClanahan []
Sent: 8. ágúst 2000 16:41
Subject: Re: Where are my jar files and what's the difference between
the different directories in Tomcat source???

Stefán Freyr Stefánsson wrote:

> Hello...
> I'm having a hard time understanding this thing here...
> I've downloaded the Ant tool and the source of Tomcat.  I've run
> and after a few modifications and additions (had to create a JAVA_HOME
> environment variable and add an XML implementation to my setup) the tomcat
> builds allright and it even runs!

The detailed steps required to build from source are outlined in the
in the top-level directory.

> The problem is that I can't find the jar files I was told I'd have
> (webserver.jar, jasper.jar and server.jar).  I want to integrate tomcat
> one of my projects and use the webserver and jsp/servlet engine in it...
> that's why I'm doing this and I need the jar files... but as I said...
> are nowhere to be found... I've searched the whole drive and nothing...

The default build target creates an "unpacked" directory structure in
"../build/tomcat".  If you want a distribution build (i.e. like the ones
you can
download), do this instead:

    ./ dist    <-- Unix
    build dist          <-- Windows

and the results will be placed in "../dist/tomcat".

> I posted a question to this list a while ago asking about pointers for
> stripping tomcat... that is, I only wanted the java files neccesary... no
> native code and such.  I got one answer to that... and that was to build
> and use the aforementioned jar files... I expect them to only have the
> files so it's not exactly what I wanted but it's better than nothing...
> I still would like to get some information about all the different
> directories within the Tomcat source.... I mean, I have found the same
> package names in more than one place and even the same java files under
> different directories.. I'm confused as to which one is used and such
> I'm trying to put this in a nice JBuilder project.  The reason for that
> being that I want to modify it a little before I integrate it into my
> project.. (add SSL support to the internal HTTP server and such).

The "proposals/catalina" directory is a completely separate code base
that will
be proposed in the future to become the servlet container in Tomcat
4.0.  Ignore
it for now if you are interested in Tomcat 3.2.

Other than that, the best way to learn how the source is organized is to
familiar with the Ant tool, and be able to at least read the "build.xml"
script.  Then you will get a good feel for where things are compiled
from, and
where they end up.  I cannot imagine that it would be particularly easy
to adapt
the existing build process to an IDE tool -- you might be better off
creating a
custom build target in build.xml that creates what you want, and then
the resulting JAR file.

By the way, built-in support for SSL is already possible -- example
configuration is commented out in $TOMCAT_HOME/conf/server.xml.

> I hope someone can help me with this... as always, anything is greatly
> appreciated.
> Thanks, Stefan Freyr

Craig McClanahan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message